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.0009005/0.0009005, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0009386/0.0009386, allocations: 142.1 kB / 24.89 MB, free: 8.777 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.9054/0.9054, allocations: 173.4 MB / 201.5 MB, free: 8.754 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.042e-06/1.042e-06, allocations: 0 / 268.4 MB, free: 6.047 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.555e-05/1.659e-05, allocations: 2.312 kB / 268.4 MB, free: 6.043 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.008974/0.008991, allocations: 13.7 MB / 282.1 MB, free: 8.285 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1163/0.1252, allocations: 19.77 MB / 301.9 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00161/0.1269, allocations: 133.4 kB / 302.1 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002179/0.129, allocations: 1.178 MB / 303.2 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006296/0.1353, allocations: 2.45 MB / 305.7 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004128/0.1395, allocations: 1.462 MB / 307.1 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006528/0.146, allocations: 6.77 MB / 313.9 MB, free: 9.469 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005172/0.1465, allocations: 300.2 kB / 314.2 MB, free: 9.25 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002646/0.1492, allocations: 2.969 MB / 317.2 MB, free: 7.762 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008068/0.15, allocations: 0.8253 MB / 318 MB, free: 6.953 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001272/0.1501, allocations: 72 kB / 318.1 MB, free: 6.883 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002573/0.1527, allocations: 1.2 MB / 319.3 MB, free: 5.715 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001627/0.1528, allocations: 344.7 kB / 319.6 MB, free: 5.391 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005585/0.1534, allocations: 0.7439 MB / 320.4 MB, free: 4.656 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002246/0.1556, allocations: 2.798 MB / 323.1 MB, free: 1.93 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1556, allocations: 7.938 kB / 323.2 MB, free: 1.922 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.1556, allocations: 0 / 323.2 MB, free: 1.922 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.743e-05/0.1557, allocations: 0 / 323.2 MB, free: 1.922 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.002532/0.1582, allocations: 3.662 MB / 326.8 MB, free: 14.21 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.335e-05/0.1582, allocations: 8.922 kB / 326.8 MB, free: 14.2 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002757/0.1585, allocations: 283.7 kB / 327.1 MB, free: 13.92 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001837/0.1604, allocations: 2.054 MB / 329.2 MB, free: 11.75 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.668e-05/0.1604, allocations: 40.98 kB / 329.2 MB, free: 11.71 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.826e-05/0.1605, allocations: 55.95 kB / 329.3 MB, free: 11.66 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005072/0.161, allocations: 467.5 kB / 329.7 MB, free: 11.19 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.161, allocations: 0 / 329.7 MB, free: 11.19 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.006e-05/0.161, allocations: 20 kB / 329.7 MB, free: 11.17 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.635e-05/0.161, allocations: 27.86 kB / 329.8 MB, free: 11.14 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003454/0.1614, allocations: 224.5 kB / 330 MB, free: 10.92 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002116/0.1635, allocations: 1.564 MB / 331.5 MB, free: 9.32 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002917/0.1638, allocations: 284.9 kB / 331.8 MB, free: 9.035 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002695/0.1641, allocations: 319 kB / 332.1 MB, free: 8.719 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02329/0.1873, allocations: 23.01 MB / 355.1 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002637/0.1876, allocations: 217.8 kB / 355.4 MB, free: 0.6211 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.354e-06/0.1876, allocations: 0 / 355.4 MB, free: 0.6211 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.0005776/0.1882, allocations: 487.2 kB / 355.8 MB, free: 140 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.316e-05/0.1882, allocations: 55.41 kB / 355.9 MB, free: 72 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001552/0.1898, allocations: 2.66 MB / 358.5 MB, free: 13.39 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.701e-05/0.1898, allocations: 37.7 kB / 358.6 MB, free: 13.35 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003832/0.1902, allocations: 0.7557 MB / 359.3 MB, free: 12.58 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.305e-05/0.1903, allocations: 178.6 kB / 359.5 MB, free: 12.41 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00016/0.1904, allocations: 194.2 kB / 359.7 MB, free: 12.21 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.374e-05/0.1905, allocations: 345.8 kB / 360 MB, free: 11.87 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/0.1906, allocations: 73.97 kB / 360.1 MB, free: 11.79 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002595/0.1909, allocations: 463.5 kB / 360.6 MB, free: 11.17 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004405/0.1913, allocations: 0.6171 MB / 361.2 MB, free: 10.38 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/0.1913, allocations: 4 kB / 361.2 MB, free: 10.38 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0006398/0.192, allocations: 0.6929 MB / 361.9 MB, free: 9.68 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.192, allocations: 8 kB / 361.9 MB, free: 9.672 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.525e-05/0.192, allocations: 23.98 kB / 361.9 MB, free: 9.648 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.095e-05/0.1921, allocations: 20 kB / 361.9 MB, free: 9.629 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003504/0.1924, allocations: 199.7 kB / 362.1 MB, free: 9.434 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.33e-05/0.1924, allocations: 23.88 kB / 362.1 MB, free: 9.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004307/0.1929, allocations: 107.5 kB / 362.3 MB, free: 9.305 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.077e-05/0.1929, allocations: 36 kB / 362.3 MB, free: 9.27 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.000257/0.1932, allocations: 183 kB / 362.5 MB, free: 9.082 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001767/0.1934, allocations: 243.7 kB / 362.7 MB, free: 8.844 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009633/0.1943, allocations: 0.7798 MB / 363.5 MB, free: 8.066 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.1943, allocations: 4 kB / 363.5 MB, free: 8.062 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-06/0.1943, allocations: 0 / 363.5 MB, free: 8.062 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.1943, allocations: 7.984 kB / 363.5 MB, free: 8.055 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001314/0.1956, allocations: 1.552 MB / 365 MB, free: 6.453 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-05/0.1957, allocations: 8 kB / 365.1 MB, free: 6.445 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002026/0.1959, allocations: 83.88 kB / 365.1 MB, free: 6.363 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.1959, allocations: 4 kB / 365.1 MB, free: 6.359 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.6e-05/0.1959, allocations: 15.98 kB / 365.2 MB, free: 6.344 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.1959, allocations: 0 / 365.2 MB, free: 6.344 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.1959, allocations: 4 kB / 365.2 MB, free: 6.34 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005676/0.1965, allocations: 0.6332 MB / 365.8 MB, free: 5.684 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003603/0.1968, allocations: 409.2 kB / 366.2 MB, free: 5.281 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001613/0.197, allocations: 8 kB / 366.2 MB, free: 5.273 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003063/0.1973, allocations: 19.98 kB / 366.2 MB, free: 5.254 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.645e-05/0.1974, allocations: 48.73 kB / 366.3 MB, free: 5.207 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.001e-05/0.1974, allocations: 12 kB / 366.3 MB, free: 5.195 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000877/0.1983, allocations: 1.413 MB / 367.7 MB, free: 3.777 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1983, allocations: 0 / 367.7 MB, free: 3.777 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007867/0.1991, allocations: 0.5853 MB / 368.3 MB, free: 3.191 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.0008499/0.1999, allocations: 0.9239 MB / 369.2 MB, free: 2.258 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004526/0.2004, allocations: 468.4 kB / 369.7 MB, free: 1.773 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.158e-05/0.2004, allocations: 40.5 kB / 369.7 MB, free: 1.734 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001988/0.2006, allocations: 237.2 kB / 369.9 MB, free: 1.477 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001241/0.2019, allocations: 0.6258 MB / 370.6 MB, free: 0.8555 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003422/0.2053, allocations: 3.982 MB / 374.5 MB, free: 12.8 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002364/0.2055, allocations: 387.9 kB / 374.9 MB, free: 12.41 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005745/0.2061, allocations: 357.1 kB / 375.3 MB, free: 12.05 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007435/0.2068, allocations: 0.5733 MB / 375.8 MB, free: 11.47 MB / 330.7 MB Notification: Performance of SimCode: time 7.22e-07/0.2068, allocations: 4 kB / 375.8 MB, free: 11.47 MB / 330.7 MB Notification: Performance of Templates: time 0.0415/0.2483, allocations: 37.29 MB / 413.1 MB, free: 6.727 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.254199806135148]