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.001473/0.001473, allocations: 75.75 kB / 21.97 MB, free: 2.602 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.001301/0.001301, allocations: 170.1 kB / 25.33 MB, free: 8.598 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.9313/0.9313, allocations: 158.6 MB / 187.2 MB, free: 2.926 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 2.063e-06/2.063e-06, allocations: 0 / 251 MB, free: 7.527 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.089e-05/2.295e-05, allocations: 2.312 kB / 251 MB, free: 7.523 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.009576/0.009599, allocations: 13.39 MB / 264.4 MB, free: 10.08 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0172/0.0268, allocations: 18.81 MB / 283.2 MB, free: 7.199 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001408/0.02821, allocations: 138.5 kB / 283.4 MB, free: 7.062 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00218/0.03039, allocations: 1.121 MB / 284.5 MB, free: 5.934 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004741/0.03513, allocations: 2.389 MB / 286.9 MB, free: 3.527 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00312/0.03825, allocations: 1.406 MB / 288.3 MB, free: 2.109 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006698/0.04495, allocations: 6.679 MB / 295 MB, free: 11.41 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004591/0.04541, allocations: 261.9 kB / 295.2 MB, free: 11.12 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001195/0.0466, allocations: 1.43 MB / 296.6 MB, free: 9.691 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000688/0.04729, allocations: 0.7747 MB / 297.4 MB, free: 8.914 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001269/0.04742, allocations: 76 kB / 297.5 MB, free: 8.84 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002312/0.04973, allocations: 1.077 MB / 298.6 MB, free: 7.762 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002001/0.04993, allocations: 333.5 kB / 298.9 MB, free: 7.434 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005634/0.05049, allocations: 0.7476 MB / 299.6 MB, free: 6.684 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002466/0.05296, allocations: 2.821 MB / 302.5 MB, free: 3.852 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.05296, allocations: 0 / 302.5 MB, free: 3.852 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.05296, allocations: 0 / 302.5 MB, free: 3.852 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.439e-05/0.05299, allocations: 0 / 302.5 MB, free: 3.852 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.003533/0.05652, allocations: 3.941 MB / 306.4 MB, free: 15.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.05657, allocations: 15.98 kB / 306.4 MB, free: 15.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003443/0.05691, allocations: 461.3 kB / 306.9 MB, free: 15.37 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002157/0.05907, allocations: 2.607 MB / 309.5 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.547e-05/0.05909, allocations: 37 kB / 309.5 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.787e-05/0.05918, allocations: 55.94 kB / 309.6 MB, free: 12.58 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006818/0.05986, allocations: 0.5395 MB / 310.1 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.05987, allocations: 0 / 310.1 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.556e-05/0.05992, allocations: 16 kB / 310.1 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.913e-05/0.05994, allocations: 23.98 kB / 310.1 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005879/0.06053, allocations: 490.4 kB / 310.6 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003499/0.06403, allocations: 2.878 MB / 313.5 MB, free: 8.566 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000444/0.06447, allocations: 321.4 kB / 313.8 MB, free: 8.238 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004139/0.06488, allocations: 421.7 kB / 314.2 MB, free: 7.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01587/0.08075, allocations: 15.25 MB / 329.5 MB, free: 8.188 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003425/0.08109, allocations: 279.5 kB / 329.8 MB, free: 7.902 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.074e-06/0.08109, allocations: 4 kB / 329.8 MB, free: 7.898 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009502/0.08204, allocations: 0.8698 MB / 330.6 MB, free: 7.02 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.593e-05/0.08208, allocations: 59.41 kB / 330.7 MB, free: 6.949 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002379/0.08446, allocations: 3.194 MB / 333.9 MB, free: 3.73 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.608e-05/0.0845, allocations: 33.7 kB / 333.9 MB, free: 3.691 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001299/0.08579, allocations: 1.674 MB / 335.6 MB, free: 2.008 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.0859, allocations: 182.5 kB / 335.8 MB, free: 1.828 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001881/0.08609, allocations: 232 kB / 336 MB, free: 1.594 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.08622, allocations: 0.5199 MB / 336.5 MB, free: 1.066 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000184/0.0864, allocations: 133.9 kB / 336.6 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004075/0.08681, allocations: 0.651 MB / 337.3 MB, free: 48 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006593/0.08747, allocations: 0.85 MB / 338.1 MB, free: 14.96 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.08748, allocations: 4 kB / 338.1 MB, free: 14.96 MB / 330.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.000983/0.08846, allocations: 1.081 MB / 339.2 MB, free: 13.87 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.08848, allocations: 11.94 kB / 339.2 MB, free: 13.86 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.126e-05/0.08855, allocations: 84 kB / 339.3 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.423e-05/0.08858, allocations: 16 kB / 339.3 MB, free: 13.76 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003836/0.08896, allocations: 199.7 kB / 339.5 MB, free: 13.56 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.854e-05/0.08898, allocations: 27.86 kB / 339.6 MB, free: 13.54 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000458/0.08944, allocations: 103.3 kB / 339.7 MB, free: 13.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.893e-05/0.08952, allocations: 64 kB / 339.7 MB, free: 13.37 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.0003017/0.08982, allocations: 224.2 kB / 339.9 MB, free: 13.14 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002637/0.09008, allocations: 417.5 kB / 340.3 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001531/0.09161, allocations: 1.035 MB / 341.4 MB, free: 11.69 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.09162, allocations: 4 kB / 341.4 MB, free: 11.68 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.09162, allocations: 0 / 341.4 MB, free: 11.68 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.09163, allocations: 3.984 kB / 341.4 MB, free: 11.68 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002062/0.09369, allocations: 2.098 MB / 343.5 MB, free: 9.523 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.267e-05/0.09376, allocations: 71.94 kB / 343.6 MB, free: 9.453 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002433/0.094, allocations: 87.88 kB / 343.6 MB, free: 9.367 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.094, allocations: 0 / 343.6 MB, free: 9.367 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.87e-05/0.09404, allocations: 31.98 kB / 343.7 MB, free: 9.336 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/0.09405, allocations: 4 kB / 343.7 MB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.09405, allocations: 0 / 343.7 MB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009528/0.095, allocations: 1.09 MB / 344.8 MB, free: 8.207 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004105/0.09541, allocations: 443.1 kB / 345.2 MB, free: 7.773 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001433/0.09555, allocations: 8 kB / 345.2 MB, free: 7.766 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003081/0.09586, allocations: 23.97 kB / 345.2 MB, free: 7.742 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.09598, allocations: 63.94 kB / 345.3 MB, free: 7.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.275e-05/0.09602, allocations: 39.98 kB / 345.3 MB, free: 7.641 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001428/0.09745, allocations: 1.74 MB / 347.1 MB, free: 5.902 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.09745, allocations: 0 / 347.1 MB, free: 5.902 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008829/0.09833, allocations: 0.593 MB / 347.7 MB, free: 5.309 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.001056/0.09939, allocations: 0.8389 MB / 348.5 MB, free: 4.461 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006783/0.1001, allocations: 0.629 MB / 349.1 MB, free: 3.801 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1001, allocations: 3.938 kB / 349.1 MB, free: 3.797 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003063/0.1004, allocations: 347.8 kB / 349.5 MB, free: 3.426 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.1014, allocations: 0.5376 MB / 350 MB, free: 2.883 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1144/0.2158, allocations: 4.147 MB / 354.2 MB, free: 89.05 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003012/0.2161, allocations: 385.8 kB / 354.5 MB, free: 88.95 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008528/0.217, allocations: 361.3 kB / 354.9 MB, free: 88.92 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001598/0.2172, allocations: 153.8 kB / 355 MB, free: 88.92 MB / 330.7 MB Notification: Performance of SimCode: time 2.104e-06/0.2172, allocations: 0 / 355 MB, free: 88.92 MB / 330.7 MB Notification: Performance of Templates: time 0.03643/0.2536, allocations: 32.72 MB / 387.8 MB, free: 64.57 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.8047080039978027]