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.0009607/0.0009607, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001498/0.002459, allocations: 445.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.000989/0.000989, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001302/0.002291, allocations: 463.6 kB / 11.71 MB, free: 2.453 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.9716/0.9716, allocations: 158.6 MB / 171.1 MB, free: 2.582 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1502/1.122, allocations: 49.48 MB / 220.5 MB, free: 1.449 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.793e-06/1.793e-06, allocations: 0 / 221.8 MB, free: 180 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.234e-05/2.414e-05, allocations: 6.312 kB / 221.8 MB, free: 172 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01736/0.01738, allocations: 23.48 MB / 245.3 MB, free: 8.594 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02448/0.04187, allocations: 20.72 MB / 266 MB, free: 3.789 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005205/0.04707, allocations: 273 kB / 266.3 MB, free: 3.52 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004161/0.05123, allocations: 1.7 MB / 268 MB, free: 1.805 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01131/0.06254, allocations: 3.349 MB / 271.3 MB, free: 14.43 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005068/0.06761, allocations: 1.539 MB / 272.9 MB, free: 12.88 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01498/0.08259, allocations: 12.71 MB / 285.6 MB, free: 140 kB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1615/0.2441, allocations: 0.56 MB / 286.2 MB, free: 11.9 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008692/0.2528, allocations: 6.416 MB / 292.6 MB, free: 11.29 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002818/0.2556, allocations: 1.508 MB / 294.1 MB, free: 11.29 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006535/0.2562, allocations: 132.5 kB / 294.2 MB, free: 11.29 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003557/0.2598, allocations: 1.193 MB / 295.4 MB, free: 11.29 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000401/0.2602, allocations: 0.4937 MB / 295.9 MB, free: 11.29 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002033/0.2622, allocations: 1.303 MB / 297.2 MB, free: 11.29 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005377/0.2676, allocations: 4.422 MB / 301.6 MB, free: 10.66 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.03e-05/0.2676, allocations: 0 / 301.6 MB, free: 10.66 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.2676, allocations: 0 / 301.6 MB, free: 10.66 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002585/0.2679, allocations: 0 / 301.6 MB, free: 10.66 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.008091/0.276, allocations: 8.071 MB / 309.7 MB, free: 6.758 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.113e-05/0.276, allocations: 8.906 kB / 309.7 MB, free: 6.758 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005672/0.2766, allocations: 0.531 MB / 310.2 MB, free: 6.758 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003607/0.2802, allocations: 3.945 MB / 314.2 MB, free: 5.141 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.393e-05/0.2802, allocations: 70.91 kB / 314.2 MB, free: 5.141 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001329/0.2803, allocations: 98.89 kB / 314.3 MB, free: 5.137 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008042/0.2811, allocations: 0.7866 MB / 315.1 MB, free: 5.047 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.675e-05/0.2812, allocations: 0 / 315.1 MB, free: 5.047 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.062e-05/0.2812, allocations: 36.09 kB / 315.2 MB, free: 5.047 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.296e-05/0.2812, allocations: 42.61 kB / 315.2 MB, free: 5.043 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005954/0.2818, allocations: 428 kB / 315.6 MB, free: 5.012 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004673/0.2865, allocations: 2.903 MB / 318.5 MB, free: 3.246 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004636/0.287, allocations: 476.3 kB / 319 MB, free: 2.871 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004661/0.2874, allocations: 0.6328 MB / 319.6 MB, free: 2.414 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04631/0.3338, allocations: 45.6 MB / 365.2 MB, free: 6.383 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003854/0.3341, allocations: 342.2 kB / 365.6 MB, free: 6.055 MB / 330.7 MB Notification: Performance of pre-optimization done (n=85): time 3.115e-06/0.3341, allocations: 0 / 365.6 MB, free: 6.055 MB / 330.7 MB Notification: Performance of matching and sorting (n=85): time 0.001193/0.3353, allocations: 0.8517 MB / 366.4 MB, free: 5.203 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.84e-05/0.3354, allocations: 60.06 kB / 366.5 MB, free: 5.133 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003564/0.3389, allocations: 5.107 MB / 371.6 MB, free: 1.129 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.658e-05/0.339, allocations: 41.7 kB / 371.6 MB, free: 1.082 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007489/0.3398, allocations: 1.393 MB / 373 MB, free: 8 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002088/0.34, allocations: 312 kB / 373.3 MB, free: 15.72 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002686/0.3402, allocations: 347.3 kB / 373.7 MB, free: 15.41 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.619e-05/0.3403, allocations: 301.1 kB / 374 MB, free: 15.11 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001835/0.3405, allocations: 139.9 kB / 374.1 MB, free: 14.97 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004901/0.341, allocations: 0.8412 MB / 374.9 MB, free: 13.85 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008553/0.3418, allocations: 1.168 MB / 376.1 MB, free: 12.49 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.118e-05/0.3419, allocations: 10.3 kB / 376.1 MB, free: 12.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.001672/0.3435, allocations: 1.287 MB / 377.4 MB, free: 11.34 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.075e-05/0.3436, allocations: 16.19 kB / 377.4 MB, free: 11.33 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001101/0.3437, allocations: 47.98 kB / 377.5 MB, free: 11.28 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.701e-05/0.3437, allocations: 32 kB / 377.5 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007387/0.3445, allocations: 416.9 kB / 377.9 MB, free: 10.87 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.961e-05/0.3445, allocations: 53.91 kB / 377.9 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00142/0.3459, allocations: 174.8 kB / 378.1 MB, free: 10.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001245/0.346, allocations: 72 kB / 378.2 MB, free: 10.59 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.0006484/0.3467, allocations: 221.8 kB / 378.4 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004022/0.3471, allocations: 475.4 kB / 378.9 MB, free: 9.926 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001916/0.349, allocations: 1.49 MB / 380.4 MB, free: 8.449 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.999e-06/0.349, allocations: 10.41 kB / 380.4 MB, free: 8.441 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.349, allocations: 0 / 380.4 MB, free: 8.441 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.349, allocations: 3.984 kB / 380.4 MB, free: 8.438 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002913/0.3519, allocations: 2.78 MB / 383.2 MB, free: 6.383 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.471e-05/0.352, allocations: 21.3 kB / 383.2 MB, free: 6.363 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004499/0.3525, allocations: 182.2 kB / 383.4 MB, free: 6.191 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009792/0.3534, allocations: 0.7435 MB / 384.1 MB, free: 5.434 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/0.3534, allocations: 4 kB / 384.1 MB, free: 5.43 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.97e-05/0.3535, allocations: 19.98 kB / 384.1 MB, free: 5.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.3535, allocations: 4 kB / 384.1 MB, free: 5.406 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3535, allocations: 0 / 384.1 MB, free: 5.406 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001061/0.3546, allocations: 1.068 MB / 385.2 MB, free: 4.336 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003634/0.3549, allocations: 16 kB / 385.2 MB, free: 4.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005843/0.3555, allocations: 30.92 kB / 385.2 MB, free: 4.293 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/0.3556, allocations: 56.56 kB / 385.3 MB, free: 4.238 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.181e-05/0.3557, allocations: 23.98 kB / 385.3 MB, free: 4.215 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001766/0.3575, allocations: 2.746 MB / 388.1 MB, free: 1.848 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3575, allocations: 0 / 388.1 MB, free: 1.848 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001695/0.3592, allocations: 1.092 MB / 389.2 MB, free: 0.7539 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.001502/0.3607, allocations: 1.467 MB / 390.6 MB, free: 15.52 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009815/0.3616, allocations: 0.8443 MB / 391.5 MB, free: 14.7 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.781e-05/0.3617, allocations: 95.66 kB / 391.6 MB, free: 14.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003632/0.3621, allocations: 434.9 kB / 392 MB, free: 14.16 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002423/0.3645, allocations: 1.478 MB / 393.5 MB, free: 12.68 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01269/0.3772, allocations: 7.702 MB / 401.2 MB, free: 4.922 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005517/0.3778, allocations: 0.7033 MB / 401.9 MB, free: 4.199 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001611/0.3794, allocations: 0.6927 MB / 402.6 MB, free: 3.504 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001652/0.381, allocations: 1.065 MB / 403.6 MB, free: 2.422 MB / 362.7 MB Notification: Performance of SimCode: time 2.354e-06/0.381, allocations: 0 / 403.6 MB, free: 2.422 MB / 362.7 MB Notification: Performance of Templates: time 0.1922/0.5732, allocations: 69.14 MB / 472.8 MB, free: 92.58 MB / 378.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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.254431838169694]