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.001601/0.001601, allocations: 111 kB / 21.18 MB, free: 0.6758 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.001956/0.001956, allocations: 206 kB / 24.47 MB, free: 3.977 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.928/1.928, allocations: 230.6 MB / 258.2 MB, free: 7.797 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.001716/0.001716, allocations: 56.02 kB / 379 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3765/0.3782, allocations: 53.37 MB / 432.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.0158/0.394, allocations: 12.89 MB / 445.2 MB, free: 9.777 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02809/0.4221, allocations: 17.97 MB / 463.2 MB, free: 7.742 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004405/0.4265, allocations: 142.4 kB / 463.3 MB, free: 7.602 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004853/0.4313, allocations: 1.155 MB / 464.5 MB, free: 6.445 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01012/0.4415, allocations: 2.409 MB / 466.9 MB, free: 4.016 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005903/0.4474, allocations: 1.414 MB / 468.3 MB, free: 2.602 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01387/0.4612, allocations: 6.731 MB / 475 MB, free: 11.85 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009472/0.4622, allocations: 266.2 kB / 475.3 MB, free: 11.56 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002532/0.4647, allocations: 1.19 MB / 476.5 MB, free: 10.36 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002348/0.4671, allocations: 1.149 MB / 477.6 MB, free: 9.207 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003112/0.4674, allocations: 76 kB / 477.7 MB, free: 9.133 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004948/0.4723, allocations: 1.237 MB / 478.9 MB, free: 7.895 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006557/0.473, allocations: 337.5 kB / 479.3 MB, free: 7.562 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002288/0.4753, allocations: 1.048 MB / 480.3 MB, free: 6.508 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009134/0.4844, allocations: 4.048 MB / 484.4 MB, free: 2.441 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.4844, allocations: 0 / 484.4 MB, free: 2.441 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.4844, allocations: 0 / 484.4 MB, free: 2.441 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001786/0.4846, allocations: 0 / 484.4 MB, free: 2.441 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.00958/0.4942, allocations: 3.886 MB / 488.2 MB, free: 14.5 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.461e-05/0.4942, allocations: 12.03 kB / 488.3 MB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00102/0.4952, allocations: 429.3 kB / 488.7 MB, free: 14.06 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006149/0.5014, allocations: 2.353 MB / 491 MB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.86e-05/0.5015, allocations: 40.98 kB / 491.1 MB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003139/0.5018, allocations: 51.95 kB / 491.1 MB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002348/0.5041, allocations: 0.7265 MB / 491.8 MB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.236e-05/0.5041, allocations: 0 / 491.8 MB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001093/0.5043, allocations: 27.98 kB / 491.9 MB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.918e-05/0.5043, allocations: 19.98 kB / 491.9 MB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00218/0.5065, allocations: 0.8202 MB / 492.7 MB, free: 9.926 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008943/0.5154, allocations: 2.811 MB / 495.5 MB, free: 7.062 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001422/0.5168, allocations: 0.5164 MB / 496 MB, free: 6.539 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001141/0.518, allocations: 0.5653 MB / 496.6 MB, free: 5.965 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02969/0.5477, allocations: 13.72 MB / 0.4984 GB, free: 7.859 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008575/0.5485, allocations: 361.7 kB / 0.4987 GB, free: 7.492 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.056e-06/0.5485, allocations: 3.938 kB / 0.4987 GB, free: 7.488 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002794/0.5513, allocations: 1.13 MB / 0.4998 GB, free: 6.352 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.301e-05/0.5514, allocations: 59.39 kB / 0.4999 GB, free: 6.281 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004476/0.5559, allocations: 3.106 MB / 0.5029 GB, free: 3.176 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.447e-05/0.556, allocations: 37.7 kB / 0.5029 GB, free: 3.133 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001595/0.5575, allocations: 1.582 MB / 0.5045 GB, free: 1.543 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002196/0.5578, allocations: 178.6 kB / 0.5047 GB, free: 1.367 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003931/0.5582, allocations: 234.4 kB / 0.5049 GB, free: 1.133 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001873/0.5583, allocations: 334 kB / 0.5052 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006454/0.559, allocations: 241.8 kB / 0.5054 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009799/0.56, allocations: 0.6134 MB / 0.506 GB, free: 15.77 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001614/0.5616, allocations: 0.9013 MB / 0.5069 GB, free: 14.7 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.347e-05/0.5616, allocations: 8 kB / 0.5069 GB, free: 14.69 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002803/0.5644, allocations: 1.259 MB / 0.5082 GB, free: 13.43 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.457e-05/0.5644, allocations: 16 kB / 0.5082 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00013/0.5646, allocations: 80 kB / 0.5082 GB, free: 13.33 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.809e-05/0.5646, allocations: 16 kB / 0.5083 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007875/0.5654, allocations: 203.6 kB / 0.5085 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.505e-05/0.5654, allocations: 23.92 kB / 0.5085 GB, free: 13.09 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001472/0.5669, allocations: 115.3 kB / 0.5086 GB, free: 12.98 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000138/0.567, allocations: 71.94 kB / 0.5087 GB, free: 12.91 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.001008/0.568, allocations: 449.5 kB / 0.5091 GB, free: 12.46 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006421/0.5687, allocations: 421.3 kB / 0.5095 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002924/0.5716, allocations: 1.207 MB / 0.5107 GB, free: 10.83 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/0.5716, allocations: 4 kB / 0.5107 GB, free: 10.83 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.5716, allocations: 0 / 0.5107 GB, free: 10.83 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.5716, allocations: 0 / 0.5107 GB, free: 10.83 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004361/0.576, allocations: 1.992 MB / 0.5126 GB, free: 8.789 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001178/0.5761, allocations: 71.98 kB / 0.5127 GB, free: 8.719 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005661/0.5767, allocations: 91.86 kB / 0.5128 GB, free: 8.629 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.479e-05/0.5767, allocations: 4 kB / 0.5128 GB, free: 8.625 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.822e-05/0.5768, allocations: 35.98 kB / 0.5128 GB, free: 8.59 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.287e-06/0.5768, allocations: 12 kB / 0.5128 GB, free: 8.578 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.5768, allocations: 0 / 0.5128 GB, free: 8.578 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00319/0.58, allocations: 1.343 MB / 0.5141 GB, free: 7.211 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001444/0.5814, allocations: 435.1 kB / 0.5145 GB, free: 6.785 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000713/0.5821, allocations: 11.98 kB / 0.5146 GB, free: 6.773 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001049/0.5832, allocations: 31.97 kB / 0.5146 GB, free: 6.742 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002068/0.5834, allocations: 59.92 kB / 0.5146 GB, free: 6.684 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.854e-05/0.5835, allocations: 36 kB / 0.5147 GB, free: 6.648 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00364/0.5871, allocations: 2.014 MB / 0.5166 GB, free: 4.641 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5871, allocations: 0 / 0.5166 GB, free: 4.641 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002379/0.5895, allocations: 0.6048 MB / 0.5172 GB, free: 4.035 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.001809/0.5913, allocations: 0.7807 MB / 0.518 GB, free: 3.246 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002052/0.5934, allocations: 0.7715 MB / 0.5188 GB, free: 2.449 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/0.5934, allocations: 320 / 0.5188 GB, free: 2.449 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008996/0.5943, allocations: 426.9 kB / 0.5192 GB, free: 2.008 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003713/0.598, allocations: 0.6461 MB / 0.5198 GB, free: 1.359 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00894/0.6069, allocations: 4.578 MB / 0.5243 GB, free: 12.74 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001341/0.6083, allocations: 1.162 MB / 0.5254 GB, free: 11.54 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001406/0.6097, allocations: 361.3 kB / 0.5257 GB, free: 11.18 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003955/0.6101, allocations: 151.4 kB / 0.5259 GB, free: 11.03 MB / 446.1 MB Notification: Performance of SimCode: time 2.024e-06/0.6101, allocations: 0 / 0.5259 GB, free: 11.03 MB / 446.1 MB Notification: Performance of Templates: time 0.3967/1.007, allocations: 37.81 MB / 0.5628 GB, free: 87.45 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 -s cvode -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: 7.021118468008353]