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.0008272/0.0008272, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001217/0.002044, allocations: 445.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007154/0.0007154, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009384/0.001654, allocations: 463.6 kB / 11.71 MB, free: 2.453 MB / 13.93 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.9488/0.9488, allocations: 158.6 MB / 171.1 MB, free: 2.578 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1698/1.119, allocations: 49.49 MB / 220.5 MB, free: 1.453 MB / 218.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.453e-06/1.453e-06, allocations: 0 / 221.8 MB, free: 192 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.804e-05/1.95e-05, allocations: 6.109 kB / 221.8 MB, free: 188 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.02277/0.02279, allocations: 13.12 MB / 234.9 MB, free: 3.004 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.02752/0.05031, allocations: 18.93 MB / 253.9 MB, free: 15.99 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003472/0.05379, allocations: 138.5 kB / 254 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00449/0.05828, allocations: 1.15 MB / 255.2 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007649/0.06592, allocations: 2.347 MB / 257.5 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004028/0.06995, allocations: 1.364 MB / 258.9 MB, free: 10.96 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007795/0.07775, allocations: 6.498 MB / 265.4 MB, free: 4.445 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006561/0.0784, allocations: 306.5 kB / 265.7 MB, free: 4.105 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003309/0.08171, allocations: 3.292 MB / 269 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001101/0.08281, allocations: 0.802 MB / 269.8 MB, free: 15.93 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001687/0.08298, allocations: 79.94 kB / 269.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002746/0.08573, allocations: 1.136 MB / 271 MB, free: 14.71 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001991/0.08593, allocations: 269.8 kB / 271.2 MB, free: 14.45 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007562/0.08668, allocations: 0.6814 MB / 271.9 MB, free: 13.76 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003108/0.08979, allocations: 2.646 MB / 274.6 MB, free: 11.11 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.804e-05/0.08981, allocations: 0 / 274.6 MB, free: 11.11 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.636e-06/0.08981, allocations: 0 / 274.6 MB, free: 11.11 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001305/0.08994, allocations: 0 / 274.6 MB, free: 11.11 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.003789/0.09373, allocations: 4.393 MB / 279 MB, free: 6.641 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.09377, allocations: 12.03 kB / 279 MB, free: 6.629 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002485/0.09402, allocations: 283.6 kB / 279.3 MB, free: 6.352 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001828/0.09585, allocations: 2.078 MB / 281.3 MB, free: 4.16 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.656e-05/0.09587, allocations: 37 kB / 281.4 MB, free: 4.125 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.225e-05/0.09596, allocations: 55.95 kB / 281.4 MB, free: 4.07 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005352/0.09649, allocations: 471.4 kB / 281.9 MB, free: 3.594 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.0965, allocations: 0 / 281.9 MB, free: 3.594 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.785e-05/0.09654, allocations: 20 kB / 281.9 MB, free: 3.574 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.587e-05/0.09656, allocations: 23.98 kB / 281.9 MB, free: 3.551 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003343/0.09689, allocations: 224.5 kB / 282.1 MB, free: 3.332 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00257/0.09946, allocations: 1.567 MB / 283.7 MB, free: 1.723 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003047/0.09977, allocations: 280.9 kB / 284 MB, free: 1.438 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002796/0.1, allocations: 327 kB / 284.3 MB, free: 1.113 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1476/0.2477, allocations: 23.05 MB / 307.4 MB, free: 32.87 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002602/0.2479, allocations: 214.1 kB / 307.6 MB, free: 32.74 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 2.294e-06/0.248, allocations: 0 / 307.6 MB, free: 32.74 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.0005643/0.2485, allocations: 483 kB / 308 MB, free: 32.38 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.083e-05/0.2485, allocations: 63.41 kB / 308.1 MB, free: 32.31 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001396/0.2499, allocations: 2.68 MB / 310.8 MB, free: 30.69 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.124e-05/0.25, allocations: 41.55 kB / 310.8 MB, free: 30.65 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003493/0.2503, allocations: 0.7521 MB / 311.6 MB, free: 30.3 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.2504, allocations: 183 kB / 311.7 MB, free: 30.21 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001511/0.2506, allocations: 189.7 kB / 311.9 MB, free: 30.05 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.155e-05/0.2506, allocations: 342.9 kB / 312.3 MB, free: 29.73 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.328e-05/0.2507, allocations: 73.97 kB / 312.3 MB, free: 29.66 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002714/0.251, allocations: 454.6 kB / 312.8 MB, free: 29.07 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004241/0.2514, allocations: 0.6202 MB / 313.4 MB, free: 28.38 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.884e-06/0.2514, allocations: 4 kB / 313.4 MB, free: 28.37 MB / 282.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0006498/0.2521, allocations: 0.6969 MB / 314.1 MB, free: 27.76 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/0.2521, allocations: 12 kB / 314.1 MB, free: 27.75 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.488e-05/0.2522, allocations: 21.25 kB / 314.1 MB, free: 27.73 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.2522, allocations: 16 kB / 314.2 MB, free: 27.71 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004405/0.2526, allocations: 240.6 kB / 314.4 MB, free: 27.5 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.679e-05/0.2526, allocations: 27.55 kB / 314.4 MB, free: 27.48 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004907/0.2531, allocations: 96.11 kB / 314.5 MB, free: 27.38 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.289e-05/0.2532, allocations: 45.62 kB / 314.6 MB, free: 27.34 MB / 282.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.0002452/0.2534, allocations: 171 kB / 314.7 MB, free: 27.18 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001605/0.2536, allocations: 247.7 kB / 315 MB, free: 26.94 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009889/0.2546, allocations: 0.7945 MB / 315.8 MB, free: 26.16 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/0.2546, allocations: 7.938 kB / 315.8 MB, free: 26.15 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.2546, allocations: 3.469 kB / 315.8 MB, free: 26.15 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.147e-06/0.2546, allocations: 3.984 kB / 315.8 MB, free: 26.14 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001529/0.2561, allocations: 1.555 MB / 317.3 MB, free: 24.96 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.681e-05/0.2562, allocations: 11.98 kB / 317.3 MB, free: 24.95 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002595/0.2564, allocations: 106.9 kB / 317.4 MB, free: 24.85 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003213/0.2568, allocations: 394.2 kB / 317.8 MB, free: 24.46 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.2568, allocations: 0 / 317.8 MB, free: 24.46 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.529e-05/0.2568, allocations: 11.98 kB / 317.8 MB, free: 24.45 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.2568, allocations: 4 kB / 317.8 MB, free: 24.45 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.2568, allocations: 0 / 317.8 MB, free: 24.45 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005712/0.2574, allocations: 0.6456 MB / 318.5 MB, free: 23.79 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001601/0.2575, allocations: 13.64 kB / 318.5 MB, free: 23.78 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002965/0.2578, allocations: 15.98 kB / 318.5 MB, free: 23.76 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.785e-05/0.2579, allocations: 43.92 kB / 318.6 MB, free: 23.72 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.088e-05/0.2579, allocations: 12 kB / 318.6 MB, free: 23.71 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006922/0.2586, allocations: 1.422 MB / 320 MB, free: 22.46 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2586, allocations: 0 / 320 MB, free: 22.46 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009678/0.2596, allocations: 0.596 MB / 320.6 MB, free: 21.87 MB / 282.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.0009551/0.2606, allocations: 0.9333 MB / 321.5 MB, free: 21.08 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000504/0.2611, allocations: 462.2 kB / 322 MB, free: 20.65 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-05/0.2611, allocations: 52.48 kB / 322 MB, free: 20.61 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002/0.2613, allocations: 235.5 kB / 322.3 MB, free: 20.36 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/0.2624, allocations: 0.7787 MB / 323 MB, free: 19.58 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006597/0.269, allocations: 4.037 MB / 327.1 MB, free: 15.51 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002424/0.2692, allocations: 392.9 kB / 327.5 MB, free: 15.1 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0006538/0.2699, allocations: 357.3 kB / 327.8 MB, free: 14.75 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006974/0.2706, allocations: 0.5811 MB / 328.4 MB, free: 14.16 MB / 282.7 MB Notification: Performance of SimCode: time 1.884e-06/0.2706, allocations: 4 kB / 328.4 MB, free: 14.16 MB / 282.7 MB Notification: Performance of Templates: time 0.0464/0.317, allocations: 38.86 MB / 367.3 MB, free: 7.375 MB / 314.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 -ignoreHideResult -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.5336280250921845]