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.001696/0.001696, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.00202/0.00202, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.632/1.632, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.001621/0.001621, allocations: 47.94 kB / 373.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1031, allocations: 53.33 MB / 426.8 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.2013/0.3045, allocations: 14.75 MB / 441.5 MB, free: 2.922 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02856/0.333, allocations: 20.78 MB / 462.3 MB, free: 3.859 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004834/0.3379, allocations: 133.7 kB / 462.5 MB, free: 3.77 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005681/0.3435, allocations: 1.233 MB / 463.7 MB, free: 3.121 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01321/0.3567, allocations: 2.333 MB / 466 MB, free: 1.691 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006815/0.3636, allocations: 1.439 MB / 467.5 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01472/0.3783, allocations: 6.597 MB / 474.1 MB, free: 13.81 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008026/0.3791, allocations: 265.6 kB / 474.3 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002467/0.3815, allocations: 1.143 MB / 475.5 MB, free: 13.1 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001793/0.3833, allocations: 1.116 MB / 476.6 MB, free: 12.45 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002285/0.3836, allocations: 74.5 kB / 476.6 MB, free: 12.45 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005995/0.3896, allocations: 1.476 MB / 478.1 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004225/0.39, allocations: 330 kB / 478.4 MB, free: 11.56 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001853/0.3918, allocations: 1.368 MB / 479.8 MB, free: 10.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006853/0.3987, allocations: 3.791 MB / 483.6 MB, free: 7.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3987, allocations: 4 kB / 483.6 MB, free: 7.746 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3987, allocations: 0 / 483.6 MB, free: 7.746 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001149/0.3988, allocations: 0 / 483.6 MB, free: 7.746 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.00693/0.4057, allocations: 3.813 MB / 487.4 MB, free: 3.848 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.4058, allocations: 8.031 kB / 487.4 MB, free: 3.84 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006413/0.4064, allocations: 417.4 kB / 487.8 MB, free: 3.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003914/0.4103, allocations: 2.453 MB / 490.3 MB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.691e-05/0.4104, allocations: 37 kB / 490.3 MB, free: 0.8711 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001438/0.4105, allocations: 48 kB / 490.4 MB, free: 0.8242 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001511/0.412, allocations: 0.7382 MB / 491.1 MB, free: 84 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/0.412, allocations: 3.938 kB / 491.1 MB, free: 80 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.217e-05/0.4121, allocations: 16 kB / 491.1 MB, free: 64 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.111e-05/0.4121, allocations: 23.98 kB / 491.2 MB, free: 40 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001863/0.414, allocations: 0.8124 MB / 492 MB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006269/0.4203, allocations: 3.067 MB / 495 MB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001364/0.4216, allocations: 0.511 MB / 495.5 MB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001117/0.4228, allocations: 0.5587 MB / 496.1 MB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03463/0.4574, allocations: 30.77 MB / 0.5145 GB, free: 7.977 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00084/0.4582, allocations: 353.7 kB / 0.5149 GB, free: 7.621 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.685e-06/0.4582, allocations: 0 / 0.5149 GB, free: 7.621 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002685/0.4609, allocations: 1.107 MB / 0.5159 GB, free: 6.508 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.176e-05/0.461, allocations: 67.33 kB / 0.516 GB, free: 6.43 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003916/0.4649, allocations: 2.943 MB / 0.5189 GB, free: 3.477 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.197e-05/0.4649, allocations: 29.7 kB / 0.5189 GB, free: 3.441 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001516/0.4664, allocations: 1.498 MB / 0.5204 GB, free: 1.934 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001936/0.4666, allocations: 170.6 kB / 0.5205 GB, free: 1.766 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003681/0.467, allocations: 234.4 kB / 0.5208 GB, free: 1.531 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.4672, allocations: 334 kB / 0.5211 GB, free: 1.199 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006554/0.4678, allocations: 245.8 kB / 0.5213 GB, free: 0.9609 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001009/0.4689, allocations: 0.5981 MB / 0.5219 GB, free: 192 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001703/0.4706, allocations: 0.895 MB / 0.5228 GB, free: 15.12 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.065e-05/0.4706, allocations: 11.94 kB / 0.5228 GB, free: 15.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002612/0.4732, allocations: 1.243 MB / 0.524 GB, free: 13.86 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.4732, allocations: 12.66 kB / 0.524 GB, free: 13.85 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001162/0.4733, allocations: 80 kB / 0.5241 GB, free: 13.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.347e-05/0.4734, allocations: 23.7 kB / 0.5241 GB, free: 13.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007791/0.4741, allocations: 207.6 kB / 0.5243 GB, free: 13.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.546e-05/0.4742, allocations: 23.92 kB / 0.5243 GB, free: 13.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001023/0.4752, allocations: 107.3 kB / 0.5244 GB, free: 13.42 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000121/0.4753, allocations: 68 kB / 0.5245 GB, free: 13.35 MB / 446.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.0008057/0.4761, allocations: 438.2 kB / 0.5249 GB, free: 12.91 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004283/0.4765, allocations: 401.5 kB / 0.5253 GB, free: 12.52 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002813/0.4794, allocations: 1.191 MB / 0.5265 GB, free: 11.32 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.4794, allocations: 4 kB / 0.5265 GB, free: 11.32 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.4794, allocations: 3.938 kB / 0.5265 GB, free: 11.31 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.4794, allocations: 0 / 0.5265 GB, free: 11.31 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003581/0.483, allocations: 2.101 MB / 0.5285 GB, free: 9.145 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.945e-05/0.4831, allocations: 71.98 kB / 0.5286 GB, free: 9.074 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005048/0.4836, allocations: 83.92 kB / 0.5287 GB, free: 8.992 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.512e-06/0.4836, allocations: 12 kB / 0.5287 GB, free: 8.98 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.412e-05/0.4836, allocations: 35.98 kB / 0.5287 GB, free: 8.945 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.4836, allocations: 0 / 0.5287 GB, free: 8.945 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.4836, allocations: 7.938 kB / 0.5287 GB, free: 8.938 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002528/0.4862, allocations: 1.303 MB / 0.53 GB, free: 7.605 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007744/0.4869, allocations: 0.4912 MB / 0.5305 GB, free: 7.094 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002562/0.4872, allocations: 12.06 kB / 0.5305 GB, free: 7.082 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006972/0.4879, allocations: 31.97 kB / 0.5305 GB, free: 7.051 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001706/0.4881, allocations: 67.81 kB / 0.5306 GB, free: 6.984 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.432e-05/0.4881, allocations: 36.88 kB / 0.5306 GB, free: 6.949 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002648/0.4908, allocations: 1.907 MB / 0.5325 GB, free: 5.043 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4908, allocations: 0 / 0.5325 GB, free: 5.043 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001476/0.4923, allocations: 0.5891 MB / 0.533 GB, free: 4.453 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.00128/0.4935, allocations: 0.7808 MB / 0.5338 GB, free: 3.664 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001809/0.4953, allocations: 0.7632 MB / 0.5346 GB, free: 2.875 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.4954, allocations: 0 / 0.5346 GB, free: 2.875 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008506/0.4962, allocations: 427.2 kB / 0.535 GB, free: 2.434 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002574/0.4988, allocations: 0.606 MB / 0.5356 GB, free: 1.832 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006546/0.5053, allocations: 4.399 MB / 0.5398 GB, free: 13.39 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001297/0.5066, allocations: 1.665 MB / 0.5415 GB, free: 11.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009474/0.5076, allocations: 361.1 kB / 0.5418 GB, free: 11.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002502/0.5078, allocations: 147.4 kB / 0.542 GB, free: 11.2 MB / 462.1 MB Notification: Performance of SimCode: time 6.51e-07/0.5078, allocations: 0 / 0.542 GB, free: 11.2 MB / 462.1 MB Notification: Performance of Templates: time 0.05748/0.5653, allocations: 31.53 MB / 0.5727 GB, free: 11.99 MB / 494.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins/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: 5.939407840371132]