Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001792/0.001792, allocations: 112.9 kB / 19.17 MB, free: 3.871 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001741/0.001741, allocations: 210.5 kB / 22.13 MB, free: 0.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.509/1.509, allocations: 230.4 MB / 255.4 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001925, allocations: 67.84 kB / 374.7 MB, free: 9.789 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1064, allocations: 53.33 MB / 428.1 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.1973/0.3037, allocations: 15.34 MB / 443.4 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02646/0.3302, allocations: 20.84 MB / 464.2 MB, free: 3.289 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003135/0.3333, allocations: 89.12 kB / 464.3 MB, free: 3.242 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004043/0.3373, allocations: 1.264 MB / 465.6 MB, free: 2.578 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009964/0.3473, allocations: 2.387 MB / 468 MB, free: 1.109 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005777/0.3531, allocations: 1.435 MB / 469.4 MB, free: 372 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01268/0.3658, allocations: 6.716 MB / 476.1 MB, free: 13.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008136/0.3666, allocations: 274 kB / 476.4 MB, free: 12.96 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002285/0.3689, allocations: 1.135 MB / 477.5 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002312/0.3712, allocations: 1.146 MB / 478.7 MB, free: 11.74 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003426/0.3715, allocations: 74.16 kB / 478.7 MB, free: 11.74 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005389/0.3769, allocations: 1.485 MB / 480.2 MB, free: 11.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005678/0.3775, allocations: 336 kB / 480.6 MB, free: 10.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002656/0.3801, allocations: 1.429 MB / 482 MB, free: 9.902 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008176/0.3883, allocations: 4.004 MB / 486 MB, free: 6.609 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.3883, allocations: 0 / 486 MB, free: 6.609 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3883, allocations: 0 / 486 MB, free: 6.609 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.405e-05/0.3884, allocations: 3.938 kB / 486 MB, free: 6.605 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.006395/0.3948, allocations: 3.962 MB / 490 MB, free: 2.559 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.3948, allocations: 8.031 kB / 490 MB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00058/0.3954, allocations: 433.3 kB / 490.4 MB, free: 2.125 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003741/0.3992, allocations: 2.506 MB / 492.9 MB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.073e-05/0.3992, allocations: 41 kB / 492.9 MB, free: 15.51 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001399/0.3993, allocations: 55.95 kB / 493 MB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001452/0.4008, allocations: 0.7304 MB / 493.7 MB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.4008, allocations: 0 / 493.7 MB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.245e-05/0.4009, allocations: 23.98 kB / 493.7 MB, free: 14.69 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.249e-05/0.4009, allocations: 16 kB / 493.8 MB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001647/0.4026, allocations: 0.8202 MB / 494.6 MB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005717/0.4083, allocations: 3.099 MB / 497.7 MB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001249/0.4095, allocations: 0.5223 MB / 498.2 MB, free: 10.15 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009855/0.4105, allocations: 0.5695 MB / 498.8 MB, free: 9.574 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0334/0.4439, allocations: 30.76 MB / 0.5171 GB, free: 6.566 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007992/0.4447, allocations: 361.6 kB / 0.5175 GB, free: 6.203 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.665e-06/0.4447, allocations: 4 kB / 0.5175 GB, free: 6.199 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002598/0.4473, allocations: 1.139 MB / 0.5186 GB, free: 5.055 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.923e-05/0.4474, allocations: 55.41 kB / 0.5186 GB, free: 4.988 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004096/0.4515, allocations: 3.087 MB / 0.5216 GB, free: 1.902 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.786e-05/0.4516, allocations: 41.69 kB / 0.5217 GB, free: 1.855 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001493/0.4531, allocations: 1.582 MB / 0.5232 GB, free: 272 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002247/0.4533, allocations: 170.6 kB / 0.5234 GB, free: 100 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003535/0.4536, allocations: 230.4 kB / 0.5236 GB, free: 15.87 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.4538, allocations: 341.9 kB / 0.5239 GB, free: 15.53 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006153/0.4544, allocations: 241.9 kB / 0.5242 GB, free: 15.29 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000908/0.4553, allocations: 0.6059 MB / 0.5248 GB, free: 14.51 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001578/0.4569, allocations: 0.8974 MB / 0.5256 GB, free: 13.43 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.211e-05/0.4569, allocations: 7.938 kB / 0.5256 GB, free: 13.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002445/0.4594, allocations: 1.259 MB / 0.5269 GB, free: 12.16 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.431e-05/0.4594, allocations: 12 kB / 0.5269 GB, free: 12.15 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001194/0.4595, allocations: 87.92 kB / 0.527 GB, free: 12.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.171e-05/0.4595, allocations: 16 kB / 0.527 GB, free: 12.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007154/0.4603, allocations: 203.6 kB / 0.5272 GB, free: 11.85 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.179e-05/0.4603, allocations: 28.92 kB / 0.5272 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001124/0.4614, allocations: 111.5 kB / 0.5273 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001054/0.4615, allocations: 64 kB / 0.5274 GB, free: 11.65 MB / 446.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.0008351/0.4624, allocations: 449.4 kB / 0.5278 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005112/0.4629, allocations: 421.3 kB / 0.5282 GB, free: 10.79 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002886/0.4658, allocations: 1.217 MB / 0.5294 GB, free: 9.562 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/0.4658, allocations: 4 kB / 0.5294 GB, free: 9.559 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.4658, allocations: 3.938 kB / 0.5294 GB, free: 9.555 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.4658, allocations: 3.984 kB / 0.5294 GB, free: 9.551 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003719/0.4695, allocations: 2.143 MB / 0.5315 GB, free: 7.344 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001065/0.4696, allocations: 68.88 kB / 0.5316 GB, free: 7.277 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004879/0.4701, allocations: 91.92 kB / 0.5317 GB, free: 7.188 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.336e-06/0.4701, allocations: 4 kB / 0.5317 GB, free: 7.184 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.12e-05/0.4702, allocations: 39.92 kB / 0.5317 GB, free: 7.145 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.133e-06/0.4702, allocations: 4 kB / 0.5317 GB, free: 7.141 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.4702, allocations: 0.6875 kB / 0.5317 GB, free: 7.141 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002576/0.4727, allocations: 1.343 MB / 0.533 GB, free: 5.77 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009167/0.4737, allocations: 0.5022 MB / 0.5335 GB, free: 5.246 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002749/0.4739, allocations: 11.98 kB / 0.5335 GB, free: 5.234 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006783/0.4746, allocations: 27.97 kB / 0.5335 GB, free: 5.207 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000165/0.4748, allocations: 71.81 kB / 0.5336 GB, free: 5.137 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.831e-05/0.4749, allocations: 39.94 kB / 0.5336 GB, free: 5.102 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002892/0.4778, allocations: 2.007 MB / 0.5356 GB, free: 3.102 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4778, allocations: 0 / 0.5356 GB, free: 3.102 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001533/0.4793, allocations: 0.6009 MB / 0.5362 GB, free: 2.5 MB / 446.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.001238/0.4805, allocations: 0.7769 MB / 0.537 GB, free: 1.715 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001714/0.4822, allocations: 0.7672 MB / 0.5377 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.4822, allocations: 4.062 kB / 0.5377 GB, free: 0.918 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007814/0.483, allocations: 423 kB / 0.5381 GB, free: 492 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002769/0.4858, allocations: 0.6447 MB / 0.5387 GB, free: 15.84 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007347/0.4931, allocations: 4.68 MB / 0.5433 GB, free: 11.11 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001383/0.4945, allocations: 1.706 MB / 0.545 GB, free: 9.379 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003968/0.4949, allocations: 159.4 kB / 0.5451 GB, free: 9.223 MB / 462.1 MB Notification: Performance of SimCode: time 1.182e-06/0.4949, allocations: 0 / 0.5451 GB, free: 9.223 MB / 462.1 MB Notification: Performance of Templates: time 0.05963/0.5545, allocations: 38.87 MB / 0.5831 GB, free: 2.434 MB / 494.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 10.791768391150981]