Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.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.001332/0.001332, allocations: 80.8 kB / 22.28 MB, free: 2.207 MB / 18.57 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.001299/0.001299, allocations: 168.6 kB / 25.7 MB, free: 8.453 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8592/0.8592, allocations: 158.6 MB / 187.6 MB, free: 2.77 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.102e-06/1.102e-06, allocations: 0 / 251.5 MB, free: 7.273 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.626e-05/1.736e-05, allocations: 2.312 kB / 251.5 MB, free: 7.27 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01417/0.01419, allocations: 23.36 MB / 274.9 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01989/0.03409, allocations: 20.62 MB / 295.5 MB, free: 11.11 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002581/0.03667, allocations: 276.9 kB / 295.8 MB, free: 10.84 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002469/0.03914, allocations: 1.707 MB / 297.5 MB, free: 9.113 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006128/0.04526, allocations: 3.411 MB / 300.9 MB, free: 5.676 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003031/0.0483, allocations: 1.59 MB / 302.5 MB, free: 4.078 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01048/0.05878, allocations: 12.96 MB / 315.4 MB, free: 7.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007838/0.05956, allocations: 0.5533 MB / 316 MB, free: 6.465 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004685/0.06425, allocations: 5.53 MB / 321.5 MB, free: 0.9219 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001486/0.06573, allocations: 1.507 MB / 323 MB, free: 15.41 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002327/0.06597, allocations: 132 kB / 323.2 MB, free: 15.28 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002415/0.06838, allocations: 1.14 MB / 324.3 MB, free: 14.14 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003806/0.06876, allocations: 0.6165 MB / 324.9 MB, free: 13.52 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001373/0.07013, allocations: 1.429 MB / 326.3 MB, free: 12.09 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003699/0.07383, allocations: 4.683 MB / 331 MB, free: 7.383 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.07384, allocations: 0 / 331 MB, free: 7.383 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.07384, allocations: 0 / 331 MB, free: 7.383 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.954e-05/0.07391, allocations: 3.938 kB / 331 MB, free: 7.379 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.004884/0.07879, allocations: 6.821 MB / 337.9 MB, free: 496 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.07883, allocations: 11.98 kB / 337.9 MB, free: 484 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004838/0.07931, allocations: 0.5344 MB / 338.4 MB, free: 15.94 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003481/0.08279, allocations: 3.944 MB / 342.3 MB, free: 11.85 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.829e-05/0.08283, allocations: 69.98 kB / 342.4 MB, free: 11.78 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001395/0.08297, allocations: 103.9 kB / 342.5 MB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008095/0.08378, allocations: 0.7852 MB / 343.3 MB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.0838, allocations: 0 / 343.3 MB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.805e-05/0.08386, allocations: 39.98 kB / 343.3 MB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.48e-05/0.08389, allocations: 35.98 kB / 343.4 MB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006222/0.08451, allocations: 431.1 kB / 343.8 MB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003755/0.08827, allocations: 2.897 MB / 346.7 MB, free: 7.426 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004531/0.08872, allocations: 485.5 kB / 347.2 MB, free: 6.941 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004986/0.08922, allocations: 0.6225 MB / 347.8 MB, free: 6.32 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1346/0.2238, allocations: 45.71 MB / 393.5 MB, free: 59.88 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003209/0.2241, allocations: 340.6 kB / 393.8 MB, free: 59.55 MB / 330.7 MB Notification: Performance of pre-optimization done (n=85): time 2.735e-06/0.2241, allocations: 0 / 393.8 MB, free: 59.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=85): time 0.0007554/0.2249, allocations: 0.8468 MB / 394.7 MB, free: 58.71 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.637e-05/0.2249, allocations: 67.89 kB / 394.7 MB, free: 58.63 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002109/0.227, allocations: 5.093 MB / 399.8 MB, free: 54.71 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.848e-05/0.2271, allocations: 41.7 kB / 399.9 MB, free: 54.66 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005058/0.2276, allocations: 1.401 MB / 401.3 MB, free: 53.91 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/0.2277, allocations: 317.3 kB / 401.6 MB, free: 53.76 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002155/0.2279, allocations: 343.3 kB / 401.9 MB, free: 53.45 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 2.089e-05/0.2279, allocations: 301.1 kB / 402.2 MB, free: 53.16 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001553/0.2281, allocations: 139.9 kB / 402.4 MB, free: 53.02 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002848/0.2284, allocations: 0.8382 MB / 403.2 MB, free: 51.89 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005746/0.2289, allocations: 1.17 MB / 404.4 MB, free: 50.57 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/0.2289, allocations: 8 kB / 404.4 MB, free: 50.56 MB / 330.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.0009005/0.2298, allocations: 1.29 MB / 405.7 MB, free: 49.43 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.2299, allocations: 12 kB / 405.7 MB, free: 49.42 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.517e-05/0.2299, allocations: 47.98 kB / 405.7 MB, free: 49.38 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.059e-05/0.23, allocations: 32 kB / 405.8 MB, free: 49.34 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005224/0.2305, allocations: 358.7 kB / 406.1 MB, free: 49.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.727e-05/0.2305, allocations: 49.64 kB / 406.2 MB, free: 48.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007592/0.2313, allocations: 182.2 kB / 406.3 MB, free: 48.85 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.853e-05/0.2313, allocations: 72 kB / 406.4 MB, free: 48.78 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.0004029/0.2317, allocations: 220.8 kB / 406.6 MB, free: 48.59 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002566/0.232, allocations: 475.3 kB / 407.1 MB, free: 48.13 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001535/0.2335, allocations: 1.487 MB / 408.6 MB, free: 46.7 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.2335, allocations: 8 kB / 408.6 MB, free: 46.69 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-06/0.2335, allocations: 2.391 kB / 408.6 MB, free: 46.69 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.2336, allocations: 7.984 kB / 408.6 MB, free: 46.68 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001949/0.2355, allocations: 2.786 MB / 411.4 MB, free: 44.63 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.094e-05/0.2356, allocations: 26.11 kB / 411.4 MB, free: 44.61 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003064/0.2359, allocations: 151.4 kB / 411.5 MB, free: 44.47 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.409e-06/0.2359, allocations: 4 kB / 411.5 MB, free: 44.46 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.755e-05/0.2359, allocations: 12 kB / 411.6 MB, free: 44.45 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.2359, allocations: 7.984 kB / 411.6 MB, free: 44.45 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2359, allocations: 0 / 411.6 MB, free: 44.45 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007762/0.2367, allocations: 1.069 MB / 412.6 MB, free: 43.38 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005677/0.2373, allocations: 0.7313 MB / 413.4 MB, free: 42.64 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003073/0.2376, allocations: 20 kB / 413.4 MB, free: 42.62 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005379/0.2381, allocations: 19.98 kB / 413.4 MB, free: 42.61 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.2382, allocations: 64.55 kB / 413.5 MB, free: 42.54 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.751e-05/0.2383, allocations: 27.98 kB / 413.5 MB, free: 42.51 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001219/0.2395, allocations: 2.741 MB / 416.2 MB, free: 40.15 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2395, allocations: 0 / 416.2 MB, free: 40.15 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001179/0.2407, allocations: 1.095 MB / 417.3 MB, free: 39.12 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001115/0.2418, allocations: 1.462 MB / 418.8 MB, free: 37.95 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006428/0.2424, allocations: 0.8402 MB / 419.6 MB, free: 37.15 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-05/0.2425, allocations: 80.81 kB / 419.7 MB, free: 37.07 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002938/0.2427, allocations: 441.1 kB / 420.1 MB, free: 36.61 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001658/0.2444, allocations: 1.001 MB / 421.1 MB, free: 35.61 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005498/0.2499, allocations: 7.624 MB / 428.8 MB, free: 27.95 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003188/0.2502, allocations: 0.7019 MB / 429.5 MB, free: 27.23 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0009709/0.2512, allocations: 0.685 MB / 430.2 MB, free: 26.54 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001259/0.2525, allocations: 1.069 MB / 431.2 MB, free: 25.45 MB / 330.7 MB Notification: Performance of SimCode: time 9.92e-07/0.2525, allocations: 2.188 kB / 431.2 MB, free: 25.45 MB / 330.7 MB Notification: Performance of Templates: time 0.1574/0.4099, allocations: 66.39 MB / 497.6 MB, free: 111.1 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.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: 4.009005207102746]