Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0007741/0.0007741, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001104/0.001878, allocations: 449.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.0007407/0.0007407, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009046/0.001645, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9227/0.9227, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08047/1.003, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.694e-05/1.828e-05, allocations: 6.25 kB / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.009185/0.009203, allocations: 13.8 MB / 258.3 MB, free: 476 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.1232/0.1324, allocations: 19.9 MB / 278.2 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001809/0.1343, allocations: 132.6 kB / 278.4 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002157/0.1364, allocations: 1.175 MB / 279.5 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005634/0.142, allocations: 2.388 MB / 281.9 MB, free: 60 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003552/0.1456, allocations: 1.407 MB / 283.3 MB, free: 15.84 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.006979/0.1526, allocations: 6.723 MB / 290 MB, free: 14.52 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005554/0.1531, allocations: 294 kB / 290.3 MB, free: 14.37 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003288/0.1564, allocations: 3.53 MB / 293.9 MB, free: 13.79 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009401/0.1574, allocations: 0.8263 MB / 294.7 MB, free: 13.62 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001942/0.1576, allocations: 73.31 kB / 294.8 MB, free: 13.62 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002611/0.1602, allocations: 1.266 MB / 296 MB, free: 13.51 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001912/0.1604, allocations: 264.8 kB / 296.3 MB, free: 13.38 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006968/0.1611, allocations: 0.6792 MB / 297 MB, free: 13.23 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003011/0.1641, allocations: 2.634 MB / 299.6 MB, free: 11.11 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.648e-05/0.1641, allocations: 3.562 kB / 299.6 MB, free: 11.11 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1641, allocations: 0 / 299.6 MB, free: 11.11 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.000112/0.1642, allocations: 0 / 299.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.004138/0.1683, allocations: 4.364 MB / 304 MB, free: 7.121 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.1684, allocations: 8.031 kB / 304 MB, free: 7.113 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003369/0.1687, allocations: 291.6 kB / 304.3 MB, free: 6.828 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002152/0.1709, allocations: 2.056 MB / 306.3 MB, free: 4.762 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.814e-05/0.1709, allocations: 37 kB / 306.4 MB, free: 4.723 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.417e-05/0.171, allocations: 54.3 kB / 306.4 MB, free: 4.672 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005345/0.1715, allocations: 463.5 kB / 306.9 MB, free: 4.207 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.1715, allocations: 0 / 306.9 MB, free: 4.207 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.079e-05/0.1716, allocations: 23.28 kB / 306.9 MB, free: 4.188 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.209e-05/0.1716, allocations: 23.92 kB / 306.9 MB, free: 4.164 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000352/0.1719, allocations: 236.5 kB / 307.1 MB, free: 3.934 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002244/0.1742, allocations: 1.557 MB / 308.7 MB, free: 2.406 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003035/0.1745, allocations: 280.5 kB / 309 MB, free: 2.137 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002819/0.1748, allocations: 333.1 kB / 309.3 MB, free: 1.82 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02207/0.1968, allocations: 22.95 MB / 332.2 MB, free: 10.19 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000292/0.1971, allocations: 221.2 kB / 332.5 MB, free: 9.969 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.345e-06/0.1971, allocations: 0 / 332.5 MB, free: 9.969 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0005635/0.1977, allocations: 481 kB / 332.9 MB, free: 9.504 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.601e-05/0.1977, allocations: 59.41 kB / 333 MB, free: 9.434 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001555/0.1993, allocations: 2.664 MB / 335.6 MB, free: 7.309 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.658e-05/0.1993, allocations: 37.7 kB / 335.7 MB, free: 7.266 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004002/0.1997, allocations: 0.7514 MB / 336.4 MB, free: 6.672 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.631e-05/0.1998, allocations: 179 kB / 336.6 MB, free: 6.508 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001472/0.2, allocations: 197.5 kB / 336.8 MB, free: 6.328 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.477e-05/0.2, allocations: 346.5 kB / 337.1 MB, free: 6 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.575e-05/0.2001, allocations: 71.22 kB / 337.2 MB, free: 5.93 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002436/0.2004, allocations: 460.5 kB / 337.7 MB, free: 5.332 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004107/0.2008, allocations: 0.6218 MB / 338.3 MB, free: 4.617 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/0.2008, allocations: 4 kB / 338.3 MB, free: 4.613 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0007849/0.2016, allocations: 0.692 MB / 339 MB, free: 4 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.2016, allocations: 10.34 kB / 339 MB, free: 3.992 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-05/0.2016, allocations: 27.98 kB / 339 MB, free: 3.965 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.2017, allocations: 16 kB / 339 MB, free: 3.949 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004243/0.2021, allocations: 233.9 kB / 339.3 MB, free: 3.727 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.402e-05/0.2021, allocations: 23.92 kB / 339.3 MB, free: 3.703 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004312/0.2025, allocations: 103.3 kB / 339.4 MB, free: 3.602 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.581e-05/0.2026, allocations: 45.94 kB / 339.4 MB, free: 3.559 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.0002389/0.2028, allocations: 165.5 kB / 339.6 MB, free: 3.387 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001656/0.203, allocations: 243.7 kB / 339.8 MB, free: 3.148 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009477/0.2039, allocations: 0.7887 MB / 340.6 MB, free: 2.355 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.204, allocations: 4 kB / 340.6 MB, free: 2.352 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.204, allocations: 3.984 kB / 340.6 MB, free: 2.348 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.204, allocations: 3.938 kB / 340.6 MB, free: 2.344 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001305/0.2053, allocations: 1.557 MB / 342.2 MB, free: 1.141 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.543e-05/0.2053, allocations: 8 kB / 342.2 MB, free: 1.133 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002507/0.2055, allocations: 107.8 kB / 342.3 MB, free: 1.027 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000329/0.2059, allocations: 389.3 kB / 342.7 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.2059, allocations: 0 / 342.7 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.706e-05/0.2059, allocations: 19.92 kB / 342.7 MB, free: 0.625 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.2059, allocations: 4 kB / 342.7 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.2059, allocations: 0 / 342.7 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006366/0.2065, allocations: 0.6313 MB / 343.3 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002972/0.2068, allocations: 15.98 kB / 343.3 MB, free: 15.96 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003497/0.2072, allocations: 20.8 kB / 343.4 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.208e-05/0.2073, allocations: 39.94 kB / 343.4 MB, free: 15.9 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.64e-05/0.2073, allocations: 20.02 kB / 343.4 MB, free: 15.88 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007951/0.2081, allocations: 1.409 MB / 344.8 MB, free: 14.65 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2081, allocations: 0 / 344.8 MB, free: 14.65 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007939/0.2089, allocations: 0.5891 MB / 345.4 MB, free: 14.06 MB / 330.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.0008513/0.2098, allocations: 0.9256 MB / 346.4 MB, free: 13.27 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004389/0.2102, allocations: 471 kB / 346.8 MB, free: 12.8 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.931e-05/0.2102, allocations: 48.88 kB / 346.9 MB, free: 12.75 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001991/0.2104, allocations: 242.5 kB / 347.1 MB, free: 12.49 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001307/0.2117, allocations: 0.8683 MB / 348 MB, free: 11.62 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00641/0.2181, allocations: 4.016 MB / 352 MB, free: 7.555 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002962/0.2184, allocations: 388.7 kB / 352.4 MB, free: 7.156 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005748/0.219, allocations: 357.1 kB / 352.7 MB, free: 6.801 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007348/0.2198, allocations: 0.5772 MB / 353.3 MB, free: 6.215 MB / 330.7 MB Notification: Performance of SimCode: time 1.032e-06/0.2198, allocations: 0 / 353.3 MB, free: 6.215 MB / 330.7 MB Notification: Performance of Templates: time 0.05246/0.2722, allocations: 38.73 MB / 392 MB, free: 52 kB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.183275650255382]