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.0009713/0.0009713, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001355/0.002326, allocations: 453.8 kB / 10.46 MB, free: 236 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.0009401/0.0009401, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.004985/0.005925, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 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.9593/0.9593, allocations: 158.6 MB / 171.2 MB, free: 2.508 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1394/1.099, allocations: 49.5 MB / 220.7 MB, free: 1.359 MB / 218.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.683e-06/1.683e-06, allocations: 0 / 222 MB, free: 68 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.981e-05/2.149e-05, allocations: 2.312 kB / 222 MB, free: 64 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01483/0.01485, allocations: 23.49 MB / 245.5 MB, free: 8.48 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0244/0.03925, allocations: 20.71 MB / 266.2 MB, free: 3.676 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005118/0.04437, allocations: 273 kB / 266.5 MB, free: 3.406 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004788/0.04916, allocations: 1.703 MB / 268.2 MB, free: 1.691 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01022/0.05938, allocations: 3.352 MB / 271.5 MB, free: 14.31 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005098/0.06448, allocations: 1.536 MB / 273 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0166/0.08108, allocations: 12.7 MB / 285.8 MB, free: 28 kB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1167/0.1978, allocations: 0.5513 MB / 286.3 MB, free: 11.79 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007928/0.2058, allocations: 6.419 MB / 292.7 MB, free: 11.19 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002886/0.2086, allocations: 1.51 MB / 294.2 MB, free: 11.19 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006889/0.2093, allocations: 132.1 kB / 294.4 MB, free: 11.19 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003218/0.2125, allocations: 1.195 MB / 295.6 MB, free: 11.19 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003092/0.2129, allocations: 0.4934 MB / 296 MB, free: 11.19 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00179/0.2146, allocations: 1.304 MB / 297.4 MB, free: 11.19 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00424/0.2189, allocations: 4.416 MB / 301.8 MB, free: 10.56 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.579e-05/0.2189, allocations: 2.406 kB / 301.8 MB, free: 10.56 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2189, allocations: 0 / 301.8 MB, free: 10.56 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002529/0.2192, allocations: 0 / 301.8 MB, free: 10.56 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.007265/0.2264, allocations: 8.059 MB / 309.8 MB, free: 6.656 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.2265, allocations: 11.78 kB / 309.8 MB, free: 6.656 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007216/0.2272, allocations: 0.5341 MB / 310.4 MB, free: 6.656 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003946/0.2311, allocations: 3.95 MB / 314.3 MB, free: 5.039 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.235e-05/0.2312, allocations: 67.66 kB / 314.4 MB, free: 5.039 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001463/0.2313, allocations: 96.47 kB / 314.5 MB, free: 5.035 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008512/0.2322, allocations: 0.7879 MB / 315.3 MB, free: 4.941 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.2322, allocations: 0 / 315.3 MB, free: 4.941 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.752e-05/0.2322, allocations: 36.03 kB / 315.3 MB, free: 4.941 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.49e-05/0.2323, allocations: 41.58 kB / 315.4 MB, free: 4.941 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005789/0.2328, allocations: 431.9 kB / 315.8 MB, free: 4.91 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004123/0.237, allocations: 2.908 MB / 318.7 MB, free: 3.141 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004194/0.2374, allocations: 474.3 kB / 319.1 MB, free: 2.77 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000393/0.2378, allocations: 0.6295 MB / 319.8 MB, free: 2.32 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04677/0.2846, allocations: 45.59 MB / 365.4 MB, free: 6.297 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003941/0.2849, allocations: 340.6 kB / 365.7 MB, free: 5.973 MB / 330.7 MB Notification: Performance of pre-optimization done (n=85): time 2.715e-06/0.285, allocations: 0 / 365.7 MB, free: 5.973 MB / 330.7 MB Notification: Performance of matching and sorting (n=85): time 0.001105/0.2861, allocations: 0.8498 MB / 366.5 MB, free: 5.125 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.555e-05/0.2861, allocations: 63.25 kB / 366.6 MB, free: 5.051 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00348/0.2896, allocations: 5.111 MB / 371.7 MB, free: 1.043 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.567e-05/0.2896, allocations: 41.7 kB / 371.8 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001047/0.2907, allocations: 1.394 MB / 373.2 MB, free: 15.92 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002106/0.2909, allocations: 320.6 kB / 373.5 MB, free: 15.62 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002756/0.2912, allocations: 335.8 kB / 373.8 MB, free: 15.32 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.522e-05/0.2912, allocations: 312.2 kB / 374.1 MB, free: 15.02 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001865/0.2914, allocations: 131.9 kB / 374.2 MB, free: 14.89 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004715/0.2919, allocations: 0.8418 MB / 375.1 MB, free: 13.76 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008812/0.2928, allocations: 1.237 MB / 376.3 MB, free: 12.34 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.035e-05/0.2928, allocations: 12 kB / 376.3 MB, free: 12.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.001432/0.2942, allocations: 1.292 MB / 377.6 MB, free: 11.18 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/0.2943, allocations: 16 kB / 377.6 MB, free: 11.17 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.355e-05/0.2943, allocations: 43.98 kB / 377.7 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.836e-05/0.2944, allocations: 32 kB / 377.7 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007231/0.2951, allocations: 422.5 kB / 378.1 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.639e-05/0.2951, allocations: 50.56 kB / 378.2 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001358/0.2965, allocations: 178.8 kB / 378.3 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001274/0.2966, allocations: 72 kB / 378.4 MB, free: 10.43 MB / 346.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.0006986/0.2973, allocations: 221.2 kB / 378.6 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005093/0.2978, allocations: 475.4 kB / 379.1 MB, free: 9.766 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00223/0.3, allocations: 1.485 MB / 380.6 MB, free: 8.285 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.245e-06/0.3001, allocations: 12 kB / 380.6 MB, free: 8.273 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.285e-06/0.3001, allocations: 2.297 kB / 380.6 MB, free: 8.273 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.3001, allocations: 3.984 kB / 380.6 MB, free: 8.27 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003093/0.3032, allocations: 2.777 MB / 383.4 MB, free: 6.227 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.104e-05/0.3032, allocations: 25.3 kB / 383.4 MB, free: 6.203 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004437/0.3037, allocations: 182.2 kB / 383.6 MB, free: 6.031 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001096/0.3048, allocations: 0.7367 MB / 384.3 MB, free: 5.277 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.814e-06/0.3048, allocations: 7.984 kB / 384.3 MB, free: 5.27 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.537e-05/0.3048, allocations: 20 kB / 384.3 MB, free: 5.25 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.3048, allocations: 4 kB / 384.3 MB, free: 5.246 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3048, allocations: 0 / 384.3 MB, free: 5.246 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001142/0.306, allocations: 1.072 MB / 385.4 MB, free: 4.168 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004336/0.3064, allocations: 15.98 kB / 385.4 MB, free: 4.152 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006123/0.307, allocations: 31.16 kB / 385.5 MB, free: 4.125 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.3072, allocations: 56.55 kB / 385.5 MB, free: 4.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.729e-05/0.3072, allocations: 20 kB / 385.5 MB, free: 4.051 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002486/0.3097, allocations: 2.745 MB / 388.3 MB, free: 1.684 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3097, allocations: 4 kB / 388.3 MB, free: 1.68 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002305/0.312, allocations: 1.092 MB / 389.4 MB, free: 0.5859 MB / 346.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.001679/0.3137, allocations: 1.457 MB / 390.8 MB, free: 15.35 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001104/0.3148, allocations: 0.8781 MB / 391.7 MB, free: 14.52 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.721e-05/0.3149, allocations: 95.42 kB / 391.8 MB, free: 14.43 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004281/0.3153, allocations: 484.7 kB / 392.3 MB, free: 13.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007483/0.3228, allocations: 11.94 MB / 404.2 MB, free: 15.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01356/0.3364, allocations: 7.688 MB / 411.9 MB, free: 7.941 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005054/0.3369, allocations: 0.7073 MB / 412.6 MB, free: 7.215 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001652/0.3385, allocations: 0.693 MB / 413.3 MB, free: 6.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001651/0.3402, allocations: 1.081 MB / 414.4 MB, free: 5.422 MB / 378.7 MB Notification: Performance of SimCode: time 2.234e-06/0.3402, allocations: 0 / 414.4 MB, free: 5.422 MB / 378.7 MB Notification: Performance of Templates: time 0.1869/0.5271, allocations: 68.79 MB / 483.2 MB, free: 112.2 MB / 394.7 MB " [Timeout remaining time 659] 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.333595519885421]