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.001791/0.001791, allocations: 86.22 kB / 21.44 MB, free: 296 kB / 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.001496/0.001496, allocations: 161.3 kB / 24.7 MB, free: 3.551 MB / 14.72 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 1.329/1.329, allocations: 158.6 MB / 186.5 MB, free: 6.41 MB / 174.1 MB " [Timeout remaining time 178] 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.573e-06/1.573e-06, allocations: 0 / 298.9 MB, free: 8.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.321e-05/2.479e-05, allocations: 2.281 kB / 298.9 MB, free: 8.738 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01368/0.0137, allocations: 11.81 MB / 310.8 MB, free: 12.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1722/0.1859, allocations: 17.04 MB / 327.8 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002195/0.1881, allocations: 139.8 kB / 327.9 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002703/0.1908, allocations: 1.116 MB / 329 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007011/0.1978, allocations: 2.39 MB / 331.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004932/0.2028, allocations: 1.389 MB / 332.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01153/0.2143, allocations: 6.571 MB / 339.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000717/0.215, allocations: 260.3 kB / 339.7 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002032/0.2171, allocations: 1.429 MB / 341.1 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001027/0.2181, allocations: 0.763 MB / 341.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001889/0.2183, allocations: 80.66 kB / 341.9 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003373/0.2216, allocations: 1.083 MB / 343 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002371/0.2219, allocations: 333.2 kB / 343.3 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008932/0.2228, allocations: 0.741 MB / 344.1 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003969/0.2267, allocations: 3.785 MB / 347.9 MB, free: 8.199 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.2268, allocations: 3.938 kB / 347.9 MB, free: 8.195 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2268, allocations: 2.031 kB / 347.9 MB, free: 8.195 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.996e-05/0.2268, allocations: 0.5625 kB / 347.9 MB, free: 8.195 MB / 302.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.004176/0.231, allocations: 3.713 MB / 351.6 MB, free: 5.418 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.231, allocations: 18.27 kB / 351.6 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003264/0.2314, allocations: 421.5 kB / 352 MB, free: 5.188 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00255/0.2339, allocations: 2.306 MB / 354.3 MB, free: 3.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.099e-05/0.2339, allocations: 40.94 kB / 354.4 MB, free: 2.977 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/0.234, allocations: 56.98 kB / 354.4 MB, free: 2.922 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001169/0.2352, allocations: 0.7348 MB / 355.1 MB, free: 2.184 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.2352, allocations: 0 / 355.1 MB, free: 2.184 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.837e-05/0.2353, allocations: 24 kB / 355.2 MB, free: 2.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.576e-05/0.2353, allocations: 19.98 kB / 355.2 MB, free: 2.141 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001363/0.2367, allocations: 0.8163 MB / 356 MB, free: 1.328 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004736/0.2414, allocations: 2.759 MB / 358.8 MB, free: 14.54 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001363/0.2428, allocations: 0.528 MB / 359.3 MB, free: 14.01 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001062/0.2438, allocations: 0.5623 MB / 359.9 MB, free: 13.44 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02627/0.2701, allocations: 13.74 MB / 373.6 MB, free: 15.4 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00084/0.2709, allocations: 366.4 kB / 373.9 MB, free: 15.03 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.695e-06/0.2709, allocations: 1.969 kB / 373.9 MB, free: 15.03 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002495/0.2734, allocations: 1.118 MB / 375.1 MB, free: 13.9 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.333e-05/0.2735, allocations: 55.41 kB / 375.1 MB, free: 13.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00369/0.2772, allocations: 2.975 MB / 378.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.619e-05/0.2773, allocations: 37.7 kB / 378.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001446/0.2787, allocations: 1.502 MB / 379.6 MB, free: 9.301 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001742/0.2789, allocations: 179.2 kB / 379.8 MB, free: 9.129 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003312/0.2792, allocations: 226.3 kB / 380 MB, free: 8.902 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.2794, allocations: 337.9 kB / 380.4 MB, free: 8.566 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006314/0.28, allocations: 241.9 kB / 380.6 MB, free: 8.328 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009448/0.2809, allocations: 0.6056 MB / 381.2 MB, free: 7.551 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001664/0.2826, allocations: 0.8966 MB / 382.1 MB, free: 6.484 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.518e-06/0.2826, allocations: 4.875 kB / 382.1 MB, free: 6.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002711/0.2853, allocations: 1.249 MB / 383.4 MB, free: 5.227 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.324e-05/0.2854, allocations: 8 kB / 383.4 MB, free: 5.219 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001609/0.2855, allocations: 87.98 kB / 383.4 MB, free: 5.133 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.775e-05/0.2856, allocations: 16 kB / 383.5 MB, free: 5.117 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007486/0.2863, allocations: 199.6 kB / 383.7 MB, free: 4.922 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.8e-05/0.2864, allocations: 23.88 kB / 383.7 MB, free: 4.898 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001135/0.2875, allocations: 123.5 kB / 383.8 MB, free: 4.777 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001307/0.2876, allocations: 67.5 kB / 383.9 MB, free: 4.715 MB / 334.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.0007999/0.2884, allocations: 429.5 kB / 384.3 MB, free: 4.285 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005034/0.2889, allocations: 405.4 kB / 384.7 MB, free: 3.887 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002815/0.2917, allocations: 1.2 MB / 385.9 MB, free: 2.691 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-05/0.2917, allocations: 11.98 kB / 385.9 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.2918, allocations: 3.984 kB / 385.9 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.2918, allocations: 0 / 385.9 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003648/0.2954, allocations: 1.952 MB / 387.9 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001004/0.2955, allocations: 68 kB / 387.9 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005144/0.296, allocations: 95.92 kB / 388 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.296e-06/0.296, allocations: 4 kB / 388 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.143e-05/0.2961, allocations: 31.98 kB / 388 MB, free: 500 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.581e-06/0.2961, allocations: 4 kB / 388.1 MB, free: 496 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.2961, allocations: 0 / 388.1 MB, free: 496 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002496/0.2986, allocations: 1.322 MB / 389.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008146/0.2994, allocations: 411.2 kB / 389.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002887/0.2997, allocations: 11.98 kB / 389.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007046/0.3004, allocations: 36.03 kB / 389.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001713/0.3006, allocations: 63.92 kB / 389.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.463e-05/0.3007, allocations: 36 kB / 389.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002616/0.3033, allocations: 1.916 MB / 391.8 MB, free: 12.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3033, allocations: 0 / 391.8 MB, free: 12.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001437/0.3047, allocations: 0.593 MB / 392.4 MB, free: 12.08 MB / 350.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.001244/0.306, allocations: 0.8333 MB / 393.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001739/0.3077, allocations: 0.7866 MB / 394 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3077, allocations: 0 / 394 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008252/0.3085, allocations: 429.4 kB / 394.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001892/0.3104, allocations: 0.5138 MB / 395 MB, free: 9.605 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006575/0.317, allocations: 4.32 MB / 399.3 MB, free: 5.246 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001069/0.3181, allocations: 1.114 MB / 400.4 MB, free: 4.102 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00102/0.3191, allocations: 361.3 kB / 400.8 MB, free: 3.742 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002638/0.3193, allocations: 152.5 kB / 400.9 MB, free: 3.594 MB / 350.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3193, allocations: 0 / 400.9 MB, free: 3.594 MB / 350.1 MB Notification: Performance of Templates: time 0.05924/0.3786, allocations: 32.4 MB / 433.3 MB, free: 3.129 MB / 382.1 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.36913999915123]