Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.001415/0.001415, allocations: 111 kB / 21.19 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.001378/0.001378, allocations: 215.5 kB / 24.48 MB, free: 3.98 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 2.109/2.109, 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.InvertersApartRecord,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.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,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.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001636/0.001636, allocations: 51.92 kB / 379 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4247/0.4264, allocations: 53.36 MB / 432.3 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01571/0.4421, allocations: 12.39 MB / 444.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02751/0.4696, allocations: 17.89 MB / 462.6 MB, free: 8.293 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003792/0.4734, allocations: 138.5 kB / 462.7 MB, free: 8.156 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004448/0.4778, allocations: 1.128 MB / 463.9 MB, free: 7.027 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01013/0.488, allocations: 2.359 MB / 466.2 MB, free: 4.648 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005862/0.4938, allocations: 1.414 MB / 467.6 MB, free: 3.234 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01396/0.5078, allocations: 6.607 MB / 474.2 MB, free: 12.61 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001058/0.5088, allocations: 277.7 kB / 474.5 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002637/0.5115, allocations: 1.155 MB / 475.7 MB, free: 11.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002304/0.5138, allocations: 1.106 MB / 476.8 MB, free: 10.03 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003507/0.5141, allocations: 76 kB / 476.9 MB, free: 9.957 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004973/0.5191, allocations: 1.241 MB / 478.1 MB, free: 8.715 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005794/0.5197, allocations: 325.6 kB / 478.4 MB, free: 8.395 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001941/0.5216, allocations: 1.009 MB / 479.4 MB, free: 7.379 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01016/0.5318, allocations: 3.83 MB / 483.3 MB, free: 3.531 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.5318, allocations: 0 / 483.3 MB, free: 3.531 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.5318, allocations: 0 / 483.3 MB, free: 3.531 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000159/0.5319, allocations: 0 / 483.3 MB, free: 3.531 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.007602/0.5396, allocations: 3.734 MB / 487 MB, free: 15.73 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.816e-05/0.5396, allocations: 11.97 kB / 487 MB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007871/0.5404, allocations: 413.4 kB / 487.4 MB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004794/0.5452, allocations: 2.295 MB / 489.7 MB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.675e-05/0.5452, allocations: 37 kB / 489.7 MB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001695/0.5454, allocations: 51.98 kB / 489.8 MB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001584/0.547, allocations: 0.7343 MB / 490.5 MB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.547, allocations: 0 / 490.5 MB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.811e-05/0.5471, allocations: 20 kB / 490.5 MB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.23e-05/0.5471, allocations: 27.97 kB / 490.6 MB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001695/0.5488, allocations: 0.8124 MB / 491.4 MB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006644/0.5555, allocations: 2.766 MB / 494.1 MB, free: 8.422 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001275/0.5567, allocations: 0.5086 MB / 494.7 MB, free: 7.906 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/0.5578, allocations: 0.573 MB / 495.2 MB, free: 7.324 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02827/0.586, allocations: 13.72 MB / 0.497 GB, free: 9.219 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008745/0.5869, allocations: 353.7 kB / 0.4974 GB, free: 8.859 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.487e-06/0.5869, allocations: 0 / 0.4974 GB, free: 8.859 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002756/0.5897, allocations: 1.11 MB / 0.4984 GB, free: 7.742 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.644e-05/0.5897, allocations: 63.41 kB / 0.4985 GB, free: 7.668 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004363/0.5941, allocations: 2.958 MB / 0.5014 GB, free: 4.699 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001166/0.5942, allocations: 33.7 kB / 0.5014 GB, free: 4.66 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001531/0.5957, allocations: 1.498 MB / 0.5029 GB, free: 3.152 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002594/0.596, allocations: 178.6 kB / 0.5031 GB, free: 2.977 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003738/0.5964, allocations: 234.3 kB / 0.5033 GB, free: 2.742 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001868/0.5966, allocations: 337.9 kB / 0.5036 GB, free: 2.406 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006354/0.5972, allocations: 237.9 kB / 0.5038 GB, free: 2.172 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009209/0.5981, allocations: 0.6057 MB / 0.5044 GB, free: 1.391 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001588/0.5997, allocations: 0.8935 MB / 0.5053 GB, free: 332 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.131e-05/0.5997, allocations: 4 kB / 0.5053 GB, free: 328 kB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002603/0.6023, allocations: 1.247 MB / 0.5065 GB, free: 15.06 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.049e-05/0.6023, allocations: 12 kB / 0.5065 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001273/0.6025, allocations: 83.98 kB / 0.5066 GB, free: 14.97 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.44e-05/0.6025, allocations: 16 kB / 0.5066 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000755/0.6033, allocations: 203.6 kB / 0.5068 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.865e-05/0.6033, allocations: 23.92 kB / 0.5068 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001266/0.6046, allocations: 115.5 kB / 0.5069 GB, free: 14.62 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001253/0.6047, allocations: 67.98 kB / 0.507 GB, free: 14.55 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.0009046/0.6056, allocations: 439 kB / 0.5074 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005895/0.6062, allocations: 401.5 kB / 0.5078 GB, free: 13.72 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002889/0.6091, allocations: 1.19 MB / 0.509 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.6091, allocations: 4 kB / 0.509 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.6091, allocations: 3.938 kB / 0.509 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.6091, allocations: 3.984 kB / 0.509 GB, free: 12.51 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003849/0.6129, allocations: 1.942 MB / 0.5109 GB, free: 10.52 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001056/0.613, allocations: 68 kB / 0.5109 GB, free: 10.46 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005321/0.6136, allocations: 99.83 kB / 0.511 GB, free: 10.36 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.306e-06/0.6136, allocations: 0 / 0.511 GB, free: 10.36 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.086e-05/0.6137, allocations: 36.06 kB / 0.5111 GB, free: 10.32 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.444e-06/0.6137, allocations: 4 kB / 0.5111 GB, free: 10.32 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.6137, allocations: 0 / 0.5111 GB, free: 10.32 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002818/0.6165, allocations: 1.318 MB / 0.5124 GB, free: 8.977 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001225/0.6177, allocations: 415.2 kB / 0.5128 GB, free: 8.57 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003448/0.6181, allocations: 12 kB / 0.5128 GB, free: 8.559 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006819/0.6187, allocations: 31.91 kB / 0.5128 GB, free: 8.527 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001724/0.6189, allocations: 59.92 kB / 0.5129 GB, free: 8.469 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.732e-05/0.619, allocations: 36 kB / 0.5129 GB, free: 8.434 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003297/0.6223, allocations: 1.915 MB / 0.5148 GB, free: 6.52 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.6223, allocations: 0 / 0.5148 GB, free: 6.52 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002111/0.6244, allocations: 0.5852 MB / 0.5153 GB, free: 5.934 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.001523/0.6259, allocations: 0.7768 MB / 0.5161 GB, free: 5.148 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001971/0.6279, allocations: 0.7717 MB / 0.5169 GB, free: 4.352 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.6279, allocations: 0 / 0.5169 GB, free: 4.352 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008635/0.6288, allocations: 426.9 kB / 0.5173 GB, free: 3.91 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003078/0.6318, allocations: 0.6133 MB / 0.5179 GB, free: 3.297 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008045/0.6399, allocations: 4.395 MB / 0.5221 GB, free: 14.86 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001418/0.6413, allocations: 1.117 MB / 0.5232 GB, free: 13.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001275/0.6426, allocations: 357.1 kB / 0.5236 GB, free: 13.35 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00028/0.6429, allocations: 151.4 kB / 0.5237 GB, free: 13.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.222e-06/0.6429, allocations: 0 / 0.5237 GB, free: 13.2 MB / 446.1 MB Notification: Performance of Templates: time 0.4655/1.108, allocations: 36.77 MB / 0.5596 GB, free: 91 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.559900061998633]