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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.276/1.276, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008676/0.0008675, allocations: 88.41 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002399/0.0002399, allocations: 11.94 kB / 351.1 MB, free: 15.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2088/0.2091, allocations: 50.41 MB / 401.5 MB, free: 32.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1173/0.3264, allocations: 104.4 MB / 0.4941 GB, free: 8.027 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002496/0.3267, allocations: 71.97 kB / 0.4941 GB, free: 7.957 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7454/1.072, allocations: 219.8 MB / 0.7088 GB, free: 60.26 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.403e-06/1.072, allocations: 0 / 0.7088 GB, free: 60.26 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001857/1.072, allocations: 84.62 kB / 0.7088 GB, free: 60.26 MB / 426.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.009597/1.082, allocations: 6.046 MB / 0.7147 GB, free: 56.88 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/1.082, allocations: 8.562 kB / 0.7147 GB, free: 56.88 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008618/1.083, allocations: 0.7404 MB / 0.7155 GB, free: 56.5 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007246/1.09, allocations: 4.528 MB / 0.7199 GB, free: 55.45 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.101e-05/1.09, allocations: 63.72 kB / 0.72 GB, free: 55.45 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002294/1.09, allocations: 99.84 kB / 0.7201 GB, free: 55.45 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002261/1.093, allocations: 1.533 MB / 0.7215 GB, free: 55.24 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.914e-05/1.093, allocations: 0 / 0.7215 GB, free: 55.24 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001269/1.093, allocations: 36.88 kB / 0.7216 GB, free: 55.24 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.448e-05/1.093, allocations: 40.36 kB / 0.7216 GB, free: 55.24 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00213/1.095, allocations: 1.524 MB / 0.7231 GB, free: 55.23 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009323/1.104, allocations: 5.849 MB / 0.7288 GB, free: 54.38 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001535/1.106, allocations: 1.023 MB / 0.7298 GB, free: 53.94 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05719/1.163, allocations: 71.37 MB / 0.7995 GB, free: 15.95 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001079/1.164, allocations: 0.5737 MB / 0.8001 GB, free: 15.37 MB / 458.7 MB Notification: Performance of pre-optimization done (n=85): time 3.927e-06/1.164, allocations: 3.75 kB / 0.8001 GB, free: 15.37 MB / 458.7 MB Notification: Performance of matching and sorting (n=85): time 0.004334/1.169, allocations: 2.58 MB / 0.8026 GB, free: 12.65 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002838/1.169, allocations: 478.6 kB / 0.8031 GB, free: 12.07 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007919/1.177, allocations: 4.842 MB / 0.8078 GB, free: 7.262 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002699/1.177, allocations: 45.64 kB / 0.8078 GB, free: 7.211 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002581/1.18, allocations: 2.935 MB / 0.8107 GB, free: 4.27 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00041/1.18, allocations: 303.5 kB / 0.811 GB, free: 3.977 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.837e-05/1.18, allocations: 28 kB / 0.811 GB, free: 3.949 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000143/1.18, allocations: 365.8 kB / 0.8114 GB, free: 3.59 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008797/1.181, allocations: 423.6 kB / 0.8118 GB, free: 3.18 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001311/1.183, allocations: 1.2 MB / 0.8129 GB, free: 1.637 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001016/1.184, allocations: 0.5886 MB / 0.8135 GB, free: 1.078 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.225e-05/1.184, allocations: 8 kB / 0.8135 GB, free: 1.07 MB / 458.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004003/1.188, allocations: 2.239 MB / 0.8157 GB, free: 14.9 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.546e-05/1.188, allocations: 20.25 kB / 0.8157 GB, free: 14.88 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001959/1.188, allocations: 164 kB / 0.8159 GB, free: 14.72 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.075e-05/1.188, allocations: 36 kB / 0.8159 GB, free: 14.69 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/1.189, allocations: 371.4 kB / 0.8163 GB, free: 14.32 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.142e-05/1.189, allocations: 43.86 kB / 0.8163 GB, free: 14.28 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002828/1.192, allocations: 202.2 kB / 0.8165 GB, free: 14.08 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000199/1.192, allocations: 120 kB / 0.8166 GB, free: 13.96 MB / 474.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.002134/1.194, allocations: 0.7248 MB / 0.8173 GB, free: 13.23 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001342/1.196, allocations: 0.7217 MB / 0.818 GB, free: 12.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00601/1.202, allocations: 2.269 MB / 0.8202 GB, free: 10.26 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/1.202, allocations: 8 kB / 0.8203 GB, free: 10.25 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/1.202, allocations: 4 kB / 0.8203 GB, free: 10.25 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/1.202, allocations: 3.984 kB / 0.8203 GB, free: 10.24 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007519/1.209, allocations: 3.866 MB / 0.824 GB, free: 6.324 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001752/1.21, allocations: 136 kB / 0.8242 GB, free: 6.191 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007742/1.21, allocations: 171.8 kB / 0.8243 GB, free: 6.023 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.977e-06/1.21, allocations: 4 kB / 0.8243 GB, free: 6.02 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.88e-05/1.211, allocations: 55.98 kB / 0.8244 GB, free: 5.965 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-06/1.211, allocations: 4 kB / 0.8244 GB, free: 5.961 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/1.211, allocations: 0 / 0.8244 GB, free: 5.961 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003754/1.214, allocations: 2.309 MB / 0.8266 GB, free: 3.605 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002075/1.216, allocations: 0.9275 MB / 0.8276 GB, free: 2.641 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005855/1.217, allocations: 19.94 kB / 0.8276 GB, free: 2.621 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001184/1.218, allocations: 51.95 kB / 0.8276 GB, free: 2.57 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002053/1.218, allocations: 108.4 kB / 0.8277 GB, free: 2.465 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001152/1.219, allocations: 71.98 kB / 0.8278 GB, free: 2.395 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.2049/1.423, allocations: 3.687 MB / 0.8314 GB, free: 105.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.82e-07/1.423, allocations: 0 / 0.8314 GB, free: 105.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003225/1.427, allocations: 1.159 MB / 0.8325 GB, free: 105.5 MB / 474.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.001408/1.428, allocations: 1.233 MB / 0.8337 GB, free: 105.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002037/1.43, allocations: 1.464 MB / 0.8352 GB, free: 105.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/1.43, allocations: 8.125 kB / 0.8352 GB, free: 105.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008871/1.431, allocations: 0.7857 MB / 0.8359 GB, free: 104.9 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004215/1.435, allocations: 1.156 MB / 0.8371 GB, free: 104.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0103/1.446, allocations: 9.211 MB / 0.8461 GB, free: 100.6 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001529/1.447, allocations: 2.708 MB / 0.8487 GB, free: 99.83 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002533/1.45, allocations: 0.7353 MB / 0.8494 GB, free: 99.79 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003711/1.45, allocations: 303.2 kB / 0.8497 GB, free: 99.78 MB / 474.7 MB Notification: Performance of SimCode: time 7.82e-07/1.45, allocations: 0 / 0.8497 GB, free: 99.78 MB / 474.7 MB Notification: Performance of Templates: time 0.09521/1.545, allocations: 54.53 MB / 0.903 GB, free: 89.45 MB / 474.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches