Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000943/0.000943, allocations: 78.28 kB / 21.42 MB, free: 3.078 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009149/0.0009149, allocations: 148.1 kB / 24.8 MB, free: 9.27 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9597/0.9597, allocations: 173.3 MB / 201.4 MB, free: 9.227 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.893e-06/1.893e-06, allocations: 0 / 268.4 MB, free: 6.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.37e-05/1.559e-05, allocations: 2.312 kB / 268.4 MB, free: 6.223 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01339/0.01341, allocations: 13.69 MB / 282.1 MB, free: 8.473 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.128/0.1414, allocations: 19.37 MB / 301.4 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001414/0.1429, allocations: 137.6 kB / 301.6 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002265/0.1451, allocations: 1.145 MB / 302.7 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004755/0.1499, allocations: 2.427 MB / 305.2 MB, free: 12.28 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003147/0.153, allocations: 1.455 MB / 306.6 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006139/0.1592, allocations: 6.816 MB / 313.4 MB, free: 9.445 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004124/0.1596, allocations: 258.3 kB / 313.7 MB, free: 9.277 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00259/0.1622, allocations: 2.988 MB / 316.7 MB, free: 7.875 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007398/0.1629, allocations: 0.8182 MB / 317.5 MB, free: 7.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001428/0.1631, allocations: 72 kB / 317.6 MB, free: 7 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002059/0.1651, allocations: 1.209 MB / 318.8 MB, free: 5.824 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001723/0.1653, allocations: 340.2 kB / 319.1 MB, free: 5.504 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000554/0.1658, allocations: 0.7468 MB / 319.8 MB, free: 4.77 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002173/0.168, allocations: 2.795 MB / 322.6 MB, free: 2.246 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.168, allocations: 0 / 322.6 MB, free: 2.246 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.168, allocations: 4 kB / 322.6 MB, free: 2.242 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.974e-05/0.168, allocations: 0 / 322.6 MB, free: 2.242 MB / 266.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.002506/0.1705, allocations: 3.973 MB / 326.6 MB, free: 14.32 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.1706, allocations: 8.922 kB / 326.6 MB, free: 14.32 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003202/0.1709, allocations: 457.4 kB / 327.1 MB, free: 13.87 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002021/0.1729, allocations: 2.505 MB / 329.6 MB, free: 11.27 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.606e-05/0.1729, allocations: 37 kB / 329.6 MB, free: 11.23 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.938e-05/0.173, allocations: 59.94 kB / 329.7 MB, free: 11.17 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005276/0.1735, allocations: 492.7 kB / 330.2 MB, free: 10.68 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.1736, allocations: 0 / 330.2 MB, free: 10.68 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.341e-05/0.1736, allocations: 19.52 kB / 330.2 MB, free: 10.66 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.685e-05/0.1736, allocations: 23.92 kB / 330.2 MB, free: 10.64 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004248/0.174, allocations: 436.3 kB / 330.6 MB, free: 10.21 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002634/0.1767, allocations: 2.338 MB / 333 MB, free: 7.82 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000315/0.177, allocations: 277.4 kB / 333.2 MB, free: 7.539 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003041/0.1773, allocations: 381.7 kB / 333.6 MB, free: 7.16 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01446/0.1918, allocations: 15.24 MB / 348.8 MB, free: 7.555 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002447/0.192, allocations: 263.7 kB / 349.1 MB, free: 7.285 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.854e-06/0.192, allocations: 0 / 349.1 MB, free: 7.285 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.0007109/0.1927, allocations: 0.8113 MB / 349.9 MB, free: 6.465 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.655e-05/0.1927, allocations: 63.41 kB / 350 MB, free: 6.391 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001894/0.1946, allocations: 3.128 MB / 353.1 MB, free: 3.234 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.236e-05/0.1947, allocations: 33.7 kB / 353.1 MB, free: 3.195 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001153/0.1958, allocations: 1.696 MB / 354.8 MB, free: 1.488 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.64e-05/0.1959, allocations: 182.4 kB / 355 MB, free: 1.309 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001695/0.1961, allocations: 240 kB / 355.2 MB, free: 1.062 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.1962, allocations: 0.512 MB / 355.8 MB, free: 0.543 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001233/0.1963, allocations: 113.2 kB / 355.9 MB, free: 444 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003254/0.1966, allocations: 0.6236 MB / 356.5 MB, free: 15.57 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005393/0.1972, allocations: 0.8265 MB / 357.3 MB, free: 14.51 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/0.1972, allocations: 4 kB / 357.3 MB, free: 14.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.000858/0.198, allocations: 1.021 MB / 358.3 MB, free: 13.48 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.1981, allocations: 8 kB / 358.4 MB, free: 13.47 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-05/0.1981, allocations: 84 kB / 358.4 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.1981, allocations: 16 kB / 358.5 MB, free: 13.37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003423/0.1985, allocations: 208.3 kB / 358.7 MB, free: 13.17 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.308e-05/0.1985, allocations: 27.91 kB / 358.7 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004018/0.1989, allocations: 103.3 kB / 358.8 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.676e-05/0.199, allocations: 63.94 kB / 358.8 MB, free: 12.98 MB / 314.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.0002768/0.1992, allocations: 217.8 kB / 359.1 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002334/0.1995, allocations: 413.5 kB / 359.5 MB, free: 12.35 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001411/0.2009, allocations: 0.9877 MB / 360.5 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.2009, allocations: 8 kB / 360.5 MB, free: 11.35 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-06/0.2009, allocations: 0 / 360.5 MB, free: 11.35 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.2009, allocations: 7.984 kB / 360.5 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001808/0.2027, allocations: 2.127 MB / 362.6 MB, free: 9.148 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.201e-05/0.2028, allocations: 68 kB / 362.7 MB, free: 9.082 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002066/0.203, allocations: 79.88 kB / 362.7 MB, free: 9.004 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.203, allocations: 4 kB / 362.7 MB, free: 9 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.477e-05/0.203, allocations: 35.98 kB / 362.8 MB, free: 8.965 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.203, allocations: 8.062 kB / 362.8 MB, free: 8.957 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.203, allocations: 3.938 kB / 362.8 MB, free: 8.953 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007931/0.2038, allocations: 1.024 MB / 363.8 MB, free: 7.898 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003925/0.2042, allocations: 443.2 kB / 364.2 MB, free: 7.465 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001468/0.2043, allocations: 15.94 kB / 364.3 MB, free: 7.449 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003172/0.2047, allocations: 24.84 kB / 364.3 MB, free: 7.426 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.963e-05/0.2047, allocations: 59.88 kB / 364.3 MB, free: 7.367 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.837e-05/0.2048, allocations: 35.98 kB / 364.4 MB, free: 7.332 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001094/0.2059, allocations: 1.621 MB / 366 MB, free: 5.711 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.2059, allocations: 4.031 kB / 366 MB, free: 5.707 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008342/0.2067, allocations: 0.5891 MB / 366.6 MB, free: 5.117 MB / 314.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.001119/0.2078, allocations: 0.9138 MB / 367.5 MB, free: 4.199 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005138/0.2083, allocations: 0.5819 MB / 368.1 MB, free: 3.586 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2083, allocations: 0 / 368.1 MB, free: 3.586 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002461/0.2086, allocations: 336.6 kB / 368.4 MB, free: 3.227 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001314/0.2099, allocations: 0.6361 MB / 369.1 MB, free: 2.59 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003451/0.2134, allocations: 4.121 MB / 373.2 MB, free: 14.4 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002365/0.2136, allocations: 379.9 kB / 373.5 MB, free: 14.01 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005614/0.2142, allocations: 361.1 kB / 373.9 MB, free: 13.65 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001029/0.2152, allocations: 0.6971 MB / 374.6 MB, free: 12.95 MB / 330.7 MB Notification: Performance of SimCode: time 7.21e-07/0.2152, allocations: 0 / 374.6 MB, free: 12.95 MB / 330.7 MB Notification: Performance of Templates: time 0.0435/0.2587, allocations: 37.51 MB / 412.1 MB, free: 7.973 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/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.2785811782814562]