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.001077/0.001077, allocations: 75.77 kB / 22.45 MB, free: 2.098 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.001122/0.001122, allocations: 169 kB / 25.75 MB, free: 8.582 MB / 18.57 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.9658/0.9658, allocations: 158.6 MB / 187.6 MB, free: 2.895 MB / 170.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.673e-06/1.673e-06, allocations: 0 / 251.1 MB, free: 7.91 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.628e-05/2.795e-05, allocations: 2.312 kB / 251.1 MB, free: 7.906 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02147/0.0215, allocations: 23.98 MB / 275.1 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02209/0.04358, allocations: 20.38 MB / 295.5 MB, free: 11.37 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004692/0.04827, allocations: 276.9 kB / 295.7 MB, free: 11.1 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004241/0.05251, allocations: 1.64 MB / 297.4 MB, free: 9.445 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009072/0.06159, allocations: 3.383 MB / 300.8 MB, free: 6.035 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004719/0.0663, allocations: 1.577 MB / 302.3 MB, free: 4.449 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01575/0.08206, allocations: 12.81 MB / 315.1 MB, free: 7.594 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001363/0.08342, allocations: 0.4927 MB / 315.6 MB, free: 7.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00404/0.08746, allocations: 2.719 MB / 318.4 MB, free: 4.344 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001949/0.08941, allocations: 1.444 MB / 319.8 MB, free: 2.895 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000416/0.08982, allocations: 132 kB / 319.9 MB, free: 2.766 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003207/0.09303, allocations: 1.152 MB / 321.1 MB, free: 1.613 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004638/0.0935, allocations: 0.6048 MB / 321.7 MB, free: 1.004 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002178/0.09567, allocations: 1.417 MB / 323.1 MB, free: 15.58 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006684/0.1024, allocations: 4.683 MB / 327.8 MB, free: 10.88 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.1024, allocations: 0 / 327.8 MB, free: 10.88 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1024, allocations: 0 / 327.8 MB, free: 10.88 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002076/0.1026, allocations: 0 / 327.8 MB, free: 10.88 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.006881/0.1095, allocations: 7.195 MB / 335 MB, free: 3.598 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.1095, allocations: 11.98 kB / 335 MB, free: 3.586 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000809/0.1103, allocations: 0.8505 MB / 335.8 MB, free: 2.73 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004958/0.1153, allocations: 5.015 MB / 340.9 MB, free: 13.6 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.358e-05/0.1153, allocations: 66 kB / 340.9 MB, free: 13.53 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001654/0.1155, allocations: 95.95 kB / 341 MB, free: 13.44 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00126/0.1167, allocations: 0.9463 MB / 342 MB, free: 12.47 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.1168, allocations: 0 / 342 MB, free: 12.47 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.171e-05/0.1168, allocations: 36 kB / 342 MB, free: 12.43 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.923e-05/0.1169, allocations: 35.98 kB / 342 MB, free: 12.4 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001175/0.118, allocations: 0.9297 MB / 343 MB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007102/0.1251, allocations: 5.331 MB / 348.3 MB, free: 6.055 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008124/0.126, allocations: 0.5638 MB / 348.9 MB, free: 5.477 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008245/0.1268, allocations: 0.8088 MB / 349.7 MB, free: 4.672 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1453/0.2721, allocations: 30.06 MB / 379.7 MB, free: 60.84 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004575/0.2726, allocations: 454.4 kB / 380.2 MB, free: 60.44 MB / 330.7 MB Notification: Performance of pre-optimization done (n=85): time 4.589e-06/0.2726, allocations: 0.8438 kB / 380.2 MB, free: 60.44 MB / 330.7 MB Notification: Performance of matching and sorting (n=85): time 0.001626/0.2742, allocations: 1.588 MB / 381.8 MB, free: 59.36 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.464e-05/0.2742, allocations: 60.06 kB / 381.8 MB, free: 59.29 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004132/0.2784, allocations: 6.049 MB / 387.9 MB, free: 53.43 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.284e-05/0.2785, allocations: 41.7 kB / 387.9 MB, free: 53.38 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001456/0.2799, allocations: 3.256 MB / 391.2 MB, free: 50.2 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001859/0.2801, allocations: 308.8 kB / 391.5 MB, free: 49.94 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002779/0.2804, allocations: 436.6 kB / 391.9 MB, free: 49.51 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.149e-05/0.2804, allocations: 478.9 kB / 392.4 MB, free: 49.04 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003106/0.2807, allocations: 243 kB / 392.6 MB, free: 48.8 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005064/0.2812, allocations: 1.236 MB / 393.8 MB, free: 47.12 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001014/0.2822, allocations: 1.622 MB / 395.4 MB, free: 45.18 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.709e-06/0.2823, allocations: 4 kB / 395.5 MB, free: 45.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002236/0.2845, allocations: 2.026 MB / 397.5 MB, free: 43.32 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.2845, allocations: 16 kB / 397.5 MB, free: 43.3 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.78e-05/0.2846, allocations: 160 kB / 397.6 MB, free: 43.15 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.11e-05/0.2846, allocations: 32 kB / 397.7 MB, free: 43.12 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005977/0.2852, allocations: 360.9 kB / 398 MB, free: 42.79 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.004e-05/0.2852, allocations: 50.84 kB / 398.1 MB, free: 42.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001302/0.2865, allocations: 183.7 kB / 398.3 MB, free: 42.62 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001412/0.2867, allocations: 124 kB / 398.4 MB, free: 42.5 MB / 330.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.0005409/0.2872, allocations: 263.3 kB / 398.6 MB, free: 42.27 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000437/0.2877, allocations: 0.7804 MB / 399.4 MB, free: 41.48 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002047/0.2897, allocations: 1.94 MB / 401.4 MB, free: 39.59 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.2897, allocations: 10.3 kB / 401.4 MB, free: 39.58 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.2897, allocations: 0 / 401.4 MB, free: 39.58 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.2897, allocations: 3.984 kB / 401.4 MB, free: 39.57 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003148/0.2929, allocations: 3.72 MB / 405.1 MB, free: 35.83 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.658e-05/0.293, allocations: 144 kB / 405.2 MB, free: 35.69 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000361/0.2933, allocations: 142.5 kB / 405.4 MB, free: 35.56 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.2933, allocations: 4 kB / 405.4 MB, free: 35.55 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.357e-05/0.2934, allocations: 59.98 kB / 405.4 MB, free: 35.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.2934, allocations: 4 kB / 405.4 MB, free: 35.49 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2934, allocations: 4.062 kB / 405.4 MB, free: 35.49 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001318/0.2947, allocations: 1.854 MB / 407.3 MB, free: 33.61 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007201/0.2954, allocations: 0.8137 MB / 408.1 MB, free: 32.79 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003378/0.2958, allocations: 20 kB / 408.1 MB, free: 32.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005811/0.2963, allocations: 28.84 kB / 408.2 MB, free: 32.74 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001463/0.2965, allocations: 99.08 kB / 408.3 MB, free: 32.65 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.887e-05/0.2966, allocations: 71.98 kB / 408.3 MB, free: 32.58 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002318/0.2989, allocations: 3.249 MB / 411.6 MB, free: 29.36 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2989, allocations: 0 / 411.6 MB, free: 29.36 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001381/0.3003, allocations: 1.098 MB / 412.7 MB, free: 28.33 MB / 330.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.001057/0.3013, allocations: 1.292 MB / 414 MB, free: 27.32 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001097/0.3024, allocations: 1.165 MB / 415.1 MB, free: 26.18 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3024, allocations: 0 / 415.1 MB, free: 26.18 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004521/0.3029, allocations: 0.6304 MB / 415.8 MB, free: 25.5 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002434/0.3053, allocations: 1.041 MB / 416.8 MB, free: 24.46 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006093/0.3114, allocations: 7.838 MB / 424.6 MB, free: 16.56 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003669/0.3118, allocations: 0.698 MB / 425.3 MB, free: 15.84 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001284/0.313, allocations: 0.6945 MB / 426 MB, free: 15.15 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002491/0.3133, allocations: 284.5 kB / 426.3 MB, free: 14.87 MB / 330.7 MB Notification: Performance of SimCode: time 2.244e-06/0.3133, allocations: 0 / 426.3 MB, free: 14.87 MB / 330.7 MB Notification: Performance of Templates: time 0.07057/0.3839, allocations: 58.19 MB / 484.5 MB, free: 4.762 MB / 378.7 MB " [Timeout remaining time 660] 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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.32948764692992]