Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009025/0.0009072, allocations: 187.8 kB / 18.04 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.267/1.267, allocations: 205.4 MB / 224.2 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007172/0.0007172, allocations: 86.3 kB / 272.5 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002955/0.0002956, allocations: 8 kB / 329.4 MB, free: 15.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1904/0.1907, allocations: 47.58 MB / 377 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1047/0.2955, allocations: 102.5 MB / 479.5 MB, free: 9.973 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002239/0.2957, allocations: 71.97 kB / 479.6 MB, free: 9.902 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6592/0.955, allocations: 189.6 MB / 0.6535 GB, free: 51.98 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.955, allocations: 0 / 0.6535 GB, free: 51.98 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002966/0.9553, allocations: 86.56 kB / 0.6536 GB, free: 51.98 MB / 410.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.009154/0.9645, allocations: 5.994 MB / 0.6594 GB, free: 48.95 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.9645, allocations: 10.06 kB / 0.6594 GB, free: 48.95 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009874/0.9655, allocations: 0.7522 MB / 0.6602 GB, free: 48.56 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006861/0.9724, allocations: 4.909 MB / 0.665 GB, free: 47.17 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.496e-05/0.9725, allocations: 69 kB / 0.665 GB, free: 47.17 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002116/0.9727, allocations: 108.3 kB / 0.6651 GB, free: 47.16 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00212/0.9748, allocations: 1.532 MB / 0.6666 GB, free: 46.95 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.104e-05/0.9748, allocations: 0 / 0.6666 GB, free: 46.95 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001199/0.975, allocations: 41 kB / 0.6667 GB, free: 46.95 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.942e-05/0.975, allocations: 41.42 kB / 0.6667 GB, free: 46.95 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002186/0.9772, allocations: 1.524 MB / 0.6682 GB, free: 46.94 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009359/0.9866, allocations: 5.821 MB / 0.6739 GB, free: 46.16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001854/0.9885, allocations: 1.03 MB / 0.6749 GB, free: 46.12 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001609/0.9901, allocations: 1.237 MB / 0.6761 GB, free: 46.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05424/1.044, allocations: 71.13 MB / 0.7455 GB, free: 25.5 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008697/1.045, allocations: 0.5844 MB / 0.7461 GB, free: 25.45 MB / 442.7 MB Notification: Performance of pre-optimization done (n=85): time 2.535e-06/1.045, allocations: 0 / 0.7461 GB, free: 25.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=85): time 0.003101/1.048, allocations: 1.951 MB / 0.748 GB, free: 25.02 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001766/1.049, allocations: 487.1 kB / 0.7485 GB, free: 24.46 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006464/1.055, allocations: 5.748 MB / 0.7541 GB, free: 23.97 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001407/1.055, allocations: 49.61 kB / 0.7541 GB, free: 23.94 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001843/1.057, allocations: 2.937 MB / 0.757 GB, free: 23.52 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002545/1.057, allocations: 303.8 kB / 0.7573 GB, free: 23.34 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.084e-05/1.057, allocations: 26.69 kB / 0.7573 GB, free: 23.34 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001178/1.057, allocations: 364.2 kB / 0.7577 GB, free: 23.04 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007367/1.058, allocations: 421.9 kB / 0.7581 GB, free: 23.03 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000975/1.059, allocations: 1.207 MB / 0.7593 GB, free: 22.04 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001838/1.061, allocations: 1.659 MB / 0.7609 GB, free: 20.99 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.244e-05/1.061, allocations: 10.91 kB / 0.7609 GB, free: 20.98 MB / 442.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00418/1.065, allocations: 2.253 MB / 0.7631 GB, free: 20.23 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.795e-05/1.065, allocations: 13.97 kB / 0.7631 GB, free: 20.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001976/1.066, allocations: 165.3 kB / 0.7633 GB, free: 20.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.758e-05/1.066, allocations: 36.88 kB / 0.7633 GB, free: 20.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001037/1.067, allocations: 365.2 kB / 0.7636 GB, free: 20.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.581e-05/1.067, allocations: 59.41 kB / 0.7637 GB, free: 20.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002862/1.07, allocations: 199 kB / 0.7639 GB, free: 20.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002078/1.07, allocations: 123.2 kB / 0.764 GB, free: 20.09 MB / 442.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.002179/1.072, allocations: 0.7256 MB / 0.7647 GB, free: 19.64 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001031/1.073, allocations: 0.7204 MB / 0.7654 GB, free: 19.27 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005015/1.078, allocations: 2.218 MB / 0.7676 GB, free: 18.63 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/1.078, allocations: 7.812 kB / 0.7676 GB, free: 18.63 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/1.078, allocations: 3.938 kB / 0.7676 GB, free: 18.62 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/1.078, allocations: 3.656 kB / 0.7676 GB, free: 18.62 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006271/1.084, allocations: 3.86 MB / 0.7714 GB, free: 16.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001562/1.085, allocations: 138.4 kB / 0.7715 GB, free: 16.53 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007003/1.085, allocations: 166.9 kB / 0.7717 GB, free: 16.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/1.085, allocations: 3.938 kB / 0.7717 GB, free: 16.4 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.296e-05/1.085, allocations: 65.55 kB / 0.7717 GB, free: 16.34 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.668e-06/1.085, allocations: 4 kB / 0.7717 GB, free: 16.34 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/1.085, allocations: 0 / 0.7717 GB, free: 16.34 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003043/1.088, allocations: 2.222 MB / 0.7739 GB, free: 14.22 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00146/1.09, allocations: 0.9224 MB / 0.7748 GB, free: 13.35 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006351/1.091, allocations: 23.78 kB / 0.7748 GB, free: 13.33 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001259/1.092, allocations: 51.11 kB / 0.7749 GB, free: 13.29 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001949/1.092, allocations: 105 kB / 0.775 GB, free: 13.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001107/1.092, allocations: 64 kB / 0.775 GB, free: 13.15 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00447/1.097, allocations: 3.712 MB / 0.7787 GB, free: 10.12 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.097, allocations: 4 kB / 0.7787 GB, free: 10.11 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002377/1.099, allocations: 1.18 MB / 0.7798 GB, free: 8.949 MB / 442.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.001737/1.101, allocations: 1.244 MB / 0.781 GB, free: 8.078 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002493/1.103, allocations: 1.472 MB / 0.7825 GB, free: 6.75 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/1.103, allocations: 3.281 kB / 0.7825 GB, free: 6.75 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001107/1.104, allocations: 0.7886 MB / 0.7832 GB, free: 5.973 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004042/1.108, allocations: 0.9538 MB / 0.7842 GB, free: 5.164 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01541/1.124, allocations: 9.548 MB / 0.7935 GB, free: 13.04 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00189/1.126, allocations: 2.604 MB / 0.796 GB, free: 11.1 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002587/1.128, allocations: 0.7303 MB / 0.7968 GB, free: 10.58 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000457/1.129, allocations: 311.3 kB / 0.797 GB, free: 10.28 MB / 458.7 MB Notification: Performance of SimCode: time 6.11e-07/1.129, allocations: 0 / 0.797 GB, free: 10.28 MB / 458.7 MB Notification: Performance of Templates: time 0.2629/1.392, allocations: 58.22 MB / 0.8539 GB, free: 89.75 MB / 458.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches