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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001926/0.001926, allocations: 103 kB / 17.73 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002455/0.002455, allocations: 188.5 kB / 18.66 MB, free: 4.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.62/2.62, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001233, allocations: 39.94 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3624/0.3636, allocations: 49.44 MB / 401.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02791/0.3916, allocations: 26.71 MB / 428.1 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02978/0.4214, allocations: 22.34 MB / 450.5 MB, free: 7.648 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007539/0.429, allocations: 178.5 kB / 450.6 MB, free: 7.473 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008085/0.4371, allocations: 1.766 MB / 452.4 MB, free: 5.695 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01853/0.4558, allocations: 3.223 MB / 455.6 MB, free: 2.449 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008368/0.4642, allocations: 1.611 MB / 457.2 MB, free: 0.832 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02187/0.4861, allocations: 12.68 MB / 469.9 MB, free: 4.113 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002281/0.4884, allocations: 0.8631 MB / 470.8 MB, free: 3.211 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003789/0.4923, allocations: 2.115 MB / 472.9 MB, free: 1.086 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003719/0.496, allocations: 2.096 MB / 475 MB, free: 14.97 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005334/0.4965, allocations: 132 kB / 475.1 MB, free: 14.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005208/0.5018, allocations: 1.541 MB / 476.7 MB, free: 13.3 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007386/0.5025, allocations: 0.5971 MB / 477.2 MB, free: 12.7 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003376/0.5059, allocations: 2.616 MB / 479.9 MB, free: 10.07 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008558/0.5145, allocations: 6.634 MB / 486.5 MB, free: 3.41 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.5145, allocations: 0 / 486.5 MB, free: 3.41 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.5145, allocations: 0 / 486.5 MB, free: 3.41 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001421/0.5147, allocations: 0 / 486.5 MB, free: 3.41 MB / 398.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.01046/0.5252, allocations: 6.666 MB / 493.2 MB, free: 12.64 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.633e-05/0.5252, allocations: 8.031 kB / 493.2 MB, free: 12.64 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001101/0.5263, allocations: 0.7448 MB / 493.9 MB, free: 11.88 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008238/0.5346, allocations: 4.59 MB / 498.5 MB, free: 7.203 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.963e-05/0.5347, allocations: 73.94 kB / 498.6 MB, free: 7.129 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002479/0.535, allocations: 107.8 kB / 498.7 MB, free: 7.023 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002317/0.5373, allocations: 1.301 MB / 500 MB, free: 5.707 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.224e-05/0.5373, allocations: 0 / 500 MB, free: 5.707 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001131/0.5374, allocations: 39.94 kB / 0.4883 GB, free: 5.668 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.216e-05/0.5375, allocations: 39.97 kB / 0.4883 GB, free: 5.629 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002482/0.54, allocations: 1.484 MB / 0.4898 GB, free: 4.145 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01112/0.5511, allocations: 5.613 MB / 0.4953 GB, free: 14.44 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001709/0.5529, allocations: 0.985 MB / 0.4962 GB, free: 13.45 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001607/0.5545, allocations: 1.22 MB / 0.4974 GB, free: 12.23 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2956/0.8501, allocations: 59.79 MB / 0.5558 GB, free: 118 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008285/0.851, allocations: 0.559 MB / 0.5564 GB, free: 117.7 MB / 462.1 MB Notification: Performance of pre-optimization done (n=85): time 2.815e-06/0.851, allocations: 0 / 0.5564 GB, free: 117.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=85): time 0.002771/0.8538, allocations: 1.881 MB / 0.5582 GB, free: 117.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.43e-05/0.8538, allocations: 61.69 kB / 0.5583 GB, free: 117.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004721/0.8585, allocations: 5.589 MB / 0.5637 GB, free: 113.9 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001015/0.8587, allocations: 37.7 kB / 0.5638 GB, free: 113.8 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001496/0.8602, allocations: 2.944 MB / 0.5666 GB, free: 110.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002133/0.8604, allocations: 298.1 kB / 0.5669 GB, free: 110.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003794/0.8608, allocations: 422.5 kB / 0.5673 GB, free: 110.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.064e-05/0.8608, allocations: 304.6 kB / 0.5676 GB, free: 109.9 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007207/0.8615, allocations: 403.4 kB / 0.568 GB, free: 109.5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009419/0.8625, allocations: 1.094 MB / 0.5691 GB, free: 108.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001646/0.8642, allocations: 1.61 MB / 0.5706 GB, free: 106.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.628e-06/0.8642, allocations: 4 kB / 0.5706 GB, free: 106.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.0032/0.8674, allocations: 2.212 MB / 0.5728 GB, free: 104 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.948e-05/0.8674, allocations: 19.94 kB / 0.5728 GB, free: 104 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001987/0.8676, allocations: 164 kB / 0.573 GB, free: 103.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.55e-05/0.8677, allocations: 32 kB / 0.573 GB, free: 103.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001347/0.869, allocations: 362 kB / 0.5733 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.472e-05/0.8691, allocations: 54.77 kB / 0.5734 GB, free: 103.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002316/0.8714, allocations: 186 kB / 0.5736 GB, free: 103.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001852/0.8716, allocations: 124 kB / 0.5737 GB, free: 103.1 MB / 462.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.001363/0.873, allocations: 0.7119 MB / 0.5744 GB, free: 102.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007875/0.8738, allocations: 0.714 MB / 0.5751 GB, free: 101.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004423/0.8782, allocations: 2.148 MB / 0.5772 GB, free: 99.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.021e-05/0.8782, allocations: 8 kB / 0.5772 GB, free: 99.59 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.8782, allocations: 0 / 0.5772 GB, free: 99.59 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/0.8783, allocations: 7.984 kB / 0.5772 GB, free: 99.59 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005625/0.8839, allocations: 3.604 MB / 0.5807 GB, free: 95.94 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001771/0.8841, allocations: 144 kB / 0.5809 GB, free: 95.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008693/0.885, allocations: 147.8 kB / 0.581 GB, free: 95.65 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.416e-06/0.885, allocations: 4 kB / 0.581 GB, free: 95.65 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001082/0.8851, allocations: 60 kB / 0.5811 GB, free: 95.59 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.131e-06/0.8851, allocations: 4 kB / 0.5811 GB, free: 95.59 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.8851, allocations: 3.984 kB / 0.5811 GB, free: 95.58 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003329/0.8885, allocations: 2.153 MB / 0.5832 GB, free: 93.39 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001343/0.8898, allocations: 0.8239 MB / 0.584 GB, free: 92.54 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004402/0.8903, allocations: 15.94 kB / 0.584 GB, free: 92.53 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000953/0.8912, allocations: 39.14 kB / 0.584 GB, free: 92.49 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001681/0.8914, allocations: 100.5 kB / 0.5841 GB, free: 92.39 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.34e-05/0.8915, allocations: 68 kB / 0.5842 GB, free: 92.33 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003568/0.8951, allocations: 3.604 MB / 0.5877 GB, free: 88.75 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.8951, allocations: 0 / 0.5877 GB, free: 88.75 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001918/0.897, allocations: 1.075 MB / 0.5888 GB, free: 87.72 MB / 462.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.001234/0.8983, allocations: 1.18 MB / 0.5899 GB, free: 86.59 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001894/0.9002, allocations: 1.432 MB / 0.5913 GB, free: 85.11 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.9002, allocations: 0 / 0.5913 GB, free: 85.11 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008276/0.901, allocations: 0.7706 MB / 0.5921 GB, free: 84.29 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004106/0.9051, allocations: 1.176 MB / 0.5932 GB, free: 83.12 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008523/0.9137, allocations: 8.188 MB / 0.6012 GB, free: 74.89 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001131/0.9148, allocations: 2.592 MB / 0.6037 GB, free: 72.28 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005029/0.9153, allocations: 295.4 kB / 0.604 GB, free: 71.99 MB / 462.1 MB Notification: Performance of SimCode: time 6.21e-07/0.9154, allocations: 0 / 0.604 GB, free: 71.99 MB / 462.1 MB Notification: Performance of Templates: time 0.5907/1.506, allocations: 71.49 MB / 0.6738 GB, free: 0.8125 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches