Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007753/0.0007753, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001273/0.002049, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008813/0.0008813, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009906/0.001872, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8235/0.8235, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1366/0.9601, allocations: 52.49 MB / 238.5 MB, free: 7.613 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 239.7 MB, free: 6.348 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.573e-05/1.7e-05, allocations: 2.969 kB / 239.7 MB, free: 6.344 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01942/0.01943, allocations: 24.82 MB / 264.6 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02273/0.04216, allocations: 21.72 MB / 286.3 MB, free: 7.664 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003552/0.04571, allocations: 269.1 kB / 286.5 MB, free: 7.398 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003238/0.04895, allocations: 1.762 MB / 288.3 MB, free: 5.625 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007828/0.05678, allocations: 3.38 MB / 291.7 MB, free: 2.219 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003643/0.06042, allocations: 1.586 MB / 293.3 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01262/0.07304, allocations: 12.96 MB / 306.2 MB, free: 3.617 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001225/0.07426, allocations: 0.5609 MB / 306.8 MB, free: 3 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007265/0.08153, allocations: 6.707 MB / 313.5 MB, free: 12.18 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002268/0.0838, allocations: 1.561 MB / 315.1 MB, free: 10.62 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003238/0.08412, allocations: 132 kB / 315.2 MB, free: 10.49 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002949/0.08707, allocations: 1.315 MB / 316.5 MB, free: 9.172 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003678/0.08744, allocations: 0.4958 MB / 317 MB, free: 8.672 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001572/0.08901, allocations: 1.293 MB / 318.3 MB, free: 7.375 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004549/0.09356, allocations: 4.383 MB / 322.7 MB, free: 2.973 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.559e-05/0.09357, allocations: 0 / 322.7 MB, free: 2.973 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.09358, allocations: 4 kB / 322.7 MB, free: 2.969 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001469/0.09372, allocations: 0 / 322.7 MB, free: 2.969 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.1082/0.2019, allocations: 7.996 MB / 330.7 MB, free: 58.87 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.2019, allocations: 12.89 kB / 330.7 MB, free: 58.87 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009908/0.2029, allocations: 0.5257 MB / 331.2 MB, free: 58.87 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00437/0.2073, allocations: 3.923 MB / 335.1 MB, free: 57.35 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.981e-05/0.2073, allocations: 69.31 kB / 335.2 MB, free: 57.35 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001669/0.2075, allocations: 103.3 kB / 335.3 MB, free: 57.34 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001028/0.2085, allocations: 0.7875 MB / 336.1 MB, free: 57.25 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.114e-05/0.2086, allocations: 1.219 kB / 336.1 MB, free: 57.25 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.239e-05/0.2086, allocations: 36.81 kB / 336.1 MB, free: 57.25 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.771e-05/0.2087, allocations: 36.8 kB / 336.2 MB, free: 57.25 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007774/0.2094, allocations: 429.7 kB / 336.6 MB, free: 57.22 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004652/0.2141, allocations: 2.896 MB / 339.5 MB, free: 56.73 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000507/0.2146, allocations: 481.8 kB / 340 MB, free: 56.65 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005441/0.2151, allocations: 0.6275 MB / 340.6 MB, free: 56.62 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03926/0.2544, allocations: 45.34 MB / 385.9 MB, free: 13.24 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003254/0.2547, allocations: 340.1 kB / 386.3 MB, free: 12.91 MB / 314.7 MB Notification: Performance of pre-optimization done (n=85): time 2.805e-06/0.2547, allocations: 0 / 386.3 MB, free: 12.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=85): time 0.0009075/0.2556, allocations: 0.8435 MB / 387.1 MB, free: 12.07 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.393e-05/0.2557, allocations: 63.91 kB / 387.2 MB, free: 12 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002121/0.2578, allocations: 5.067 MB / 392.2 MB, free: 8.023 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.741e-05/0.2578, allocations: 41.7 kB / 392.3 MB, free: 7.977 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004962/0.2583, allocations: 1.393 MB / 393.7 MB, free: 6.898 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001263/0.2585, allocations: 308.8 kB / 394 MB, free: 6.617 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002095/0.2587, allocations: 347.2 kB / 394.3 MB, free: 6.305 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 2.191e-05/0.2587, allocations: 305.1 kB / 394.6 MB, free: 6.004 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001425/0.2588, allocations: 135.9 kB / 394.7 MB, free: 5.871 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002815/0.2591, allocations: 0.8396 MB / 395.6 MB, free: 4.75 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005935/0.2597, allocations: 1.243 MB / 396.8 MB, free: 3.309 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/0.2597, allocations: 8 kB / 396.8 MB, free: 3.301 MB / 314.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.001064/0.2608, allocations: 1.284 MB / 398.1 MB, free: 2.172 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.2608, allocations: 16 kB / 398.1 MB, free: 2.156 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.321e-05/0.2609, allocations: 40 kB / 398.2 MB, free: 2.117 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.548e-05/0.2609, allocations: 36 kB / 398.2 MB, free: 2.082 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006312/0.2615, allocations: 422.1 kB / 398.6 MB, free: 1.699 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.787e-05/0.2616, allocations: 45.92 kB / 398.7 MB, free: 1.664 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001031/0.2626, allocations: 184.7 kB / 398.8 MB, free: 1.484 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.777e-05/0.2627, allocations: 75.94 kB / 398.9 MB, free: 1.41 MB / 314.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.0003957/0.2631, allocations: 227.4 kB / 399.1 MB, free: 1.207 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002867/0.2634, allocations: 467.4 kB / 399.6 MB, free: 0.75 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001732/0.2651, allocations: 1.482 MB / 401.1 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.2651, allocations: 8 kB / 401.1 MB, free: 15.28 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.574e-06/0.2651, allocations: 3.984 kB / 401.1 MB, free: 15.28 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.2651, allocations: 0 / 401.1 MB, free: 15.28 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002928/0.268, allocations: 2.767 MB / 403.8 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.644e-05/0.2681, allocations: 19.98 kB / 403.9 MB, free: 13.21 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004144/0.2685, allocations: 180.6 kB / 404 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007284/0.2693, allocations: 0.7386 MB / 404.8 MB, free: 12.3 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.523e-06/0.2693, allocations: 11.92 kB / 404.8 MB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.037e-05/0.2693, allocations: 19.98 kB / 404.8 MB, free: 12.27 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.2693, allocations: 4 kB / 404.8 MB, free: 12.26 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.2693, allocations: 0 / 404.8 MB, free: 12.26 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000948/0.2703, allocations: 1.061 MB / 405.9 MB, free: 11.19 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003107/0.2706, allocations: 23.41 kB / 405.9 MB, free: 11.17 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005771/0.2711, allocations: 19.98 kB / 405.9 MB, free: 11.15 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.2713, allocations: 60.55 kB / 406 MB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.816e-05/0.2713, allocations: 31.98 kB / 406 MB, free: 11.06 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001583/0.2729, allocations: 2.724 MB / 408.7 MB, free: 8.707 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2729, allocations: 0 / 408.7 MB, free: 8.707 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001387/0.2743, allocations: 1.088 MB / 409.8 MB, free: 7.617 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.001557/0.2759, allocations: 1.459 MB / 411.3 MB, free: 6.387 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008015/0.2767, allocations: 0.8706 MB / 412.2 MB, free: 5.57 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.538e-05/0.2767, allocations: 91.53 kB / 412.2 MB, free: 5.48 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004121/0.2771, allocations: 481 kB / 412.7 MB, free: 4.98 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006287/0.2834, allocations: 12.11 MB / 424.8 MB, free: 6.57 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01282/0.2962, allocations: 7.634 MB / 432.5 MB, free: 14.87 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004315/0.2967, allocations: 0.7026 MB / 433.2 MB, free: 14.15 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001369/0.298, allocations: 0.6848 MB / 433.8 MB, free: 13.46 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001435/0.2995, allocations: 1.073 MB / 434.9 MB, free: 12.37 MB / 362.7 MB Notification: Performance of SimCode: time 1.783e-06/0.2995, allocations: 0 / 434.9 MB, free: 12.37 MB / 362.7 MB Notification: Performance of Templates: time 0.1563/0.4558, allocations: 68.43 MB / 0.4916 GB, free: 91.84 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/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: 3.7166718570515513]