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.001413/0.001413, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001601/0.001601, allocations: 165 kB / 24.56 MB, free: 12 kB / 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.9405/0.9405, allocations: 177.1 MB / 205 MB, free: 5.633 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 1.773e-06/1.773e-06, allocations: 0 / 273 MB, free: 1.555 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.527e-05/2.704e-05, allocations: 2.312 kB / 273 MB, free: 1.551 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1328/0.1328, allocations: 25.38 MB / 298.3 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02125/0.1541, allocations: 21.45 MB / 319.8 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007534/0.1616, allocations: 269.1 kB / 320.1 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005718/0.1673, allocations: 1.685 MB / 321.7 MB, free: 15.46 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01516/0.1825, allocations: 3.435 MB / 325.2 MB, free: 12.62 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004135/0.1866, allocations: 1.629 MB / 326.8 MB, free: 11.36 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0135/0.2001, allocations: 13.5 MB / 340.3 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001108/0.2012, allocations: 0.4887 MB / 340.8 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005896/0.2071, allocations: 5.966 MB / 346.8 MB, free: 7.594 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001728/0.2089, allocations: 1.553 MB / 348.3 MB, free: 6.035 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003813/0.2092, allocations: 135.9 kB / 348.4 MB, free: 5.902 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002815/0.212, allocations: 1.268 MB / 349.7 MB, free: 4.633 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003568/0.2124, allocations: 0.6166 MB / 350.3 MB, free: 4.012 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001328/0.2137, allocations: 1.417 MB / 351.7 MB, free: 2.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004882/0.2186, allocations: 4.66 MB / 356.4 MB, free: 13.9 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.2186, allocations: 0 / 356.4 MB, free: 13.9 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2186, allocations: 0 / 356.4 MB, free: 13.9 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.511e-05/0.2187, allocations: 0 / 356.4 MB, free: 13.9 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.005244/0.2239, allocations: 7.167 MB / 363.6 MB, free: 6.648 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.224, allocations: 12.03 kB / 363.6 MB, free: 6.637 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005967/0.2246, allocations: 0.8467 MB / 364.4 MB, free: 5.785 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003934/0.2285, allocations: 4.811 MB / 369.2 MB, free: 0.8555 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.639e-05/0.2285, allocations: 66 kB / 369.3 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001363/0.2287, allocations: 103.9 kB / 369.4 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001097/0.2298, allocations: 0.9424 MB / 370.4 MB, free: 15.73 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.2298, allocations: 0 / 370.4 MB, free: 15.73 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.51e-05/0.2299, allocations: 39.94 kB / 370.4 MB, free: 15.69 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.616e-05/0.2299, allocations: 35.97 kB / 370.4 MB, free: 15.65 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001253/0.2312, allocations: 0.9258 MB / 371.4 MB, free: 14.72 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005704/0.2369, allocations: 5.311 MB / 376.7 MB, free: 9.348 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006512/0.2375, allocations: 0.5677 MB / 377.2 MB, free: 8.77 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007049/0.2382, allocations: 0.8058 MB / 378 MB, free: 7.961 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0279/0.2661, allocations: 30 MB / 408 MB, free: 9.215 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004916/0.2666, allocations: 443.8 kB / 408.5 MB, free: 8.766 MB / 362.7 MB Notification: Performance of pre-optimization done (n=85): time 2.555e-06/0.2666, allocations: 0 / 408.5 MB, free: 8.766 MB / 362.7 MB Notification: Performance of matching and sorting (n=85): time 0.001665/0.2683, allocations: 1.575 MB / 410 MB, free: 7.184 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.923e-05/0.2683, allocations: 68.06 kB / 410.1 MB, free: 7.105 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004757/0.2731, allocations: 6.001 MB / 416.1 MB, free: 1.117 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.672e-05/0.2731, allocations: 41.7 kB / 416.2 MB, free: 1.07 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001816/0.2749, allocations: 3.252 MB / 419.4 MB, free: 13.8 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001834/0.2751, allocations: 329.4 kB / 419.7 MB, free: 13.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003148/0.2754, allocations: 428.6 kB / 420.1 MB, free: 13.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.354e-05/0.2755, allocations: 484.7 kB / 420.6 MB, free: 12.58 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003112/0.2758, allocations: 239.9 kB / 420.9 MB, free: 12.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007041/0.2765, allocations: 1.237 MB / 422.1 MB, free: 10.65 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001208/0.2777, allocations: 1.613 MB / 423.7 MB, free: 8.578 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.126e-05/0.2778, allocations: 8 kB / 423.7 MB, free: 8.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00198/0.2797, allocations: 2.014 MB / 425.7 MB, free: 6.555 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.794e-05/0.2798, allocations: 16 kB / 425.7 MB, free: 6.539 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001257/0.2799, allocations: 164 kB / 425.9 MB, free: 6.379 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.125e-05/0.2799, allocations: 32 kB / 425.9 MB, free: 6.348 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006518/0.2806, allocations: 355.8 kB / 426.3 MB, free: 6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.835e-05/0.2806, allocations: 53.75 kB / 426.3 MB, free: 5.949 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001016/0.2816, allocations: 182.6 kB / 426.5 MB, free: 5.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001343/0.2818, allocations: 128 kB / 426.6 MB, free: 5.645 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.0005261/0.2823, allocations: 268.7 kB / 426.9 MB, free: 5.371 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005387/0.2828, allocations: 0.7687 MB / 427.7 MB, free: 4.598 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002206/0.285, allocations: 1.917 MB / 429.6 MB, free: 2.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.285, allocations: 8 kB / 429.6 MB, free: 2.672 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.285, allocations: 0 / 429.6 MB, free: 2.672 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.285, allocations: 7.984 kB / 429.6 MB, free: 2.664 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1208/0.4059, allocations: 3.695 MB / 433.3 MB, free: 110.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.001722/0.4076, allocations: 138.5 kB / 433.4 MB, free: 110.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005181/0.4081, allocations: 141.7 kB / 433.6 MB, free: 110.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.486e-06/0.4081, allocations: 4.594 kB / 433.6 MB, free: 110.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.039e-05/0.4082, allocations: 63.48 kB / 433.6 MB, free: 110.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.4082, allocations: 2.844 kB / 433.6 MB, free: 110.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.4082, allocations: 4.125 kB / 433.6 MB, free: 110.6 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002164/0.4104, allocations: 1.846 MB / 435.5 MB, free: 110.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009812/0.4114, allocations: 0.8121 MB / 436.3 MB, free: 110 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004021/0.4118, allocations: 19.2 kB / 436.3 MB, free: 110 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008584/0.4126, allocations: 22.39 kB / 436.3 MB, free: 110 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002248/0.4129, allocations: 102.4 kB / 436.4 MB, free: 110 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001029/0.413, allocations: 69.61 kB / 436.5 MB, free: 110 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003321/0.4163, allocations: 3.227 MB / 439.7 MB, free: 109.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4163, allocations: 0 / 439.7 MB, free: 109.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001466/0.4178, allocations: 1.092 MB / 440.8 MB, free: 109.7 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.001089/0.4188, allocations: 1.296 MB / 442.1 MB, free: 109.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000994/0.4198, allocations: 1.157 MB / 443.3 MB, free: 109.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.4198, allocations: 1.875 kB / 443.3 MB, free: 109.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004233/0.4203, allocations: 0.6353 MB / 443.9 MB, free: 109.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002396/0.4227, allocations: 1.234 MB / 445.2 MB, free: 109 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00529/0.4279, allocations: 7.786 MB / 452.9 MB, free: 105.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000347/0.4283, allocations: 0.6952 MB / 453.6 MB, free: 105.1 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009462/0.4292, allocations: 0.6807 MB / 454.3 MB, free: 104.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002575/0.4295, allocations: 288.4 kB / 454.6 MB, free: 104.4 MB / 378.7 MB Notification: Performance of SimCode: time 1.012e-06/0.4295, allocations: 0 / 454.6 MB, free: 104.4 MB / 378.7 MB Notification: Performance of Templates: time 0.06155/0.491, allocations: 67.81 MB / 0.5102 GB, free: 39.09 MB / 378.7 MB " [Timeout remaining time 660] 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.1074376897886395]