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.001026/0.001026, allocations: 84.8 kB / 22.29 MB, free: 2.203 MB / 18.57 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.001344/0.001344, allocations: 164.9 kB / 25.69 MB, free: 8.434 MB / 18.57 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 0.8387/0.8387, allocations: 158.6 MB / 187.6 MB, free: 2.777 MB / 170.7 MB " [Timeout remaining time 179] 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: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 251.5 MB, free: 7.293 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.168e-05/1.293e-05, allocations: 2.312 kB / 251.5 MB, free: 7.289 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.008829/0.008842, allocations: 13.04 MB / 264.6 MB, free: 10.19 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01816/0.027, allocations: 18.84 MB / 283.4 MB, free: 7.273 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001811/0.02881, allocations: 142.5 kB / 283.5 MB, free: 7.133 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002178/0.03099, allocations: 1.15 MB / 284.7 MB, free: 5.973 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005407/0.0364, allocations: 2.414 MB / 287.1 MB, free: 3.543 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003304/0.0397, allocations: 1.419 MB / 288.5 MB, free: 2.113 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006445/0.04615, allocations: 6.626 MB / 295.1 MB, free: 11.47 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005103/0.04666, allocations: 302.5 kB / 295.4 MB, free: 11.13 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002616/0.04927, allocations: 2.826 MB / 298.3 MB, free: 8.301 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008298/0.0501, allocations: 0.7982 MB / 299.1 MB, free: 7.5 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001274/0.05023, allocations: 76 kB / 299.1 MB, free: 7.426 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00244/0.05267, allocations: 1.089 MB / 300.2 MB, free: 6.336 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002056/0.05288, allocations: 341.6 kB / 300.6 MB, free: 6 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006465/0.05352, allocations: 0.7437 MB / 301.3 MB, free: 5.254 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002423/0.05595, allocations: 2.825 MB / 304.1 MB, free: 2.418 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.05595, allocations: 8 kB / 304.1 MB, free: 2.41 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.05595, allocations: 0 / 304.1 MB, free: 2.41 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.99e-05/0.05601, allocations: 0 / 304.1 MB, free: 2.41 MB / 282.7 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.003153/0.05917, allocations: 3.681 MB / 307.8 MB, free: 14.67 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.0592, allocations: 15.98 kB / 307.8 MB, free: 14.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002669/0.05947, allocations: 283.6 kB / 308.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001805/0.06127, allocations: 2.07 MB / 310.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.367e-05/0.0613, allocations: 37 kB / 310.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.715e-05/0.06137, allocations: 55.95 kB / 310.3 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004905/0.06186, allocations: 475.3 kB / 310.7 MB, free: 11.63 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.06188, allocations: 12 kB / 310.7 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.828e-05/0.06192, allocations: 20 kB / 310.8 MB, free: 11.6 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.434e-05/0.06193, allocations: 19.98 kB / 310.8 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003506/0.06228, allocations: 228.4 kB / 311 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001982/0.06426, allocations: 1.563 MB / 312.6 MB, free: 9.758 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002786/0.06454, allocations: 280.9 kB / 312.8 MB, free: 9.473 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002774/0.06482, allocations: 327 kB / 313.2 MB, free: 9.148 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02516/0.08998, allocations: 23.12 MB / 336.3 MB, free: 1.176 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002629/0.09024, allocations: 210.1 kB / 336.5 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.513e-06/0.09024, allocations: 0 / 336.5 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0005327/0.09077, allocations: 491 kB / 337 MB, free: 484 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.725e-05/0.09081, allocations: 67.34 kB / 337 MB, free: 404 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00154/0.09235, allocations: 2.673 MB / 339.7 MB, free: 13.7 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.355e-05/0.09238, allocations: 33.7 kB / 339.7 MB, free: 13.66 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003856/0.09277, allocations: 0.7638 MB / 340.5 MB, free: 12.89 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.415e-05/0.09286, allocations: 174.6 kB / 340.7 MB, free: 12.71 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001544/0.09302, allocations: 190.3 kB / 340.9 MB, free: 12.52 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.822e-05/0.0931, allocations: 341.8 kB / 341.2 MB, free: 12.18 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001034/0.0932, allocations: 81.95 kB / 341.3 MB, free: 12.1 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002561/0.09346, allocations: 452.1 kB / 341.7 MB, free: 11.49 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006961/0.09415, allocations: 0.617 MB / 342.3 MB, free: 10.7 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-06/0.09416, allocations: 4 kB / 342.3 MB, free: 10.7 MB / 330.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0006123/0.09477, allocations: 0.6929 MB / 343 MB, free: 9.996 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.09479, allocations: 8.188 kB / 343 MB, free: 9.988 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.53e-05/0.09483, allocations: 31.98 kB / 343.1 MB, free: 9.957 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/0.09485, allocations: 16 kB / 343.1 MB, free: 9.941 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003507/0.0952, allocations: 207.6 kB / 343.3 MB, free: 9.738 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.286e-05/0.09522, allocations: 23.92 kB / 343.3 MB, free: 9.715 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004194/0.09564, allocations: 103.3 kB / 343.4 MB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.88e-05/0.09569, allocations: 40 kB / 343.4 MB, free: 9.574 MB / 330.7 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.0002599/0.09595, allocations: 169.5 kB / 343.6 MB, free: 9.398 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001847/0.09614, allocations: 247.7 kB / 343.9 MB, free: 9.156 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009771/0.09712, allocations: 0.7944 MB / 344.6 MB, free: 8.352 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.67e-06/0.09712, allocations: 7.984 kB / 344.7 MB, free: 8.344 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.09713, allocations: 7.938 kB / 344.7 MB, free: 8.336 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.09713, allocations: 0 / 344.7 MB, free: 8.336 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001353/0.09848, allocations: 1.552 MB / 346.2 MB, free: 6.738 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.193e-05/0.09852, allocations: 15.98 kB / 346.2 MB, free: 6.723 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001912/0.09871, allocations: 79.94 kB / 346.3 MB, free: 6.645 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.145e-06/0.09871, allocations: 4 kB / 346.3 MB, free: 6.641 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.647e-05/0.09874, allocations: 19.94 kB / 346.3 MB, free: 6.621 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.09874, allocations: 7.875 kB / 346.3 MB, free: 6.613 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.09874, allocations: 0 / 346.3 MB, free: 6.613 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005594/0.0993, allocations: 0.6291 MB / 347 MB, free: 5.957 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003629/0.09966, allocations: 401.3 kB / 347.4 MB, free: 5.562 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001675/0.09983, allocations: 11.94 kB / 347.4 MB, free: 5.551 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003049/0.1001, allocations: 19.98 kB / 347.4 MB, free: 5.531 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.415e-05/0.1002, allocations: 43.92 kB / 347.4 MB, free: 5.488 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.926e-05/0.1002, allocations: 15.94 kB / 347.4 MB, free: 5.473 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008635/0.1011, allocations: 1.422 MB / 348.9 MB, free: 4.047 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1011, allocations: 0 / 348.9 MB, free: 4.047 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007718/0.1019, allocations: 0.5931 MB / 349.5 MB, free: 3.453 MB / 330.7 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.0008666/0.1027, allocations: 0.923 MB / 350.4 MB, free: 2.52 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004185/0.1032, allocations: 463.8 kB / 350.8 MB, free: 2.043 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-05/0.1032, allocations: 44.5 kB / 350.9 MB, free: 2 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002005/0.1034, allocations: 238.6 kB / 351.1 MB, free: 1.738 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001011/0.1044, allocations: 0.5219 MB / 351.6 MB, free: 1.211 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1094/0.2138, allocations: 4.024 MB / 355.7 MB, free: 88.33 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002133/0.214, allocations: 384.6 kB / 356 MB, free: 88.23 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006964/0.2147, allocations: 361.6 kB / 356.4 MB, free: 88.2 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007041/0.2154, allocations: 0.5729 MB / 357 MB, free: 88.16 MB / 330.7 MB Notification: Performance of SimCode: time 1.122e-06/0.2154, allocations: 0 / 357 MB, free: 88.16 MB / 330.7 MB Notification: Performance of Templates: time 0.03379/0.2492, allocations: 37.47 MB / 394.4 MB, free: 57.66 MB / 330.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.218765758909285]