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.0009802/0.0009802, allocations: 75.77 kB / 22.45 MB, free: 2.098 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.001042/0.001042, allocations: 168.7 kB / 25.75 MB, free: 8.582 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.9423/0.9423, allocations: 158.6 MB / 187.5 MB, free: 2.898 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.723e-06/1.723e-06, allocations: 0 / 251.1 MB, free: 7.816 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.608e-05/2.78e-05, allocations: 10.25 kB / 251.1 MB, free: 7.805 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.02779/0.02782, allocations: 13.34 MB / 264.4 MB, free: 10.4 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.03306/0.06088, allocations: 18.77 MB / 283.2 MB, free: 7.559 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002817/0.06369, allocations: 138.5 kB / 283.3 MB, free: 7.422 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002934/0.06663, allocations: 1.117 MB / 284.5 MB, free: 6.297 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006868/0.07349, allocations: 2.393 MB / 286.9 MB, free: 3.887 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003723/0.07722, allocations: 1.398 MB / 288.3 MB, free: 2.477 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008398/0.08562, allocations: 6.555 MB / 294.8 MB, free: 11.9 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006806/0.0863, allocations: 265.8 kB / 295.1 MB, free: 11.61 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001638/0.08793, allocations: 1.426 MB / 296.5 MB, free: 10.18 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000696/0.08863, allocations: 0.7747 MB / 297.3 MB, free: 9.402 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001222/0.08875, allocations: 72 kB / 297.3 MB, free: 9.332 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002722/0.09147, allocations: 1.085 MB / 298.4 MB, free: 8.246 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002265/0.0917, allocations: 333.6 kB / 298.8 MB, free: 7.918 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009089/0.09261, allocations: 0.7398 MB / 299.5 MB, free: 7.176 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003773/0.09638, allocations: 2.829 MB / 302.3 MB, free: 4.336 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.09639, allocations: 0 / 302.3 MB, free: 4.336 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.09639, allocations: 0 / 302.3 MB, free: 4.336 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.899e-05/0.09643, allocations: 0 / 302.3 MB, free: 4.336 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.003522/0.09995, allocations: 3.941 MB / 306.3 MB, free: 336 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.1, allocations: 11.98 kB / 306.3 MB, free: 324 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003764/0.1004, allocations: 461.5 kB / 306.7 MB, free: 15.86 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00264/0.103, allocations: 2.599 MB / 309.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.277e-05/0.103, allocations: 37 kB / 309.4 MB, free: 13.13 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.366e-05/0.1031, allocations: 55.95 kB / 309.4 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007644/0.1039, allocations: 0.5434 MB / 310 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.1039, allocations: 0 / 310 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.638e-05/0.104, allocations: 16 kB / 310 MB, free: 12.52 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.983e-05/0.104, allocations: 23.98 kB / 310 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006235/0.1046, allocations: 486.4 kB / 310.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003594/0.1082, allocations: 2.882 MB / 313.4 MB, free: 9.062 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000468/0.1087, allocations: 329.4 kB / 313.7 MB, free: 8.727 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004255/0.1091, allocations: 413.7 kB / 314.1 MB, free: 8.316 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01604/0.1251, allocations: 15.25 MB / 329.3 MB, free: 8.684 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000379/0.1255, allocations: 287.5 kB / 329.6 MB, free: 8.391 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.264e-06/0.1255, allocations: 0 / 329.6 MB, free: 8.391 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.001436/0.127, allocations: 0.8737 MB / 330.5 MB, free: 7.508 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.555e-05/0.127, allocations: 59.41 kB / 330.5 MB, free: 7.438 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002543/0.1295, allocations: 3.194 MB / 333.7 MB, free: 4.219 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.619e-05/0.1296, allocations: 33.69 kB / 333.8 MB, free: 4.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001054/0.1306, allocations: 1.678 MB / 335.4 MB, free: 2.492 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001144/0.1308, allocations: 174.5 kB / 335.6 MB, free: 2.32 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001939/0.131, allocations: 240 kB / 335.9 MB, free: 2.078 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.1311, allocations: 0.5121 MB / 336.4 MB, free: 1.559 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001973/0.1313, allocations: 129.9 kB / 336.5 MB, free: 1.434 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004184/0.1317, allocations: 0.651 MB / 337.1 MB, free: 0.543 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009308/0.1326, allocations: 0.8539 MB / 338 MB, free: 15.46 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.1326, allocations: 4 kB / 338 MB, free: 15.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001126/0.1338, allocations: 1.08 MB / 339.1 MB, free: 14.36 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.763e-05/0.1338, allocations: 15.94 kB / 339.1 MB, free: 14.35 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.806e-05/0.1339, allocations: 80 kB / 339.2 MB, free: 14.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.318e-05/0.1339, allocations: 16 kB / 339.2 MB, free: 14.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004262/0.1343, allocations: 208.3 kB / 339.4 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.076e-05/0.1343, allocations: 27.92 kB / 339.4 MB, free: 14.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006691/0.135, allocations: 103.3 kB / 339.5 MB, free: 13.92 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.15e-05/0.1351, allocations: 64 kB / 339.6 MB, free: 13.86 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.0003516/0.1354, allocations: 212.2 kB / 339.8 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002897/0.1357, allocations: 417.5 kB / 340.2 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001317/0.137, allocations: 1.039 MB / 341.2 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.797e-06/0.1371, allocations: 7.984 kB / 341.2 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.1371, allocations: 0 / 341.2 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.1371, allocations: 7.938 kB / 341.3 MB, free: 12.17 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002102/0.1392, allocations: 2.09 MB / 343.3 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.293e-05/0.1392, allocations: 75.94 kB / 343.4 MB, free: 9.945 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000267/0.1395, allocations: 87.94 kB / 343.5 MB, free: 9.859 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.033e-06/0.1395, allocations: 4 kB / 343.5 MB, free: 9.855 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.272e-05/0.1395, allocations: 31.98 kB / 343.5 MB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.429e-06/0.1395, allocations: 4 kB / 343.5 MB, free: 9.82 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.1395, allocations: 3.938 kB / 343.5 MB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001307/0.1409, allocations: 1.075 MB / 344.6 MB, free: 8.707 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004771/0.1413, allocations: 447.1 kB / 345.1 MB, free: 8.27 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001779/0.1415, allocations: 8 kB / 345.1 MB, free: 8.262 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003488/0.1419, allocations: 19.98 kB / 345.1 MB, free: 8.242 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/0.142, allocations: 67.95 kB / 345.2 MB, free: 8.176 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.277e-05/0.142, allocations: 36 kB / 345.2 MB, free: 8.141 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001515/0.1436, allocations: 1.744 MB / 346.9 MB, free: 6.398 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.1436, allocations: 0 / 346.9 MB, free: 6.398 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001044/0.1446, allocations: 0.593 MB / 347.5 MB, free: 5.805 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.0008671/0.1455, allocations: 0.8505 MB / 348.4 MB, free: 4.945 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007983/0.1463, allocations: 0.6212 MB / 349 MB, free: 4.293 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/0.1463, allocations: 0 / 349 MB, free: 4.293 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003461/0.1466, allocations: 347.8 kB / 349.3 MB, free: 3.922 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001167/0.1478, allocations: 0.5376 MB / 349.9 MB, free: 3.379 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09897/0.2468, allocations: 4.14 MB / 354 MB, free: 106.4 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/0.2471, allocations: 385 kB / 354.4 MB, free: 106.3 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008881/0.2479, allocations: 364.6 kB / 354.7 MB, free: 106.3 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001728/0.2481, allocations: 152.9 kB / 354.9 MB, free: 106.3 MB / 330.7 MB Notification: Performance of SimCode: time 2.023e-06/0.2481, allocations: 0 / 354.9 MB, free: 106.3 MB / 330.7 MB Notification: Performance of Templates: time 0.03678/0.2849, allocations: 32.72 MB / 387.6 MB, free: 77.11 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.608678286895156]