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.000984/0.000984, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.00103/0.00103, allocations: 159.5 kB / 24.99 MB, free: 9.324 MB / 18.57 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.9195/0.9195, allocations: 177.1 MB / 205.3 MB, free: 5.609 MB / 186.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 2.695e-06/2.695e-06, allocations: 4 kB / 273 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.509e-05/2.778e-05, allocations: 2.312 kB / 273 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1453/0.1453, allocations: 25.31 MB / 298.4 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02758/0.1729, allocations: 21.4 MB / 319.8 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006628/0.1795, allocations: 273.7 kB / 320 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005363/0.1849, allocations: 1.678 MB / 321.7 MB, free: 15.44 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01429/0.1992, allocations: 3.432 MB / 325.1 MB, free: 12.6 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00635/0.2055, allocations: 1.628 MB / 326.8 MB, free: 11.34 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.02079/0.2263, allocations: 13.24 MB / 340 MB, free: 14.47 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001502/0.2278, allocations: 0.4887 MB / 340.5 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004856/0.2327, allocations: 2.984 MB / 343.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001497/0.2342, allocations: 1.51 MB / 345 MB, free: 9.441 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000359/0.2345, allocations: 136 kB / 345.1 MB, free: 9.309 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002946/0.2375, allocations: 1.268 MB / 346.4 MB, free: 8.039 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003753/0.2379, allocations: 0.6009 MB / 347 MB, free: 7.434 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001511/0.2394, allocations: 1.406 MB / 348.4 MB, free: 6.023 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004809/0.2442, allocations: 4.648 MB / 353 MB, free: 1.355 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2442, allocations: 4 kB / 353.1 MB, free: 1.352 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2442, allocations: 0 / 353.1 MB, free: 1.352 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001589/0.2443, allocations: 4 kB / 353.1 MB, free: 1.348 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.005636/0.25, allocations: 7.141 MB / 360.2 MB, free: 10.11 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.25, allocations: 8.031 kB / 360.2 MB, free: 10.11 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007013/0.2507, allocations: 0.8467 MB / 361.1 MB, free: 9.254 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0044/0.2551, allocations: 4.971 MB / 366 MB, free: 4.164 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.172e-05/0.2552, allocations: 66 kB / 366.1 MB, free: 4.098 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001591/0.2553, allocations: 103.9 kB / 366.2 MB, free: 3.996 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001176/0.2565, allocations: 0.9423 MB / 367.1 MB, free: 3.035 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.2565, allocations: 0 / 367.1 MB, free: 3.035 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.311e-05/0.2566, allocations: 39.94 kB / 367.2 MB, free: 2.996 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.869e-05/0.2566, allocations: 39.97 kB / 367.2 MB, free: 2.957 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001101/0.2577, allocations: 0.9181 MB / 368.1 MB, free: 2.035 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00575/0.2635, allocations: 5.307 MB / 373.4 MB, free: 12.66 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00124/0.2647, allocations: 0.5754 MB / 374 MB, free: 12.08 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007633/0.2655, allocations: 0.8047 MB / 374.8 MB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04787/0.3133, allocations: 30 MB / 404.8 MB, free: 12.53 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007537/0.3141, allocations: 447.8 kB / 405.3 MB, free: 12.07 MB / 362.7 MB Notification: Performance of pre-optimization done (n=85): time 3.997e-06/0.3141, allocations: 4 kB / 405.3 MB, free: 12.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=85): time 0.002772/0.3169, allocations: 1.579 MB / 406.8 MB, free: 10.48 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.27e-05/0.3169, allocations: 64.06 kB / 406.9 MB, free: 10.41 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008/0.3249, allocations: 6.005 MB / 412.9 MB, free: 4.418 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001548/0.3251, allocations: 37.7 kB / 412.9 MB, free: 4.375 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002713/0.3278, allocations: 3.263 MB / 416.2 MB, free: 1.098 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004951/0.3283, allocations: 305.5 kB / 416.5 MB, free: 0.7969 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005426/0.3288, allocations: 432.6 kB / 416.9 MB, free: 376 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.329, allocations: 484.7 kB / 417.4 MB, free: 15.89 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005512/0.3295, allocations: 235.9 kB / 417.6 MB, free: 15.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001152/0.3307, allocations: 1.237 MB / 418.9 MB, free: 13.97 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001982/0.3327, allocations: 1.62 MB / 420.5 MB, free: 11.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.576e-05/0.3327, allocations: 11.94 kB / 420.5 MB, free: 11.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004262/0.3369, allocations: 2.007 MB / 422.5 MB, free: 9.863 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.94e-05/0.337, allocations: 16 kB / 422.5 MB, free: 9.848 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002139/0.3372, allocations: 165.9 kB / 422.7 MB, free: 9.688 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.179e-05/0.3372, allocations: 32.81 kB / 422.7 MB, free: 9.656 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001142/0.3384, allocations: 363.4 kB / 423.1 MB, free: 9.301 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-05/0.3384, allocations: 47.8 kB / 423.1 MB, free: 9.254 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002249/0.3407, allocations: 186.6 kB / 423.3 MB, free: 9.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002049/0.3409, allocations: 124 kB / 423.4 MB, free: 8.949 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.0008191/0.3417, allocations: 272.7 kB / 423.7 MB, free: 8.672 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009785/0.3427, allocations: 0.7687 MB / 424.5 MB, free: 7.898 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003732/0.3464, allocations: 1.909 MB / 426.4 MB, free: 5.988 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/0.3464, allocations: 4 kB / 426.4 MB, free: 5.984 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3464, allocations: 4 kB / 426.4 MB, free: 5.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.617e-06/0.3464, allocations: 3.984 kB / 426.4 MB, free: 5.977 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005297/0.3517, allocations: 3.697 MB / 430.1 MB, free: 2.215 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001089/0.3518, allocations: 140 kB / 430.2 MB, free: 2.078 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004266/0.3523, allocations: 151.8 kB / 430.4 MB, free: 1.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.3523, allocations: 0 / 430.4 MB, free: 1.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.414e-05/0.3523, allocations: 60 kB / 430.4 MB, free: 1.871 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.681e-06/0.3524, allocations: 4 kB / 430.4 MB, free: 1.867 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.3524, allocations: 4.812 kB / 430.4 MB, free: 1.863 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1004/0.4527, allocations: 1.848 MB / 432.3 MB, free: 126.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001337/0.4541, allocations: 0.8064 MB / 433.1 MB, free: 126.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000434/0.4545, allocations: 16.16 kB / 433.1 MB, free: 126.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006467/0.4551, allocations: 25.41 kB / 433.1 MB, free: 126.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001927/0.4553, allocations: 104.9 kB / 433.2 MB, free: 126.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.718e-05/0.4554, allocations: 69.47 kB / 433.3 MB, free: 126.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003584/0.459, allocations: 3.23 MB / 436.5 MB, free: 126.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.459, allocations: 0.5625 kB / 436.5 MB, free: 126.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001953/0.461, allocations: 1.084 MB / 437.6 MB, free: 126.1 MB / 378.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.001593/0.4626, allocations: 1.296 MB / 438.9 MB, free: 126 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001358/0.4639, allocations: 1.156 MB / 440.1 MB, free: 125.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.4639, allocations: 1.344 kB / 440.1 MB, free: 125.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005657/0.4645, allocations: 0.6391 MB / 440.7 MB, free: 125.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002997/0.4675, allocations: 1.22 MB / 441.9 MB, free: 125.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005806/0.4733, allocations: 7.794 MB / 449.7 MB, free: 121.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004147/0.4737, allocations: 0.6934 MB / 450.4 MB, free: 121.2 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001255/0.475, allocations: 0.6836 MB / 451.1 MB, free: 121 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002227/0.4752, allocations: 284.2 kB / 451.4 MB, free: 121 MB / 378.7 MB Notification: Performance of SimCode: time 1.312e-06/0.4752, allocations: 0 / 451.4 MB, free: 121 MB / 378.7 MB Notification: Performance of Templates: time 0.0548/0.53, allocations: 57.95 MB / 0.4974 GB, free: 65.27 MB / 378.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 -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.190890565980226]