Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001734/0.001734, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002014/0.002014, allocations: 194.6 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 225.7 MB / 252.5 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 51.92 kB / 370.9 MB, free: 9.195 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2474, allocations: 52.17 MB / 423.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01519/0.2626, allocations: 12.9 MB / 436 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02544/0.2881, allocations: 17.93 MB / 453.9 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002332/0.2904, allocations: 134.5 kB / 454 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003225/0.2936, allocations: 1.162 MB / 455.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007419/0.301, allocations: 2.397 MB / 457.6 MB, free: 11.79 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004474/0.3055, allocations: 1.41 MB / 459 MB, free: 10.38 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01089/0.3164, allocations: 6.649 MB / 465.6 MB, free: 3.711 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006947/0.3171, allocations: 266.2 kB / 465.9 MB, free: 3.422 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001907/0.319, allocations: 1.19 MB / 467.1 MB, free: 2.227 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001705/0.3207, allocations: 1.094 MB / 468.2 MB, free: 1.125 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002363/0.3209, allocations: 72 kB / 468.2 MB, free: 1.055 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003531/0.3245, allocations: 1.206 MB / 469.5 MB, free: 15.85 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004011/0.3249, allocations: 337.5 kB / 469.8 MB, free: 15.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001354/0.3262, allocations: 1.048 MB / 470.8 MB, free: 14.46 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00608/0.3323, allocations: 4.04 MB / 474.9 MB, free: 10.4 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3323, allocations: 0 / 474.9 MB, free: 10.4 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3323, allocations: 0 / 474.9 MB, free: 10.4 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.485e-05/0.3324, allocations: 0 / 474.9 MB, free: 10.4 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.006383/0.3388, allocations: 3.886 MB / 478.8 MB, free: 6.457 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.3388, allocations: 8.031 kB / 478.8 MB, free: 6.449 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006323/0.3394, allocations: 437.2 kB / 479.2 MB, free: 6.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00399/0.3434, allocations: 2.353 MB / 481.5 MB, free: 3.574 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.062e-05/0.3435, allocations: 40.98 kB / 481.6 MB, free: 3.531 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/0.3436, allocations: 55.95 kB / 481.6 MB, free: 3.477 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001456/0.3451, allocations: 0.7343 MB / 482.4 MB, free: 2.738 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/0.3451, allocations: 4 kB / 482.4 MB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.496e-05/0.3452, allocations: 16 kB / 482.4 MB, free: 2.719 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.319e-05/0.3452, allocations: 23.92 kB / 482.4 MB, free: 2.695 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001683/0.3469, allocations: 0.8163 MB / 483.2 MB, free: 1.879 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005426/0.3523, allocations: 2.804 MB / 486 MB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001228/0.3535, allocations: 0.5124 MB / 486.5 MB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001017/0.3545, allocations: 0.577 MB / 487.1 MB, free: 13.92 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02549/0.38, allocations: 13.7 MB / 0.4891 GB, free: 15.83 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000834/0.3809, allocations: 361.6 kB / 0.4894 GB, free: 15.46 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.695e-06/0.3809, allocations: 4 kB / 0.4894 GB, free: 15.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002264/0.3831, allocations: 1.134 MB / 0.4905 GB, free: 14.32 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.606e-05/0.3832, allocations: 55.41 kB / 0.4906 GB, free: 14.25 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003867/0.387, allocations: 3.11 MB / 0.4936 GB, free: 11.14 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.042e-05/0.3871, allocations: 33.7 kB / 0.4937 GB, free: 11.11 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001545/0.3886, allocations: 1.582 MB / 0.4952 GB, free: 9.516 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001665/0.3888, allocations: 178.5 kB / 0.4954 GB, free: 9.34 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003017/0.3891, allocations: 230.4 kB / 0.4956 GB, free: 9.109 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.3893, allocations: 341.9 kB / 0.4959 GB, free: 8.77 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005812/0.3898, allocations: 241.9 kB / 0.4962 GB, free: 8.531 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008708/0.3907, allocations: 0.6017 MB / 0.4967 GB, free: 7.754 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001503/0.3922, allocations: 0.8935 MB / 0.4976 GB, free: 6.688 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.3922, allocations: 4 kB / 0.4976 GB, free: 6.684 MB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002132/0.3944, allocations: 1.271 MB / 0.4989 GB, free: 5.402 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.275e-05/0.3944, allocations: 12.94 kB / 0.4989 GB, free: 5.391 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001257/0.3945, allocations: 83.98 kB / 0.499 GB, free: 5.309 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.779e-05/0.3945, allocations: 20.03 kB / 0.499 GB, free: 5.289 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007326/0.3953, allocations: 195.7 kB / 0.4992 GB, free: 5.098 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.87e-05/0.3953, allocations: 23.88 kB / 0.4992 GB, free: 5.074 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001/0.3963, allocations: 115.3 kB / 0.4993 GB, free: 4.961 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000126/0.3964, allocations: 64 kB / 0.4994 GB, free: 4.898 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007348/0.3972, allocations: 453.5 kB / 0.4998 GB, free: 4.445 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004576/0.3976, allocations: 425.3 kB / 0.5002 GB, free: 4.027 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002577/0.4002, allocations: 1.207 MB / 0.5014 GB, free: 2.816 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.4002, allocations: 8 kB / 0.5014 GB, free: 2.809 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.4002, allocations: 0 / 0.5014 GB, free: 2.809 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.4002, allocations: 4 kB / 0.5014 GB, free: 2.805 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003465/0.4037, allocations: 1.984 MB / 0.5033 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001038/0.4038, allocations: 68 kB / 0.5034 GB, free: 0.7031 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004928/0.4043, allocations: 91.86 kB / 0.5035 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.123e-06/0.4043, allocations: 4 kB / 0.5035 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.978e-05/0.4044, allocations: 35.98 kB / 0.5035 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.4044, allocations: 0 / 0.5035 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.4044, allocations: 4 kB / 0.5035 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002461/0.4068, allocations: 1.347 MB / 0.5048 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009246/0.4077, allocations: 439.1 kB / 0.5052 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002938/0.408, allocations: 12 kB / 0.5053 GB, free: 14.76 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000714/0.4088, allocations: 27.97 kB / 0.5053 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.4089, allocations: 59.92 kB / 0.5053 GB, free: 14.67 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.336e-05/0.409, allocations: 36 kB / 0.5054 GB, free: 14.64 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00277/0.4117, allocations: 2.01 MB / 0.5073 GB, free: 12.63 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4117, allocations: 3.938 kB / 0.5073 GB, free: 12.63 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001377/0.4131, allocations: 0.6008 MB / 0.5079 GB, free: 12.03 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001148/0.4143, allocations: 0.7769 MB / 0.5087 GB, free: 11.24 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001634/0.4159, allocations: 0.7826 MB / 0.5095 GB, free: 10.43 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.4159, allocations: 0 / 0.5095 GB, free: 10.43 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007899/0.4167, allocations: 427.5 kB / 0.5099 GB, free: 9.992 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002472/0.4192, allocations: 0.6434 MB / 0.5105 GB, free: 9.344 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006366/0.4255, allocations: 4.593 MB / 0.515 GB, free: 4.707 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001152/0.4267, allocations: 1.162 MB / 0.5161 GB, free: 3.504 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001209/0.4279, allocations: 361.3 kB / 0.5165 GB, free: 3.145 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002617/0.4282, allocations: 147.4 kB / 0.5166 GB, free: 3 MB / 430.1 MB Notification: Performance of SimCode: time 9.92e-07/0.4282, allocations: 4 kB / 0.5166 GB, free: 2.996 MB / 430.1 MB Notification: Performance of Templates: time 0.2451/0.6732, allocations: 37.55 MB / 0.5533 GB, free: 101.8 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.858857983723283]