Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001131/0.001131, allocations: 80.11 kB / 9.937 MB, free: 0.75 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001523/0.002654, allocations: 445.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001053/0.001053, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001338/0.002391, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8946/0.8946, allocations: 177.4 MB / 189.9 MB, free: 4.84 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07636/0.971, allocations: 53.86 MB / 243.7 MB, free: 14.91 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.172e-06/1.172e-06, allocations: 0 / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.339e-05/1.456e-05, allocations: 2.312 kB / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01463/0.01464, allocations: 24.84 MB / 269.8 MB, free: 4.727 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1354/0.15, allocations: 21.75 MB / 291.6 MB, free: 15.51 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003327/0.1533, allocations: 268.3 kB / 291.9 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002641/0.156, allocations: 1.755 MB / 293.6 MB, free: 14.54 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006848/0.1628, allocations: 3.392 MB / 297 MB, free: 13.01 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003669/0.1665, allocations: 1.579 MB / 298.6 MB, free: 12.14 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01103/0.1775, allocations: 13.15 MB / 311.7 MB, free: 4.52 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008421/0.1784, allocations: 0.5491 MB / 312.3 MB, free: 3.93 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005805/0.1842, allocations: 6.868 MB / 319.2 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001382/0.1856, allocations: 1.562 MB / 320.7 MB, free: 11.56 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000246/0.1858, allocations: 132 kB / 320.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00274/0.1885, allocations: 1.326 MB / 322.2 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003338/0.1889, allocations: 0.4958 MB / 322.7 MB, free: 9.645 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001226/0.1901, allocations: 1.297 MB / 324 MB, free: 8.344 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003529/0.1936, allocations: 4.386 MB / 328.3 MB, free: 4.117 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.179e-05/0.1936, allocations: 0 / 328.3 MB, free: 4.117 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1937, allocations: 0 / 328.3 MB, free: 4.117 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001348/0.1938, allocations: 0 / 328.3 MB, free: 4.117 MB / 298.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.005585/0.1994, allocations: 8.01 MB / 336.4 MB, free: 12.01 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.693e-05/0.1994, allocations: 8.625 kB / 336.4 MB, free: 12 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006361/0.2, allocations: 0.5305 MB / 336.9 MB, free: 11.47 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003193/0.2032, allocations: 3.92 MB / 340.8 MB, free: 7.402 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.356e-05/0.2033, allocations: 66 kB / 340.9 MB, free: 7.34 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001233/0.2034, allocations: 103.9 kB / 341 MB, free: 7.238 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007551/0.2041, allocations: 0.7813 MB / 341.8 MB, free: 6.434 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.2042, allocations: 0 / 341.8 MB, free: 6.434 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.196e-05/0.2042, allocations: 36 kB / 341.8 MB, free: 6.398 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.416e-05/0.2042, allocations: 43.97 kB / 341.8 MB, free: 6.355 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005789/0.2048, allocations: 427.1 kB / 342.3 MB, free: 5.93 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003585/0.2084, allocations: 2.905 MB / 345.2 MB, free: 2.98 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004333/0.2088, allocations: 483.7 kB / 345.6 MB, free: 2.5 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004701/0.2093, allocations: 0.6285 MB / 346.3 MB, free: 1.867 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04183/0.2511, allocations: 45.39 MB / 391.7 MB, free: 2.785 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003254/0.2515, allocations: 342.1 kB / 392 MB, free: 2.438 MB / 362.7 MB Notification: Performance of pre-optimization done (n=85): time 2.124e-06/0.2515, allocations: 0 / 392 MB, free: 2.438 MB / 362.7 MB Notification: Performance of matching and sorting (n=85): time 0.0008239/0.2523, allocations: 0.8517 MB / 392.8 MB, free: 1.582 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.166e-05/0.2523, allocations: 64.06 kB / 392.9 MB, free: 1.508 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002616/0.2549, allocations: 5.056 MB / 398 MB, free: 12.47 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.941e-05/0.255, allocations: 41.7 kB / 398 MB, free: 12.43 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006501/0.2556, allocations: 1.397 MB / 399.4 MB, free: 11.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001572/0.2558, allocations: 309.4 kB / 399.7 MB, free: 10.71 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002407/0.256, allocations: 346.8 kB / 400 MB, free: 10.37 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.286e-05/0.2561, allocations: 301.1 kB / 400.3 MB, free: 10.07 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001976/0.2563, allocations: 139.9 kB / 400.5 MB, free: 9.934 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004272/0.2567, allocations: 0.8447 MB / 401.3 MB, free: 8.754 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007051/0.2574, allocations: 1.162 MB / 402.5 MB, free: 7.258 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.207e-06/0.2574, allocations: 8 kB / 402.5 MB, free: 7.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00104/0.2585, allocations: 1.288 MB / 403.8 MB, free: 5.957 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.2585, allocations: 20.25 kB / 403.8 MB, free: 5.938 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.383e-05/0.2586, allocations: 43.98 kB / 403.8 MB, free: 5.895 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.186e-05/0.2586, allocations: 32 kB / 403.9 MB, free: 5.863 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006653/0.2593, allocations: 415.4 kB / 404.3 MB, free: 5.457 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.388e-05/0.2593, allocations: 53.42 kB / 404.3 MB, free: 5.406 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007409/0.26, allocations: 178.7 kB / 404.5 MB, free: 5.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001006/0.2601, allocations: 72 kB / 404.6 MB, free: 5.16 MB / 378.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.0004034/0.2605, allocations: 225.1 kB / 404.8 MB, free: 4.93 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003077/0.2608, allocations: 467.4 kB / 405.2 MB, free: 4.473 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001692/0.2625, allocations: 1.474 MB / 406.7 MB, free: 2.992 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.2625, allocations: 12 kB / 406.7 MB, free: 2.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.2625, allocations: 0 / 406.7 MB, free: 2.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/0.2625, allocations: 3.984 kB / 406.7 MB, free: 2.977 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002175/0.2647, allocations: 2.769 MB / 409.5 MB, free: 164 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.614e-05/0.2648, allocations: 16 kB / 409.5 MB, free: 148 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003949/0.2652, allocations: 187.8 kB / 409.7 MB, free: 15.96 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005905/0.2658, allocations: 0.7352 MB / 410.4 MB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.2658, allocations: 4 kB / 410.4 MB, free: 15.2 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.934e-05/0.2658, allocations: 27.92 kB / 410.5 MB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.2658, allocations: 9.922 kB / 410.5 MB, free: 15.17 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2658, allocations: 3.938 kB / 410.5 MB, free: 15.16 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008533/0.2667, allocations: 1.052 MB / 411.5 MB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002896/0.267, allocations: 23.98 kB / 411.6 MB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005075/0.2675, allocations: 19.98 kB / 411.6 MB, free: 14.05 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.2676, allocations: 64.48 kB / 411.6 MB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.616e-05/0.2676, allocations: 20 kB / 411.7 MB, free: 13.97 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001523/0.2692, allocations: 2.724 MB / 414.4 MB, free: 11.27 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2692, allocations: 7.938 kB / 414.4 MB, free: 11.26 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001141/0.2703, allocations: 1.085 MB / 415.5 MB, free: 10.18 MB / 394.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.001202/0.2715, allocations: 1.447 MB / 416.9 MB, free: 8.715 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006863/0.2722, allocations: 0.8479 MB / 417.8 MB, free: 7.824 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-05/0.2722, allocations: 93.42 kB / 417.9 MB, free: 7.738 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003249/0.2726, allocations: 432.5 kB / 418.3 MB, free: 7.254 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002352/0.2749, allocations: 1.666 MB / 419.9 MB, free: 5.594 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0994/0.3743, allocations: 7.626 MB / 427.6 MB, free: 125.3 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005993/0.3749, allocations: 0.7015 MB / 428.3 MB, free: 125.1 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001576/0.3765, allocations: 0.6881 MB / 429 MB, free: 125.1 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001701/0.3782, allocations: 1.07 MB / 430 MB, free: 125 MB / 394.7 MB Notification: Performance of SimCode: time 1.572e-06/0.3782, allocations: 0 / 430 MB, free: 125 MB / 394.7 MB Notification: Performance of Templates: time 0.06442/0.4426, allocations: 68.82 MB / 498.8 MB, free: 69.52 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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: 3.8527312641963363]