Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.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.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009983/0.0009984, allocations: 181.1 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.313/1.313, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.000844/0.0008439, allocations: 102.1 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002632/0.0002632, allocations: 11.92 kB / 351.1 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2288/0.2291, allocations: 50.39 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1152/0.3444, allocations: 103.9 MB / 0.4936 GB, free: 8.52 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/0.3447, allocations: 71.97 kB / 0.4936 GB, free: 8.449 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3534/0.6981, allocations: 99.4 MB / 0.5907 GB, free: 21.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.6981, allocations: 0 / 0.5907 GB, free: 21.61 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.392e-05/0.6982, allocations: 24 kB / 0.5907 GB, free: 21.59 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003382/0.7016, allocations: 1.953 MB / 0.5926 GB, free: 19.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.7016, allocations: 12.03 kB / 0.5926 GB, free: 19.56 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002359/0.7019, allocations: 189.7 kB / 0.5928 GB, free: 19.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001713/0.7036, allocations: 1.217 MB / 0.594 GB, free: 18.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.142e-05/0.7036, allocations: 21.25 kB / 0.594 GB, free: 18.07 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.146e-05/0.7037, allocations: 28 kB / 0.5941 GB, free: 18.04 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008014/0.7045, allocations: 0.5103 MB / 0.5946 GB, free: 17.52 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.7045, allocations: 0 / 0.5946 GB, free: 17.52 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.425e-05/0.7046, allocations: 12 kB / 0.5946 GB, free: 17.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.172e-05/0.7046, allocations: 8 kB / 0.5946 GB, free: 17.5 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009077/0.7055, allocations: 0.5059 MB / 0.5951 GB, free: 16.99 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002358/0.7079, allocations: 1.658 MB / 0.5967 GB, free: 15.26 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007855/0.7087, allocations: 420.8 kB / 0.5971 GB, free: 14.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0147/0.7234, allocations: 18.05 MB / 0.6147 GB, free: 10.21 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006055/0.724, allocations: 283 kB / 0.615 GB, free: 9.918 MB / 394.7 MB Notification: Performance of pre-optimization done (n=29): time 2.786e-06/0.724, allocations: 0 / 0.615 GB, free: 9.918 MB / 394.7 MB Notification: Performance of matching and sorting (n=29): time 0.002207/0.7262, allocations: 0.8809 MB / 0.6158 GB, free: 9.008 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/0.7264, allocations: 166.2 kB / 0.616 GB, free: 8.809 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001698/0.7281, allocations: 1.223 MB / 0.6172 GB, free: 7.555 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.803e-05/0.7281, allocations: 33.7 kB / 0.6172 GB, free: 7.516 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005846/0.7287, allocations: 0.7187 MB / 0.6179 GB, free: 6.793 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.322e-05/0.7288, allocations: 90.75 kB / 0.618 GB, free: 6.703 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.869e-05/0.7289, allocations: 12 kB / 0.618 GB, free: 6.691 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.796e-05/0.729, allocations: 329.9 kB / 0.6183 GB, free: 6.363 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004351/0.7294, allocations: 173 kB / 0.6185 GB, free: 6.191 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005501/0.73, allocations: 403.8 kB / 0.6189 GB, free: 5.699 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005066/0.7305, allocations: 234.2 kB / 0.6191 GB, free: 5.473 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.7305, allocations: 0 / 0.6191 GB, free: 5.473 MB / 394.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001437/0.7319, allocations: 0.7836 MB / 0.6199 GB, free: 4.68 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.732, allocations: 8.844 kB / 0.6199 GB, free: 4.672 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.749e-05/0.732, allocations: 43.98 kB / 0.6199 GB, free: 4.629 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003073/0.7323, allocations: 136.8 kB / 0.6201 GB, free: 4.492 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004156/0.7328, allocations: 115.8 kB / 0.6202 GB, free: 4.379 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005729/0.7334, allocations: 0.6812 MB / 0.6208 GB, free: 3.672 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006195/0.734, allocations: 83.39 kB / 0.6209 GB, free: 3.59 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.119e-05/0.7341, allocations: 39.98 kB / 0.621 GB, free: 3.551 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0004339/0.7345, allocations: 274.3 kB / 0.6212 GB, free: 3.273 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000159/0.7347, allocations: 185.8 kB / 0.6214 GB, free: 3.09 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001909/0.7366, allocations: 0.8251 MB / 0.6222 GB, free: 2.258 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.7366, allocations: 4 kB / 0.6222 GB, free: 2.254 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.7366, allocations: 0 / 0.6222 GB, free: 2.254 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.7366, allocations: 0 / 0.6222 GB, free: 2.254 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00219/0.7388, allocations: 1.376 MB / 0.6235 GB, free: 0.8086 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.808e-05/0.7389, allocations: 39.98 kB / 0.6236 GB, free: 0.7695 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002625/0.7391, allocations: 55.89 kB / 0.6236 GB, free: 0.7148 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002299/0.7394, allocations: 124.9 kB / 0.6238 GB, free: 0.5898 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.137e-05/0.7394, allocations: 23.98 kB / 0.6238 GB, free: 0.5664 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005151/0.74, allocations: 0.6694 MB / 0.6244 GB, free: 15.87 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.74, allocations: 0 / 0.6244 GB, free: 15.87 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00123/0.7412, allocations: 0.7819 MB / 0.6252 GB, free: 15.04 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004433/0.7417, allocations: 274.8 kB / 0.6255 GB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001397/0.7418, allocations: 11.98 kB / 0.6255 GB, free: 14.74 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004533/0.7423, allocations: 47.92 kB / 0.6255 GB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/0.7424, allocations: 39.94 kB / 0.6256 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.495e-05/0.7425, allocations: 24 kB / 0.6256 GB, free: 14.63 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001118/0.7436, allocations: 0.9453 MB / 0.6265 GB, free: 13.67 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.7436, allocations: 0 / 0.6265 GB, free: 13.67 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001088/0.7447, allocations: 355.7 kB / 0.6268 GB, free: 13.32 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001202/0.7459, allocations: 0.6191 MB / 0.6274 GB, free: 12.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00147/0.7474, allocations: 0.5474 MB / 0.628 GB, free: 12.14 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.7474, allocations: 0 / 0.628 GB, free: 12.14 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006863/0.7481, allocations: 311.5 kB / 0.6283 GB, free: 11.82 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001268/0.7494, allocations: 287.6 kB / 0.6286 GB, free: 11.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003583/0.753, allocations: 2.497 MB / 0.631 GB, free: 9.004 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006211/0.7536, allocations: 1.18 MB / 0.6321 GB, free: 7.793 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005989/0.7542, allocations: 178.5 kB / 0.6323 GB, free: 7.613 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000146/0.7544, allocations: 75.44 kB / 0.6324 GB, free: 7.539 MB / 410.7 MB Notification: Performance of SimCode: time 1.262e-06/0.7544, allocations: 0 / 0.6324 GB, free: 7.539 MB / 410.7 MB Notification: Performance of Templates: time 0.03/0.7844, allocations: 18.74 MB / 0.6507 GB, free: 4.965 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches