Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001056/0.001056, allocations: 200.6 kB / 17.38 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 226.5 MB / 244.7 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007811/0.000781, allocations: 100.5 kB / 296.8 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003682/0.0003683, allocations: 4 kB / 356.7 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.293/0.2934, allocations: 51.3 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01446/0.3079, allocations: 23.76 MB / 431.8 MB, free: 3.875 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02418/0.3321, allocations: 20.54 MB / 452.3 MB, free: 15.3 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004025/0.3362, allocations: 59.62 kB / 452.4 MB, free: 15.24 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004493/0.3407, allocations: 1.282 MB / 453.7 MB, free: 13.95 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01058/0.3513, allocations: 2.624 MB / 456.3 MB, free: 11.3 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004886/0.3563, allocations: 1.249 MB / 457.5 MB, free: 10.05 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01884/0.3751, allocations: 11.98 MB / 469.5 MB, free: 14.04 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002225/0.3774, allocations: 0.822 MB / 470.3 MB, free: 13.18 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003373/0.3808, allocations: 1.811 MB / 472.2 MB, free: 11.36 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00333/0.3842, allocations: 1.918 MB / 474.1 MB, free: 9.434 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000698/0.3849, allocations: 76 kB / 474.1 MB, free: 9.359 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004828/0.3897, allocations: 1.373 MB / 475.5 MB, free: 7.984 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007043/0.3905, allocations: 0.5039 MB / 476 MB, free: 7.477 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003712/0.3942, allocations: 2.436 MB / 478.5 MB, free: 5.02 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005004/0.3992, allocations: 4.778 MB / 483.2 MB, free: 232 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.3993, allocations: 8 kB / 483.2 MB, free: 224 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.3993, allocations: 0 / 483.2 MB, free: 224 kB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001587/0.3994, allocations: 0 / 483.2 MB, free: 224 kB / 346.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.007978/0.4074, allocations: 5.788 MB / 489 MB, free: 10.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.4075, allocations: 8.031 kB / 489 MB, free: 10.33 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000793/0.4083, allocations: 0.7449 MB / 489.8 MB, free: 9.578 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006864/0.4151, allocations: 4.64 MB / 494.4 MB, free: 4.848 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.918e-05/0.4152, allocations: 70 kB / 494.5 MB, free: 4.777 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002158/0.4154, allocations: 95.91 kB / 494.6 MB, free: 4.684 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002213/0.4177, allocations: 1.313 MB / 495.9 MB, free: 3.355 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.4177, allocations: 0 / 495.9 MB, free: 3.355 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001178/0.4178, allocations: 36 kB / 495.9 MB, free: 3.32 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-05/0.4179, allocations: 47.95 kB / 496 MB, free: 3.273 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002525/0.4204, allocations: 1.519 MB / 497.5 MB, free: 1.75 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009219/0.4296, allocations: 5.663 MB / 0.4914 GB, free: 12 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001666/0.4313, allocations: 1.016 MB / 0.4924 GB, free: 10.97 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001589/0.4329, allocations: 1.239 MB / 0.4936 GB, free: 9.73 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2121/0.645, allocations: 61.1 MB / 0.5532 GB, free: 42.64 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008578/0.6459, allocations: 0.5802 MB / 0.5538 GB, free: 42.06 MB / 378.7 MB Notification: Performance of pre-optimization done (n=85): time 3.146e-06/0.6459, allocations: 0 / 0.5538 GB, free: 42.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=85): time 0.002782/0.6487, allocations: 1.931 MB / 0.5557 GB, free: 40.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.192e-05/0.6488, allocations: 67.97 kB / 0.5558 GB, free: 40.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004964/0.6538, allocations: 5.52 MB / 0.5612 GB, free: 34.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.006e-05/0.6539, allocations: 41.7 kB / 0.5612 GB, free: 34.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001582/0.6554, allocations: 2.938 MB / 0.5641 GB, free: 31.98 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001877/0.6556, allocations: 299 kB / 0.5643 GB, free: 31.69 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.407e-05/0.6557, allocations: 32 kB / 0.5644 GB, free: 31.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.17e-05/0.6558, allocations: 365.9 kB / 0.5647 GB, free: 31.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007121/0.6565, allocations: 415.6 kB / 0.5651 GB, free: 30.89 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008826/0.6574, allocations: 1.105 MB / 0.5662 GB, free: 29.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001707/0.6591, allocations: 1.661 MB / 0.5678 GB, free: 27.56 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-05/0.6592, allocations: 11.38 kB / 0.5678 GB, free: 27.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002905/0.6621, allocations: 2.236 MB / 0.57 GB, free: 25.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.655e-05/0.6621, allocations: 16 kB / 0.57 GB, free: 25.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001951/0.6623, allocations: 160 kB / 0.5702 GB, free: 25.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.654e-05/0.6623, allocations: 36 kB / 0.5702 GB, free: 25.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.6634, allocations: 368.1 kB / 0.5706 GB, free: 24.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.728e-05/0.6634, allocations: 47.8 kB / 0.5706 GB, free: 24.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001553/0.665, allocations: 190.2 kB / 0.5708 GB, free: 24.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001531/0.6651, allocations: 129.9 kB / 0.5709 GB, free: 24.39 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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00122/0.6664, allocations: 0.7136 MB / 0.5716 GB, free: 23.67 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005407/0.6669, allocations: 0.7178 MB / 0.5723 GB, free: 22.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004403/0.6713, allocations: 2.195 MB / 0.5745 GB, free: 20.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.6714, allocations: 4 kB / 0.5745 GB, free: 20.77 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.6714, allocations: 4 kB / 0.5745 GB, free: 20.76 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.6714, allocations: 7.984 kB / 0.5745 GB, free: 20.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004522/0.6759, allocations: 3.655 MB / 0.578 GB, free: 17.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001321/0.6761, allocations: 136 kB / 0.5782 GB, free: 16.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006819/0.6768, allocations: 159.9 kB / 0.5783 GB, free: 16.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.55e-06/0.6768, allocations: 4 kB / 0.5783 GB, free: 16.76 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.152e-05/0.6769, allocations: 66.3 kB / 0.5784 GB, free: 16.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.671e-06/0.6769, allocations: 7.938 kB / 0.5784 GB, free: 16.69 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.6769, allocations: 0 / 0.5784 GB, free: 16.69 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00267/0.6795, allocations: 2.214 MB / 0.5806 GB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001051/0.6806, allocations: 0.8163 MB / 0.5814 GB, free: 13.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004558/0.6811, allocations: 12 kB / 0.5814 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/0.6821, allocations: 43.97 kB / 0.5814 GB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00019/0.6823, allocations: 104.5 kB / 0.5815 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001082/0.6824, allocations: 67.98 kB / 0.5816 GB, free: 13.38 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003721/0.6862, allocations: 3.545 MB / 0.585 GB, free: 9.863 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.6862, allocations: 0 / 0.585 GB, free: 9.863 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002008/0.6882, allocations: 1.071 MB / 0.5861 GB, free: 8.832 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001387/0.6896, allocations: 1.173 MB / 0.5872 GB, free: 7.906 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002072/0.6917, allocations: 1.467 MB / 0.5887 GB, free: 6.398 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.6917, allocations: 4 kB / 0.5887 GB, free: 6.395 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009147/0.6926, allocations: 0.7825 MB / 0.5894 GB, free: 5.566 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004814/0.6974, allocations: 1.12 MB / 0.5905 GB, free: 4.449 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0105/0.708, allocations: 9.28 MB / 0.5996 GB, free: 11.12 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001891/0.7099, allocations: 2.6 MB / 0.6021 GB, free: 8.492 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006113/0.7105, allocations: 291.4 kB / 0.6024 GB, free: 8.207 MB / 394.7 MB Notification: Performance of SimCode: time 7.51e-07/0.7105, allocations: 0 / 0.6024 GB, free: 8.207 MB / 394.7 MB Notification: Performance of Templates: time 0.09774/0.8083, allocations: 69.58 MB / 0.6704 GB, free: 2.738 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches