Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 112.2 kB / 21.19 MB, free: 0.7578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 209.8 kB / 24.49 MB, free: 4.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.413/1.413, allocations: 230.6 MB / 258.3 MB, free: 8.227 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 47.92 kB / 379 MB, free: 2.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.2595, allocations: 53.37 MB / 432.4 MB, free: 6.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01608/0.2756, allocations: 15.37 MB / 447.8 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02698/0.3026, allocations: 20.86 MB / 468.6 MB, free: 2.594 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003093/0.3056, allocations: 138.5 kB / 468.7 MB, free: 2.457 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003738/0.3094, allocations: 1.27 MB / 470 MB, free: 1.184 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00789/0.3173, allocations: 2.424 MB / 472.4 MB, free: 14.74 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005161/0.3224, allocations: 1.453 MB / 473.9 MB, free: 13.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01159/0.334, allocations: 6.727 MB / 480.6 MB, free: 6.535 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000954/0.335, allocations: 270.2 kB / 480.9 MB, free: 6.242 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002131/0.3371, allocations: 1.182 MB / 482.1 MB, free: 5.055 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002225/0.3393, allocations: 1.149 MB / 483.2 MB, free: 3.898 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003124/0.3397, allocations: 72 kB / 483.3 MB, free: 3.828 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004344/0.344, allocations: 1.483 MB / 484.8 MB, free: 2.344 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00035/0.3443, allocations: 333.5 kB / 485.1 MB, free: 2.016 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001565/0.3459, allocations: 1.432 MB / 486.5 MB, free: 0.5742 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005993/0.3519, allocations: 4.009 MB / 490.5 MB, free: 12.55 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.3519, allocations: 0 / 490.5 MB, free: 12.55 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.3519, allocations: 0 / 490.5 MB, free: 12.55 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001085/0.352, allocations: 0 / 490.5 MB, free: 12.55 MB / 398.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.006279/0.3583, allocations: 3.89 MB / 494.4 MB, free: 8.598 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.3583, allocations: 8.031 kB / 494.4 MB, free: 8.59 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005299/0.3589, allocations: 437.3 kB / 494.9 MB, free: 8.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003855/0.3627, allocations: 2.341 MB / 497.2 MB, free: 5.727 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.82e-05/0.3628, allocations: 44.94 kB / 497.2 MB, free: 5.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000142/0.3629, allocations: 59.92 kB / 497.3 MB, free: 5.621 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001374/0.3643, allocations: 0.7304 MB / 498 MB, free: 4.887 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.3643, allocations: 0 / 498 MB, free: 4.887 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.793e-05/0.3644, allocations: 24 kB / 498.1 MB, free: 4.863 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.85e-05/0.3644, allocations: 19.98 kB / 498.1 MB, free: 4.844 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001572/0.366, allocations: 0.8202 MB / 498.9 MB, free: 4.023 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00583/0.3718, allocations: 3.05 MB / 0.4902 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001216/0.373, allocations: 0.5242 MB / 0.4907 GB, free: 384 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009881/0.374, allocations: 0.5614 MB / 0.4912 GB, free: 15.8 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02642/0.4004, allocations: 13.8 MB / 0.5047 GB, free: 1.625 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007759/0.4012, allocations: 365.6 kB / 0.5051 GB, free: 1.254 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.395e-06/0.4012, allocations: 0 / 0.5051 GB, free: 1.254 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002407/0.4036, allocations: 1.126 MB / 0.5062 GB, free: 124 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.017e-05/0.4037, allocations: 59.41 kB / 0.5062 GB, free: 52 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004054/0.4077, allocations: 3.09 MB / 0.5092 GB, free: 12.96 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001132/0.4078, allocations: 33.7 kB / 0.5093 GB, free: 12.92 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001438/0.4093, allocations: 1.582 MB / 0.5108 GB, free: 11.33 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001783/0.4094, allocations: 182.5 kB / 0.511 GB, free: 11.15 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003043/0.4098, allocations: 230.4 kB / 0.5112 GB, free: 10.92 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.4099, allocations: 337.9 kB / 0.5115 GB, free: 10.59 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005957/0.4105, allocations: 249.8 kB / 0.5118 GB, free: 10.34 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008843/0.4114, allocations: 0.5979 MB / 0.5124 GB, free: 9.566 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001544/0.4129, allocations: 0.9013 MB / 0.5132 GB, free: 8.492 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-05/0.4129, allocations: 7.938 kB / 0.5132 GB, free: 8.484 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002326/0.4153, allocations: 1.262 MB / 0.5145 GB, free: 7.215 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.4153, allocations: 8 kB / 0.5145 GB, free: 7.207 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001206/0.4154, allocations: 80 kB / 0.5146 GB, free: 7.129 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.419e-05/0.4155, allocations: 20 kB / 0.5146 GB, free: 7.109 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007514/0.4162, allocations: 204.2 kB / 0.5148 GB, free: 6.91 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.978e-05/0.4162, allocations: 27.86 kB / 0.5148 GB, free: 6.883 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001066/0.4173, allocations: 115.3 kB / 0.5149 GB, free: 6.77 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000116/0.4174, allocations: 60 kB / 0.515 GB, free: 6.711 MB / 430.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.000836/0.4183, allocations: 461.4 kB / 0.5154 GB, free: 6.25 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005602/0.4188, allocations: 417.3 kB / 0.5158 GB, free: 5.84 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002849/0.4217, allocations: 1.207 MB / 0.517 GB, free: 4.625 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.356e-05/0.4217, allocations: 8 kB / 0.517 GB, free: 4.617 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.4217, allocations: 3.984 kB / 0.517 GB, free: 4.613 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.4217, allocations: 0 / 0.517 GB, free: 4.613 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003977/0.4257, allocations: 2.118 MB / 0.5191 GB, free: 2.434 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001034/0.4258, allocations: 72 kB / 0.5191 GB, free: 2.363 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004801/0.4262, allocations: 103.9 kB / 0.5192 GB, free: 2.262 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.192e-06/0.4263, allocations: 0 / 0.5192 GB, free: 2.262 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.551e-05/0.4263, allocations: 28 kB / 0.5193 GB, free: 2.234 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.372e-06/0.4263, allocations: 4 kB / 0.5193 GB, free: 2.23 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.4263, allocations: 0 / 0.5193 GB, free: 2.23 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002428/0.4288, allocations: 1.35 MB / 0.5206 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/0.4298, allocations: 439.1 kB / 0.521 GB, free: 436 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004418/0.4302, allocations: 12 kB / 0.521 GB, free: 424 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007823/0.431, allocations: 27.95 kB / 0.521 GB, free: 396 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001634/0.4312, allocations: 63.88 kB / 0.5211 GB, free: 332 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.968e-05/0.4312, allocations: 39.98 kB / 0.5211 GB, free: 292 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003383/0.4346, allocations: 2.014 MB / 0.5231 GB, free: 14.28 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4346, allocations: 0 / 0.5231 GB, free: 14.28 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001586/0.4362, allocations: 0.5969 MB / 0.5237 GB, free: 13.68 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.001316/0.4375, allocations: 0.7804 MB / 0.5244 GB, free: 12.89 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00172/0.4392, allocations: 0.779 MB / 0.5252 GB, free: 12.09 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.4392, allocations: 0 / 0.5252 GB, free: 12.09 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008112/0.4401, allocations: 426.9 kB / 0.5256 GB, free: 11.64 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002957/0.443, allocations: 0.6385 MB / 0.5262 GB, free: 11 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007533/0.4506, allocations: 4.65 MB / 0.5308 GB, free: 6.305 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001681/0.4522, allocations: 1.71 MB / 0.5325 GB, free: 4.562 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003936/0.4526, allocations: 159.4 kB / 0.5326 GB, free: 4.406 MB / 446.1 MB Notification: Performance of SimCode: time 2.063e-06/0.4526, allocations: 0 / 0.5326 GB, free: 4.406 MB / 446.1 MB Notification: Performance of Templates: time 0.2401/0.6927, allocations: 38.82 MB / 0.5705 GB, free: 77.93 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 10.71179292188026]