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.001315/0.001315, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 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.001449/0.001449, allocations: 209 kB / 24.48 MB, free: 3.938 MB / 14.72 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 1.472/1.472, allocations: 230.6 MB / 258.2 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001676/0.001676, allocations: 47.92 kB / 379 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2528, allocations: 53.37 MB / 432.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02447/0.2773, allocations: 22.24 MB / 454.6 MB, free: 400 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03001/0.3073, allocations: 19.56 MB / 474.1 MB, free: 12.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005773/0.313, allocations: 269.1 kB / 474.4 MB, free: 12.49 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005229/0.3183, allocations: 1.673 MB / 476.1 MB, free: 10.81 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01192/0.3302, allocations: 3.314 MB / 479.4 MB, free: 7.469 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006025/0.3362, allocations: 1.601 MB / 481 MB, free: 5.867 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02126/0.3575, allocations: 12.9 MB / 493.9 MB, free: 8.926 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001585/0.3591, allocations: 0.4886 MB / 494.4 MB, free: 8.402 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003959/0.363, allocations: 2.205 MB / 496.6 MB, free: 6.188 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003848/0.3669, allocations: 2.014 MB / 498.6 MB, free: 4.16 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007657/0.3676, allocations: 136 kB / 498.7 MB, free: 4.027 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00567/0.3733, allocations: 1.264 MB / 500 MB, free: 2.762 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001013/0.3743, allocations: 0.601 MB / 0.4889 GB, free: 2.156 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003736/0.378, allocations: 1.929 MB / 0.4907 GB, free: 220 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01159/0.3896, allocations: 6.742 MB / 0.4973 GB, free: 9.441 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.696e-05/0.3897, allocations: 4 kB / 0.4973 GB, free: 9.438 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.845e-06/0.3897, allocations: 0 / 0.4973 GB, free: 9.438 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002551/0.3899, allocations: 0 / 0.4973 GB, free: 9.438 MB / 414.1 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.01314/0.4031, allocations: 6.851 MB / 0.504 GB, free: 2.504 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.4031, allocations: 8.031 kB / 0.504 GB, free: 2.496 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001291/0.4044, allocations: 0.7764 MB / 0.5048 GB, free: 1.715 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009204/0.4136, allocations: 4.375 MB / 0.5091 GB, free: 13.22 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.01e-05/0.4137, allocations: 66 kB / 0.5091 GB, free: 13.15 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003781/0.4141, allocations: 111.8 kB / 0.5092 GB, free: 13.04 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002441/0.4165, allocations: 1.309 MB / 0.5105 GB, free: 11.72 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.59e-05/0.4165, allocations: 0 / 0.5105 GB, free: 11.72 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001129/0.4166, allocations: 39.98 kB / 0.5105 GB, free: 11.68 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.465e-05/0.4167, allocations: 35.98 kB / 0.5106 GB, free: 11.64 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0027/0.4194, allocations: 1.484 MB / 0.512 GB, free: 10.16 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01139/0.4308, allocations: 5.128 MB / 0.517 GB, free: 4.969 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002095/0.4329, allocations: 0.8796 MB / 0.5179 GB, free: 4.074 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001848/0.4347, allocations: 1.056 MB / 0.5189 GB, free: 3.02 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2935/0.7282, allocations: 27.06 MB / 0.5453 GB, free: 103.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009612/0.7291, allocations: 0.5548 MB / 0.5459 GB, free: 103.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 3.997e-06/0.7291, allocations: 3 kB / 0.5459 GB, free: 103.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.003609/0.7328, allocations: 1.914 MB / 0.5478 GB, free: 102.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.832e-05/0.7328, allocations: 60.06 kB / 0.5478 GB, free: 102.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006006/0.7388, allocations: 5.633 MB / 0.5533 GB, free: 96.99 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002074/0.739, allocations: 41.7 kB / 0.5534 GB, free: 96.95 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001748/0.7408, allocations: 2.97 MB / 0.5563 GB, free: 94.05 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000306/0.7411, allocations: 308.3 kB / 0.5565 GB, free: 93.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000414/0.7415, allocations: 427 kB / 0.557 GB, free: 93.38 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.372e-05/0.7415, allocations: 309 kB / 0.5573 GB, free: 93.07 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007404/0.7423, allocations: 399.8 kB / 0.5576 GB, free: 92.68 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008947/0.7432, allocations: 1.092 MB / 0.5587 GB, free: 91.27 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001685/0.7448, allocations: 1.606 MB / 0.5603 GB, free: 89.38 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.039e-05/0.7449, allocations: 8 kB / 0.5603 GB, free: 89.37 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003164/0.748, allocations: 2.243 MB / 0.5625 GB, free: 87.14 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.89e-05/0.748, allocations: 19.94 kB / 0.5625 GB, free: 87.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001692/0.7482, allocations: 157.3 kB / 0.5626 GB, free: 86.97 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.238e-05/0.7483, allocations: 36 kB / 0.5627 GB, free: 86.94 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/0.7493, allocations: 357.2 kB / 0.563 GB, free: 86.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.771e-05/0.7493, allocations: 52.97 kB / 0.5631 GB, free: 86.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002158/0.7515, allocations: 187.2 kB / 0.5632 GB, free: 86.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001775/0.7517, allocations: 131.6 kB / 0.5634 GB, free: 86.27 MB / 446.1 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.001295/0.7529, allocations: 0.7107 MB / 0.5641 GB, free: 85.57 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000916/0.7539, allocations: 0.753 MB / 0.5648 GB, free: 84.81 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003602/0.7575, allocations: 2.159 MB / 0.5669 GB, free: 82.76 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.949e-06/0.7575, allocations: 8 kB / 0.5669 GB, free: 82.75 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.7575, allocations: 0 / 0.5669 GB, free: 82.75 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.7575, allocations: 3.984 kB / 0.5669 GB, free: 82.75 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004945/0.7624, allocations: 3.356 MB / 0.5702 GB, free: 79.37 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001452/0.7626, allocations: 143 kB / 0.5703 GB, free: 79.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006724/0.7633, allocations: 155.8 kB / 0.5705 GB, free: 79.08 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.226e-06/0.7633, allocations: 4 kB / 0.5705 GB, free: 79.07 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.596e-05/0.7633, allocations: 60 kB / 0.5705 GB, free: 79.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/0.7633, allocations: 4 kB / 0.5705 GB, free: 79.01 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.7633, allocations: 0 / 0.5705 GB, free: 79.01 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002963/0.7663, allocations: 2.198 MB / 0.5727 GB, free: 76.79 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001597/0.7679, allocations: 0.7782 MB / 0.5734 GB, free: 76.01 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005518/0.7685, allocations: 16 kB / 0.5735 GB, free: 75.99 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001104/0.7696, allocations: 35.95 kB / 0.5735 GB, free: 75.96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001794/0.7697, allocations: 100.6 kB / 0.5736 GB, free: 75.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/0.7698, allocations: 67.98 kB / 0.5737 GB, free: 75.79 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004209/0.7741, allocations: 3.608 MB / 0.5772 GB, free: 72.21 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7741, allocations: 0 / 0.5772 GB, free: 72.21 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002251/0.7763, allocations: 1.09 MB / 0.5782 GB, free: 71.19 MB / 446.1 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.001399/0.7777, allocations: 1.182 MB / 0.5794 GB, free: 70.07 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002035/0.7797, allocations: 1.359 MB / 0.5807 GB, free: 68.67 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/0.7797, allocations: 4.062 kB / 0.5807 GB, free: 68.67 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008862/0.7806, allocations: 0.7397 MB / 0.5815 GB, free: 67.88 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00476/0.7854, allocations: 1.176 MB / 0.5826 GB, free: 66.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009801/0.7952, allocations: 8.367 MB / 0.5908 GB, free: 58.29 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001327/0.7965, allocations: 2.105 MB / 0.5928 GB, free: 56.16 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006119/0.7971, allocations: 291.4 kB / 0.5931 GB, free: 55.88 MB / 446.1 MB Notification: Performance of SimCode: time 1.714e-06/0.7971, allocations: 0 / 0.5931 GB, free: 55.88 MB / 446.1 MB Notification: Performance of Templates: time 0.09232/0.8895, allocations: 73.74 MB / 0.6651 GB, free: 14.43 MB / 478.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.689496238250285]