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.001023/0.001023, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001406/0.002429, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0009517/0.0009517, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.003961/0.004913, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.9878/0.9878, allocations: 173.4 MB / 185.8 MB, free: 8.992 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08118/1.069, allocations: 52.49 MB / 238.3 MB, free: 4.438 MB / 234.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.824e-06/1.824e-06, allocations: 0 / 239.5 MB, free: 3.191 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.8e-05/1.983e-05, allocations: 2.875 kB / 239.5 MB, free: 3.188 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.009751/0.009771, allocations: 13.77 MB / 253.3 MB, free: 5.363 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01952/0.02929, allocations: 19.89 MB / 273.2 MB, free: 1.398 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001838/0.03113, allocations: 138.5 kB / 273.3 MB, free: 1.262 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002423/0.03355, allocations: 1.173 MB / 274.5 MB, free: 80 kB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.122/0.1556, allocations: 2.375 MB / 276.9 MB, free: 1.449 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004069/0.1596, allocations: 1.406 MB / 278.3 MB, free: 1.258 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008752/0.1684, allocations: 6.646 MB / 284.9 MB, free: 15.96 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006326/0.169, allocations: 298.4 kB / 285.2 MB, free: 15.81 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003698/0.1727, allocations: 3.44 MB / 288.7 MB, free: 15.24 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001045/0.1738, allocations: 0.8269 MB / 289.5 MB, free: 15.07 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002041/0.174, allocations: 71.94 kB / 289.6 MB, free: 15.07 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003129/0.1771, allocations: 1.263 MB / 290.8 MB, free: 15.03 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00021/0.1773, allocations: 269.9 kB / 291.1 MB, free: 14.89 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007049/0.178, allocations: 0.6787 MB / 291.8 MB, free: 14.75 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002505/0.1805, allocations: 2.623 MB / 294.4 MB, free: 14.2 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.402e-05/0.1805, allocations: 2.844 kB / 294.4 MB, free: 14.2 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1805, allocations: 0 / 294.4 MB, free: 14.2 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.171e-05/0.1806, allocations: 4 kB / 294.4 MB, free: 14.2 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.003753/0.1844, allocations: 4.365 MB / 298.8 MB, free: 10.99 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.187e-05/0.1844, allocations: 12.03 kB / 298.8 MB, free: 10.98 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002894/0.1847, allocations: 291.3 kB / 299.1 MB, free: 10.8 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001915/0.1866, allocations: 2.058 MB / 301.1 MB, free: 9.023 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.308e-05/0.1866, allocations: 37.81 kB / 301.2 MB, free: 9 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.977e-05/0.1867, allocations: 52.78 kB / 301.2 MB, free: 8.965 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005098/0.1872, allocations: 469 kB / 301.7 MB, free: 8.707 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.1872, allocations: 0 / 301.7 MB, free: 8.707 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.744e-05/0.1873, allocations: 20.88 kB / 301.7 MB, free: 8.699 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.628e-05/0.1873, allocations: 25.78 kB / 301.7 MB, free: 8.684 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003384/0.1876, allocations: 228.1 kB / 301.9 MB, free: 8.504 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002756/0.1904, allocations: 1.564 MB / 303.5 MB, free: 7.363 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003317/0.1907, allocations: 277.9 kB / 303.8 MB, free: 7.102 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002672/0.191, allocations: 329.2 kB / 304.1 MB, free: 6.801 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02438/0.2154, allocations: 22.94 MB / 327 MB, free: 15.71 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002828/0.2156, allocations: 215.8 kB / 327.2 MB, free: 15.51 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.645e-06/0.2156, allocations: 0 / 327.2 MB, free: 15.51 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0005994/0.2162, allocations: 475.1 kB / 327.7 MB, free: 15.04 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.236e-05/0.2163, allocations: 71.05 kB / 327.8 MB, free: 14.96 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001581/0.2179, allocations: 2.654 MB / 330.4 MB, free: 12.84 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.499e-05/0.2179, allocations: 33.7 kB / 330.5 MB, free: 12.8 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003742/0.2183, allocations: 0.7654 MB / 331.2 MB, free: 12.2 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.34e-05/0.2184, allocations: 179.8 kB / 331.4 MB, free: 12.03 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001477/0.2185, allocations: 185.7 kB / 331.6 MB, free: 11.86 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.467e-05/0.2186, allocations: 343.4 kB / 331.9 MB, free: 11.54 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.862e-05/0.2187, allocations: 81.95 kB / 332 MB, free: 11.46 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002459/0.2189, allocations: 452 kB / 332.4 MB, free: 10.87 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004285/0.2194, allocations: 0.6193 MB / 333.1 MB, free: 10.15 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/0.2194, allocations: 8 kB / 333.1 MB, free: 10.14 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0006345/0.22, allocations: 0.6955 MB / 333.8 MB, free: 9.527 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.22, allocations: 12 kB / 333.8 MB, free: 9.516 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-05/0.2201, allocations: 20 kB / 333.8 MB, free: 9.496 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.2201, allocations: 19.98 kB / 333.8 MB, free: 9.477 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004405/0.2205, allocations: 240 kB / 334 MB, free: 9.258 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.369e-05/0.2205, allocations: 24.27 kB / 334.1 MB, free: 9.242 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000581/0.2211, allocations: 100.6 kB / 334.2 MB, free: 9.145 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.495e-05/0.2212, allocations: 39.98 kB / 334.2 MB, free: 9.105 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.0002555/0.2215, allocations: 177.8 kB / 334.4 MB, free: 8.938 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000169/0.2216, allocations: 243.7 kB / 334.6 MB, free: 8.699 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009741/0.2226, allocations: 0.7856 MB / 335.4 MB, free: 7.926 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.2226, allocations: 4 kB / 335.4 MB, free: 7.922 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.2226, allocations: 0 / 335.4 MB, free: 7.922 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.2226, allocations: 11.98 kB / 335.4 MB, free: 7.91 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001497/0.2241, allocations: 1.541 MB / 337 MB, free: 6.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-05/0.2242, allocations: 15.98 kB / 337 MB, free: 6.715 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002702/0.2244, allocations: 103.3 kB / 337.1 MB, free: 6.617 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003479/0.2248, allocations: 401.1 kB / 337.5 MB, free: 6.219 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.63e-06/0.2248, allocations: 6.75 kB / 337.5 MB, free: 6.215 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.547e-05/0.2248, allocations: 12 kB / 337.5 MB, free: 6.203 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.2248, allocations: 3.938 kB / 337.5 MB, free: 6.199 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.2248, allocations: 0 / 337.5 MB, free: 6.199 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005575/0.2254, allocations: 0.6377 MB / 338.1 MB, free: 5.547 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00015/0.2255, allocations: 11.98 kB / 338.1 MB, free: 5.535 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002934/0.2258, allocations: 19.98 kB / 338.2 MB, free: 5.516 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.254e-05/0.2259, allocations: 51.89 kB / 338.2 MB, free: 5.465 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.303e-05/0.2259, allocations: 12 kB / 338.2 MB, free: 5.453 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007784/0.2267, allocations: 1.414 MB / 339.6 MB, free: 4.215 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2267, allocations: 0 / 339.6 MB, free: 4.215 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008736/0.2276, allocations: 0.5853 MB / 340.2 MB, free: 3.629 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.0008385/0.2284, allocations: 0.9157 MB / 341.1 MB, free: 2.859 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004628/0.2289, allocations: 468.8 kB / 341.6 MB, free: 2.422 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.429e-05/0.2289, allocations: 52.12 kB / 341.6 MB, free: 2.375 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002037/0.2291, allocations: 243.9 kB / 341.9 MB, free: 2.121 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001331/0.2304, allocations: 0.8624 MB / 342.7 MB, free: 1.254 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006434/0.2369, allocations: 4.008 MB / 346.8 MB, free: 13.2 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002418/0.2371, allocations: 392.5 kB / 347.1 MB, free: 12.8 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006632/0.2378, allocations: 357.1 kB / 347.5 MB, free: 12.45 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007663/0.2386, allocations: 0.5771 MB / 348.1 MB, free: 11.86 MB / 330.7 MB Notification: Performance of SimCode: time 1.092e-06/0.2386, allocations: 0 / 348.1 MB, free: 11.86 MB / 330.7 MB Notification: Performance of Templates: time 0.05557/0.2941, allocations: 38.69 MB / 386.7 MB, free: 5.801 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 -ignoreHideResult -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.294782835058868]