Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.002091/0.002091, allocations: 102.9 kB / 21.93 MB, free: 5.203 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.002595/0.002595, allocations: 203.2 kB / 25.22 MB, free: 3.141 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.499/1.499, allocations: 207.7 MB / 236.1 MB, free: 9.785 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001923/0.001923, allocations: 59.92 kB / 348.4 MB, free: 9.371 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2879/0.2898, allocations: 49.15 MB / 397.6 MB, free: 9.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01102/0.3008, allocations: 11.83 MB / 409.4 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02532/0.3261, allocations: 17.04 MB / 426.5 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003763/0.3299, allocations: 137.8 kB / 426.6 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004453/0.3344, allocations: 1.108 MB / 427.7 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01021/0.3446, allocations: 2.313 MB / 430 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00604/0.3506, allocations: 1.362 MB / 431.4 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01202/0.3626, allocations: 6.38 MB / 437.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007333/0.3634, allocations: 261.8 kB / 438 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001955/0.3653, allocations: 1.05 MB / 439.1 MB, free: 9.574 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001609/0.3669, allocations: 1.04 MB / 440.1 MB, free: 8.527 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002243/0.3671, allocations: 76 kB / 440.2 MB, free: 8.453 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003986/0.3711, allocations: 1.089 MB / 441.3 MB, free: 7.363 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005005/0.3716, allocations: 325.6 kB / 441.6 MB, free: 7.043 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001709/0.3733, allocations: 1.021 MB / 442.6 MB, free: 6.016 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007647/0.381, allocations: 3.858 MB / 446.5 MB, free: 2.141 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.381, allocations: 0 / 446.5 MB, free: 2.141 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.381, allocations: 0 / 446.5 MB, free: 2.141 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.383e-05/0.3811, allocations: 0 / 446.5 MB, free: 2.141 MB / 350.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.006621/0.3877, allocations: 3.757 MB / 450.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.3878, allocations: 15.98 kB / 450.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005885/0.3883, allocations: 417.4 kB / 450.6 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004363/0.3927, allocations: 2.307 MB / 452.9 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.663e-05/0.3928, allocations: 40.94 kB / 453 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001839/0.393, allocations: 55.98 kB / 453 MB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001729/0.3947, allocations: 0.7265 MB / 453.8 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.544e-05/0.3947, allocations: 0 / 453.8 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.347e-05/0.3948, allocations: 24 kB / 453.8 MB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.816e-05/0.3948, allocations: 23.92 kB / 453.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001768/0.3966, allocations: 0.8163 MB / 454.6 MB, free: 9.797 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005956/0.4026, allocations: 2.777 MB / 457.4 MB, free: 6.965 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001257/0.4038, allocations: 0.5211 MB / 457.9 MB, free: 6.438 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001037/0.4048, allocations: 0.573 MB / 458.5 MB, free: 5.855 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02665/0.4315, allocations: 13.72 MB / 472.2 MB, free: 7.754 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000828/0.4323, allocations: 373.5 kB / 472.6 MB, free: 7.371 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 3.386e-06/0.4323, allocations: 4 kB / 472.6 MB, free: 7.367 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002611/0.4349, allocations: 1.107 MB / 473.7 MB, free: 6.258 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.619e-05/0.435, allocations: 67.39 kB / 473.8 MB, free: 6.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004233/0.4392, allocations: 2.96 MB / 476.7 MB, free: 3.211 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001154/0.4393, allocations: 37.7 kB / 476.8 MB, free: 3.168 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001471/0.4408, allocations: 1.51 MB / 478.3 MB, free: 1.648 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000232/0.4411, allocations: 178.6 kB / 478.4 MB, free: 1.473 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003407/0.4414, allocations: 238.3 kB / 478.7 MB, free: 1.234 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.4416, allocations: 334 kB / 479 MB, free: 0.9023 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006541/0.4422, allocations: 241.8 kB / 479.2 MB, free: 0.668 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000942/0.4432, allocations: 0.6018 MB / 479.8 MB, free: 15.89 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001627/0.4448, allocations: 0.8974 MB / 480.7 MB, free: 14.82 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.537e-06/0.4448, allocations: 4 kB / 480.7 MB, free: 14.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00262/0.4474, allocations: 1.255 MB / 482 MB, free: 13.55 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.949e-05/0.4474, allocations: 8 kB / 482 MB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000128/0.4476, allocations: 80 kB / 482.1 MB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.495e-05/0.4476, allocations: 20 kB / 482.1 MB, free: 13.44 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007611/0.4484, allocations: 203.6 kB / 482.3 MB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.596e-05/0.4484, allocations: 23.92 kB / 482.3 MB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001216/0.4496, allocations: 115.3 kB / 482.4 MB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001159/0.4497, allocations: 67.98 kB / 482.5 MB, free: 13.04 MB / 398.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.0008618/0.4506, allocations: 433.5 kB / 482.9 MB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005499/0.4511, allocations: 405.4 kB / 483.3 MB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002858/0.454, allocations: 1.205 MB / 484.5 MB, free: 11 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.468e-06/0.454, allocations: 4 kB / 484.5 MB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.454, allocations: 4 kB / 484.5 MB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.454, allocations: 3.984 kB / 484.5 MB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003849/0.4579, allocations: 1.939 MB / 486.5 MB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001107/0.458, allocations: 71.98 kB / 486.6 MB, free: 8.922 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005088/0.4585, allocations: 91.92 kB / 486.6 MB, free: 8.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.173e-05/0.4585, allocations: 4 kB / 486.6 MB, free: 8.828 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.868e-05/0.4586, allocations: 35.98 kB / 486.7 MB, free: 8.793 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.478e-06/0.4586, allocations: 0 / 486.7 MB, free: 8.793 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.4586, allocations: 7.938 kB / 486.7 MB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002628/0.4612, allocations: 1.319 MB / 488 MB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001071/0.4623, allocations: 415.2 kB / 488.4 MB, free: 7.031 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002966/0.4626, allocations: 12 kB / 488.4 MB, free: 7.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006809/0.4633, allocations: 31.95 kB / 488.5 MB, free: 6.988 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001564/0.4634, allocations: 64 kB / 488.5 MB, free: 6.926 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.04e-05/0.4635, allocations: 43.92 kB / 488.6 MB, free: 6.883 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003051/0.4666, allocations: 1.916 MB / 490.5 MB, free: 4.969 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4666, allocations: 0 / 490.5 MB, free: 4.969 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002069/0.4686, allocations: 0.593 MB / 491.1 MB, free: 4.375 MB / 398.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.001419/0.47, allocations: 0.7801 MB / 491.9 MB, free: 3.586 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001877/0.4719, allocations: 0.775 MB / 492.6 MB, free: 2.785 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.4719, allocations: 0 / 492.6 MB, free: 2.785 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008201/0.4727, allocations: 427 kB / 493 MB, free: 2.344 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002306/0.4751, allocations: 0.5221 MB / 493.6 MB, free: 1.816 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007462/0.4825, allocations: 4.485 MB / 498 MB, free: 13.28 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001186/0.4837, allocations: 1.118 MB / 499.2 MB, free: 12.13 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004412/0.4841, allocations: 159.4 kB / 499.3 MB, free: 11.98 MB / 414.1 MB Notification: Performance of SimCode: time 1.854e-06/0.4841, allocations: 0 / 499.3 MB, free: 11.98 MB / 414.1 MB Notification: Performance of Templates: time 0.06788/0.552, allocations: 39.47 MB / 0.5262 GB, free: 4.434 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 11.806055849883705]