Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0007416/0.0007416, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009971/0.001739, 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.000694/0.000694, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008656/0.00156, 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.9137/0.9137, allocations: 177.2 MB / 189.6 MB, free: 5.324 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08019/0.9939, 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.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_4.1.0_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_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.82e-07/9.82e-07, allocations: 0 / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.512e-05/1.61e-05, allocations: 6.25 kB / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01444/0.01445, allocations: 24.84 MB / 269.4 MB, free: 5.391 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1339/0.1484, allocations: 21.74 MB / 291.1 MB, free: 15.69 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004906/0.1533, allocations: 267.3 kB / 291.4 MB, free: 15.51 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004293/0.1576, allocations: 1.752 MB / 293.1 MB, free: 14.72 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01078/0.1684, allocations: 3.396 MB / 296.5 MB, free: 13.3 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005555/0.1739, allocations: 1.591 MB / 298.1 MB, free: 12.51 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01365/0.1876, allocations: 13.13 MB / 311.2 MB, free: 5.141 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001228/0.1888, allocations: 0.5554 MB / 311.8 MB, free: 4.547 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007815/0.1966, allocations: 6.865 MB / 318.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002515/0.1991, allocations: 1.562 MB / 320.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005278/0.1997, allocations: 135.9 kB / 320.3 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00372/0.2034, allocations: 1.325 MB / 321.7 MB, free: 10.76 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003765/0.2038, allocations: 499.8 kB / 322.2 MB, free: 10.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001876/0.2056, allocations: 1.297 MB / 323.5 MB, free: 8.965 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004555/0.2102, allocations: 4.389 MB / 327.8 MB, free: 4.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.639e-05/0.2102, allocations: 0 / 327.8 MB, free: 4.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2102, allocations: 0 / 327.8 MB, free: 4.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001927/0.2104, allocations: 0 / 327.8 MB, free: 4.93 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.006594/0.217, allocations: 8.015 MB / 335.9 MB, free: 13.04 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.217, allocations: 8.031 kB / 335.9 MB, free: 13.03 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004898/0.2175, allocations: 0.5305 MB / 336.4 MB, free: 12.5 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003707/0.2212, allocations: 3.92 MB / 340.3 MB, free: 8.43 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.747e-05/0.2213, allocations: 66 kB / 340.4 MB, free: 8.367 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001327/0.2214, allocations: 103.9 kB / 340.5 MB, free: 8.266 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000819/0.2222, allocations: 0.7774 MB / 341.3 MB, free: 7.465 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.2222, allocations: 3.938 kB / 341.3 MB, free: 7.461 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.453e-05/0.2223, allocations: 36 kB / 341.3 MB, free: 7.426 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.446e-05/0.2223, allocations: 39.97 kB / 341.3 MB, free: 7.387 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006085/0.2229, allocations: 431.1 kB / 341.8 MB, free: 6.957 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003729/0.2267, allocations: 2.901 MB / 344.7 MB, free: 4.012 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004553/0.2271, allocations: 482.2 kB / 345.1 MB, free: 3.527 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007404/0.2279, allocations: 0.6276 MB / 345.8 MB, free: 2.902 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04448/0.2723, allocations: 45.4 MB / 391.2 MB, free: 3.809 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003794/0.2727, allocations: 338.1 kB / 391.5 MB, free: 3.469 MB / 362.7 MB Notification: Performance of pre-optimization done (n=85): time 2.575e-06/0.2727, allocations: 3.938 kB / 391.5 MB, free: 3.465 MB / 362.7 MB Notification: Performance of matching and sorting (n=85): time 0.0009957/0.2737, allocations: 0.84 MB / 392.3 MB, free: 2.617 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.759e-05/0.2738, allocations: 60.06 kB / 392.4 MB, free: 2.547 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003174/0.2769, allocations: 5.064 MB / 397.5 MB, free: 13.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.006e-05/0.277, allocations: 37.7 kB / 397.5 MB, free: 13.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006938/0.2777, allocations: 1.404 MB / 398.9 MB, free: 12.04 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001639/0.2778, allocations: 309.4 kB / 399.2 MB, free: 11.74 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002584/0.2781, allocations: 342.9 kB / 399.5 MB, free: 11.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.889e-05/0.2782, allocations: 301.1 kB / 399.8 MB, free: 11.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001703/0.2783, allocations: 135.9 kB / 400 MB, free: 10.97 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000436/0.2788, allocations: 0.8408 MB / 400.8 MB, free: 9.797 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009883/0.2797, allocations: 1.166 MB / 402 MB, free: 8.297 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.366e-06/0.2798, allocations: 8 kB / 402 MB, free: 8.289 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00124/0.281, allocations: 1.295 MB / 403.3 MB, free: 6.984 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.417e-05/0.281, allocations: 18.34 kB / 403.3 MB, free: 6.969 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.072e-05/0.2811, allocations: 43.98 kB / 403.3 MB, free: 6.926 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.725e-05/0.2811, allocations: 34 kB / 403.4 MB, free: 6.895 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007032/0.2818, allocations: 415.8 kB / 403.8 MB, free: 6.488 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.201e-05/0.2819, allocations: 43.86 kB / 403.8 MB, free: 6.445 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009284/0.2828, allocations: 190.6 kB / 404 MB, free: 6.258 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001069/0.2829, allocations: 77.02 kB / 404.1 MB, free: 6.184 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.0004605/0.2834, allocations: 221.1 kB / 404.3 MB, free: 5.957 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003455/0.2837, allocations: 471.4 kB / 404.8 MB, free: 5.496 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00178/0.2855, allocations: 1.468 MB / 406.2 MB, free: 4.027 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.2855, allocations: 8 kB / 406.2 MB, free: 4.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.853e-06/0.2855, allocations: 0 / 406.2 MB, free: 4.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.471e-06/0.2855, allocations: 3.984 kB / 406.2 MB, free: 4.016 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002607/0.2881, allocations: 2.772 MB / 409 MB, free: 1.195 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.942e-05/0.2882, allocations: 23.98 kB / 409 MB, free: 1.172 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000429/0.2886, allocations: 183.8 kB / 409.2 MB, free: 0.9922 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007199/0.2893, allocations: 0.7352 MB / 409.9 MB, free: 244 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.2893, allocations: 4 kB / 409.9 MB, free: 240 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.025e-05/0.2894, allocations: 20 kB / 410 MB, free: 220 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.981e-06/0.2894, allocations: 8.797 kB / 410 MB, free: 212 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.2894, allocations: 4 kB / 410 MB, free: 208 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009367/0.2903, allocations: 1.052 MB / 411 MB, free: 15.13 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003028/0.2906, allocations: 12 kB / 411 MB, free: 15.12 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005634/0.2912, allocations: 35.97 kB / 411.1 MB, free: 15.09 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.2913, allocations: 56.5 kB / 411.1 MB, free: 15.03 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.606e-05/0.2914, allocations: 25.17 kB / 411.2 MB, free: 15.01 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001702/0.2931, allocations: 2.724 MB / 413.9 MB, free: 12.31 MB / 394.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2931, allocations: 3.938 kB / 413.9 MB, free: 12.3 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001669/0.2947, allocations: 1.089 MB / 415 MB, free: 11.21 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.001785/0.2965, allocations: 1.473 MB / 416.4 MB, free: 9.73 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009585/0.2975, allocations: 0.8444 MB / 417.3 MB, free: 8.84 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.304e-05/0.2976, allocations: 92.42 kB / 417.4 MB, free: 8.75 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003789/0.2979, allocations: 432.4 kB / 417.8 MB, free: 8.27 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003258/0.3012, allocations: 1.658 MB / 419.5 MB, free: 6.609 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1162/0.4174, allocations: 7.619 MB / 427.1 MB, free: 110.3 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007442/0.4181, allocations: 0.7013 MB / 427.8 MB, free: 110.2 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002017/0.4202, allocations: 0.6821 MB / 428.5 MB, free: 110.1 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002263/0.4224, allocations: 1.074 MB / 429.5 MB, free: 110.1 MB / 394.7 MB Notification: Performance of SimCode: time 1.713e-06/0.4224, allocations: 0.75 kB / 429.5 MB, free: 110.1 MB / 394.7 MB Notification: Performance of Templates: time 0.07784/0.5003, allocations: 68.83 MB / 498.4 MB, free: 59.7 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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: 4.070974861271679]