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.001489/0.001489, allocations: 107.6 kB / 21.18 MB, free: 0.5273 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.001688/0.001688, allocations: 206.1 kB / 24.48 MB, free: 3.695 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.446/1.446, 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.001559/0.001559, allocations: 47.92 kB / 379 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3057/0.3072, allocations: 53.36 MB / 432.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01523/0.3225, allocations: 12.9 MB / 445.2 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02584/0.3483, allocations: 17.97 MB / 463.2 MB, free: 7.738 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003485/0.3518, allocations: 138.5 kB / 463.3 MB, free: 7.602 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00407/0.3559, allocations: 1.147 MB / 464.5 MB, free: 6.453 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0102/0.3661, allocations: 2.413 MB / 466.9 MB, free: 4.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005364/0.3714, allocations: 1.414 MB / 468.3 MB, free: 2.605 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01261/0.384, allocations: 6.72 MB / 475 MB, free: 11.86 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007515/0.3848, allocations: 286.1 kB / 475.3 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002119/0.3869, allocations: 1.186 MB / 476.5 MB, free: 10.36 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001539/0.3884, allocations: 1.141 MB / 477.6 MB, free: 9.215 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001756/0.3886, allocations: 76 kB / 477.7 MB, free: 9.141 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00395/0.3926, allocations: 1.241 MB / 478.9 MB, free: 7.898 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003854/0.393, allocations: 333.5 kB / 479.3 MB, free: 7.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001226/0.3942, allocations: 1.048 MB / 480.3 MB, free: 6.516 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005797/0.4, allocations: 4.048 MB / 484.4 MB, free: 2.449 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.4, allocations: 4 kB / 484.4 MB, free: 2.445 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4, allocations: 4 kB / 484.4 MB, free: 2.441 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.202e-05/0.4, 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.00631/0.4064, allocations: 3.89 MB / 488.3 MB, free: 14.49 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.4064, allocations: 12.03 kB / 488.3 MB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005716/0.407, allocations: 429.3 kB / 488.7 MB, free: 14.06 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003938/0.4109, allocations: 2.341 MB / 491 MB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.796e-05/0.411, allocations: 37 kB / 491.1 MB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001449/0.4111, allocations: 55.95 kB / 491.1 MB, free: 11.53 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001466/0.4126, allocations: 0.7343 MB / 491.9 MB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/0.4126, allocations: 0 / 491.9 MB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.239e-05/0.4127, allocations: 20 kB / 491.9 MB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.128e-05/0.4127, allocations: 23.98 kB / 491.9 MB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001729/0.4144, allocations: 0.8163 MB / 492.7 MB, free: 9.934 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006059/0.4205, allocations: 2.807 MB / 495.5 MB, free: 7.074 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001237/0.4217, allocations: 0.5241 MB / 496 MB, free: 6.543 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001147/0.4229, allocations: 0.5614 MB / 496.6 MB, free: 5.973 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0294/0.4523, allocations: 13.73 MB / 0.4984 GB, free: 7.863 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008225/0.4531, allocations: 357.7 kB / 0.4987 GB, free: 7.5 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.555e-06/0.4531, allocations: 0 / 0.4987 GB, free: 7.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002611/0.4557, allocations: 1.134 MB / 0.4998 GB, free: 6.359 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.654e-05/0.4557, allocations: 55.41 kB / 0.4999 GB, free: 6.293 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004159/0.4599, allocations: 3.11 MB / 0.5029 GB, free: 3.184 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001622/0.4601, allocations: 41.69 kB / 0.503 GB, free: 3.137 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001521/0.4616, allocations: 1.582 MB / 0.5045 GB, free: 1.547 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002009/0.4618, allocations: 174.6 kB / 0.5047 GB, free: 1.375 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003406/0.4621, allocations: 226.4 kB / 0.5049 GB, free: 1.148 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.4623, allocations: 345.9 kB / 0.5052 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006457/0.463, allocations: 241.9 kB / 0.5054 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001084/0.464, allocations: 0.6056 MB / 0.506 GB, free: 15.79 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001591/0.4656, allocations: 0.9013 MB / 0.5069 GB, free: 14.71 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/0.4656, allocations: 0 / 0.5069 GB, free: 14.71 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002609/0.4682, allocations: 1.266 MB / 0.5081 GB, free: 13.44 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.954e-05/0.4683, allocations: 15.98 kB / 0.5082 GB, free: 13.42 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001211/0.4684, allocations: 80 kB / 0.5082 GB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.49e-05/0.4684, allocations: 16 kB / 0.5083 GB, free: 13.33 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007527/0.4692, allocations: 212.3 kB / 0.5085 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.729e-05/0.4692, allocations: 23.92 kB / 0.5085 GB, free: 13.1 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001139/0.4703, allocations: 111.3 kB / 0.5086 GB, free: 12.99 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001152/0.4705, allocations: 64 kB / 0.5086 GB, free: 12.93 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.0008659/0.4713, allocations: 451.1 kB / 0.5091 GB, free: 12.48 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005025/0.4718, allocations: 421.3 kB / 0.5095 GB, free: 12.06 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002793/0.4746, allocations: 1.215 MB / 0.5107 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.976e-06/0.4746, allocations: 4 kB / 0.5107 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.4746, allocations: 0 / 0.5107 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.4746, allocations: 3.984 kB / 0.5107 GB, free: 10.83 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003708/0.4784, allocations: 1.988 MB / 0.5126 GB, free: 8.797 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.763e-05/0.4785, allocations: 68 kB / 0.5127 GB, free: 8.73 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005116/0.479, allocations: 99.91 kB / 0.5128 GB, free: 8.633 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.817e-06/0.479, allocations: 7.938 kB / 0.5128 GB, free: 8.625 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.951e-05/0.479, allocations: 28 kB / 0.5128 GB, free: 8.598 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.472e-06/0.479, allocations: 4 kB / 0.5128 GB, free: 8.594 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.479, allocations: 0 / 0.5128 GB, free: 8.594 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002563/0.4816, allocations: 1.35 MB / 0.5141 GB, free: 7.219 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000995/0.4826, allocations: 439.1 kB / 0.5145 GB, free: 6.789 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003151/0.4829, allocations: 8 kB / 0.5146 GB, free: 6.781 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007331/0.4836, allocations: 40.02 kB / 0.5146 GB, free: 6.742 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001576/0.4838, allocations: 51.94 kB / 0.5146 GB, free: 6.691 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.767e-05/0.4839, allocations: 43.98 kB / 0.5147 GB, free: 6.648 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003233/0.4871, allocations: 2.01 MB / 0.5166 GB, free: 4.645 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4871, allocations: 0 / 0.5166 GB, free: 4.645 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001527/0.4887, allocations: 0.5969 MB / 0.5172 GB, free: 4.047 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.00126/0.4899, allocations: 0.7768 MB / 0.518 GB, free: 3.262 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001726/0.4916, allocations: 0.7793 MB / 0.5188 GB, free: 2.457 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.4916, allocations: 0 / 0.5188 GB, free: 2.457 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007946/0.4924, allocations: 426.9 kB / 0.5192 GB, free: 2.016 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002467/0.4949, allocations: 0.6502 MB / 0.5198 GB, free: 1.363 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00724/0.5021, allocations: 4.65 MB / 0.5243 GB, free: 12.66 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001185/0.5033, allocations: 1.158 MB / 0.5255 GB, free: 11.46 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003577/0.5037, allocations: 163.4 kB / 0.5256 GB, free: 11.3 MB / 446.1 MB Notification: Performance of SimCode: time 7.61e-07/0.5037, allocations: 0 / 0.5256 GB, free: 11.3 MB / 446.1 MB Notification: Performance of Templates: time 0.2693/0.773, allocations: 40.38 MB / 0.5651 GB, free: 80.89 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: 11.483338256017305]