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.001017/0.001017, 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.0009026/0.0009026, allocations: 147.5 kB / 24.89 MB, free: 8.695 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.9055/0.9055, allocations: 173.3 MB / 201.5 MB, free: 9.219 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.402e-06/1.402e-06, allocations: 0 / 268.5 MB, free: 6.184 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.612e-05/1.752e-05, allocations: 6.25 kB / 268.5 MB, free: 6.176 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01097/0.01098, allocations: 13.75 MB / 282.2 MB, free: 8.367 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1282/0.1392, allocations: 19.76 MB / 302 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001217/0.1404, allocations: 140.6 kB / 302.1 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001947/0.1423, allocations: 1.18 MB / 303.3 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004265/0.1466, allocations: 2.388 MB / 305.7 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002788/0.1494, allocations: 1.413 MB / 307.1 MB, free: 11.78 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004957/0.1543, allocations: 6.775 MB / 313.9 MB, free: 9.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004349/0.1548, allocations: 291.2 kB / 314.2 MB, free: 9.039 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002109/0.1569, allocations: 2.964 MB / 317.1 MB, free: 7.676 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007043/0.1576, allocations: 0.8299 MB / 318 MB, free: 6.863 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.581e-05/0.1577, allocations: 72 kB / 318 MB, free: 6.793 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001898/0.1596, allocations: 1.26 MB / 319.3 MB, free: 5.566 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001317/0.1597, allocations: 336 kB / 319.6 MB, free: 5.25 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004908/0.1602, allocations: 0.7504 MB / 320.4 MB, free: 4.512 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001789/0.162, allocations: 2.802 MB / 323.2 MB, free: 1.863 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.162, allocations: 0 / 323.2 MB, free: 1.863 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.162, allocations: 3.938 kB / 323.2 MB, free: 1.859 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.224e-05/0.162, allocations: 0 / 323.2 MB, free: 1.859 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.002302/0.1643, allocations: 3.658 MB / 326.9 MB, free: 14.15 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.1643, allocations: 12.92 kB / 326.9 MB, free: 14.14 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002416/0.1646, allocations: 279.6 kB / 327.1 MB, free: 13.86 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002038/0.1666, allocations: 2.054 MB / 329.2 MB, free: 11.7 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.56e-05/0.1666, allocations: 37 kB / 329.2 MB, free: 11.66 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.569e-05/0.1667, allocations: 63.92 kB / 329.3 MB, free: 11.59 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005774/0.1673, allocations: 459.5 kB / 329.7 MB, free: 11.13 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.1673, allocations: 0 / 329.7 MB, free: 11.13 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.761e-05/0.1674, allocations: 16 kB / 329.8 MB, free: 11.12 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.852e-05/0.1674, allocations: 31.92 kB / 329.8 MB, free: 11.09 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003382/0.1677, allocations: 224.5 kB / 330 MB, free: 10.87 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002072/0.1698, allocations: 1.568 MB / 331.6 MB, free: 9.262 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002834/0.1701, allocations: 280.8 kB / 331.8 MB, free: 8.98 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002705/0.1703, allocations: 327 kB / 332.2 MB, free: 8.656 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02197/0.1923, allocations: 23 MB / 355.2 MB, free: 0.7969 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003699/0.1927, allocations: 218 kB / 355.4 MB, free: 0.5742 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.893e-06/0.1927, allocations: 0 / 355.4 MB, free: 0.5742 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.0005024/0.1932, allocations: 479 kB / 355.8 MB, free: 100 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.17e-05/0.1932, allocations: 75.27 kB / 355.9 MB, free: 12 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001407/0.1946, allocations: 2.66 MB / 358.6 MB, free: 13.34 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.028e-05/0.1946, allocations: 37.7 kB / 358.6 MB, free: 13.29 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003611/0.195, allocations: 0.7596 MB / 359.4 MB, free: 12.52 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.777e-05/0.1951, allocations: 170.6 kB / 359.5 MB, free: 12.35 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000154/0.1953, allocations: 186.3 kB / 359.7 MB, free: 12.16 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.387e-05/0.1953, allocations: 349.8 kB / 360.1 MB, free: 11.82 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.758e-05/0.1954, allocations: 73.97 kB / 360.1 MB, free: 11.74 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002411/0.1957, allocations: 455.8 kB / 360.6 MB, free: 11.13 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004242/0.1961, allocations: 0.621 MB / 361.2 MB, free: 10.34 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.1961, allocations: 4 kB / 361.2 MB, free: 10.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0006032/0.1967, allocations: 0.6926 MB / 361.9 MB, free: 9.637 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.1967, allocations: 12 kB / 361.9 MB, free: 9.625 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.928e-05/0.1968, allocations: 20 kB / 361.9 MB, free: 9.605 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.1968, allocations: 16 kB / 361.9 MB, free: 9.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004085/0.1972, allocations: 227.2 kB / 362.2 MB, free: 9.371 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001521/0.1973, allocations: 27.92 kB / 362.2 MB, free: 9.344 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003939/0.1977, allocations: 107.2 kB / 362.3 MB, free: 9.238 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.093e-05/0.1978, allocations: 36 kB / 362.3 MB, free: 9.203 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.0002461/0.198, allocations: 173.5 kB / 362.5 MB, free: 9.023 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001676/0.1982, allocations: 255.6 kB / 362.8 MB, free: 8.773 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009268/0.1991, allocations: 0.7761 MB / 363.5 MB, free: 8 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.1991, allocations: 8 kB / 363.5 MB, free: 7.992 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-06/0.1991, allocations: 0 / 363.5 MB, free: 7.992 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.215e-06/0.1992, allocations: 0 / 363.5 MB, free: 7.992 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001231/0.2004, allocations: 1.552 MB / 365.1 MB, free: 6.391 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.909e-05/0.2004, allocations: 15.98 kB / 365.1 MB, free: 6.375 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002396/0.2007, allocations: 99.92 kB / 365.2 MB, free: 6.277 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.576e-06/0.2007, allocations: 4 kB / 365.2 MB, free: 6.273 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.779e-05/0.2007, allocations: 15.98 kB / 365.2 MB, free: 6.258 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.2007, allocations: 3.938 kB / 365.2 MB, free: 6.254 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.2007, allocations: 4 kB / 365.2 MB, free: 6.25 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000543/0.2012, allocations: 0.6332 MB / 365.9 MB, free: 5.594 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003146/0.2016, allocations: 401.2 kB / 366.3 MB, free: 5.199 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001468/0.2017, allocations: 8 kB / 366.3 MB, free: 5.191 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000293/0.202, allocations: 27.95 kB / 366.3 MB, free: 5.164 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.118e-05/0.2021, allocations: 39.92 kB / 366.3 MB, free: 5.125 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.527e-05/0.2021, allocations: 12.88 kB / 366.3 MB, free: 5.113 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008133/0.2029, allocations: 1.417 MB / 367.8 MB, free: 3.691 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2029, allocations: 0 / 367.8 MB, free: 3.691 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000718/0.2037, allocations: 0.5814 MB / 368.3 MB, free: 3.109 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.0008327/0.2045, allocations: 0.9249 MB / 369.3 MB, free: 2.176 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005699/0.2051, allocations: 477.2 kB / 369.7 MB, free: 1.68 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.693e-05/0.2051, allocations: 40.5 kB / 369.8 MB, free: 1.641 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002093/0.2053, allocations: 237.2 kB / 370 MB, free: 1.383 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001194/0.2065, allocations: 0.6154 MB / 370.6 MB, free: 0.7734 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00336/0.2098, allocations: 3.985 MB / 374.6 MB, free: 12.72 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002242/0.2101, allocations: 383.9 kB / 375 MB, free: 12.33 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005511/0.2106, allocations: 357.1 kB / 375.3 MB, free: 11.97 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007849/0.2114, allocations: 0.5732 MB / 375.9 MB, free: 11.39 MB / 330.7 MB Notification: Performance of SimCode: time 8.91e-07/0.2114, allocations: 0 / 375.9 MB, free: 11.39 MB / 330.7 MB Notification: Performance of Templates: time 0.0398/0.2512, allocations: 37.38 MB / 413.3 MB, free: 6.559 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 -s gbode -gbm=radauIIA3 -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.1899481401778758]