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.001868/0.001868, allocations: 175.6 kB / 13.63 MB, free: 1.684 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.368/1.368, allocations: 221.4 MB / 235.5 MB, free: 2.875 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008157/0.0008156, allocations: 94.06 kB / 286.5 MB, free: 164 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.246e-05/2.25e-05, allocations: 0 / 343.8 MB, free: 4.305 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09613/0.09617, allocations: 50.42 MB / 394.2 MB, free: 1.848 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3125/0.4087, allocations: 103.8 MB / 498.1 MB, free: 15.66 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002116/0.409, allocations: 75.78 kB / 498.2 MB, free: 15.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3969/0.8059, allocations: 99.33 MB / 0.5835 GB, free: 104.2 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.8059, allocations: 0 / 0.5835 GB, free: 104.2 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.63e-05/0.806, allocations: 19.5 kB / 0.5835 GB, free: 104.2 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.002745/0.8087, allocations: 1.603 MB / 0.5851 GB, free: 103.2 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.8088, allocations: 15.53 kB / 0.5851 GB, free: 103.2 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002039/0.809, allocations: 192.7 kB / 0.5853 GB, free: 103.1 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001617/0.8106, allocations: 1.204 MB / 0.5864 GB, free: 102.4 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.391e-05/0.8106, allocations: 18.88 kB / 0.5865 GB, free: 102.4 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.736e-05/0.8107, allocations: 24.91 kB / 0.5865 GB, free: 102.4 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006406/0.8114, allocations: 451.6 kB / 0.5869 GB, free: 102.2 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.8114, allocations: 0 / 0.5869 GB, free: 102.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.762e-05/0.8114, allocations: 17.44 kB / 0.5869 GB, free: 102.2 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.366e-05/0.8115, allocations: 6.938 kB / 0.5869 GB, free: 102.2 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004953/0.812, allocations: 377.7 kB / 0.5873 GB, free: 102.1 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002681/0.8146, allocations: 1.654 MB / 0.5889 GB, free: 101.2 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003766/0.815, allocations: 277 kB / 0.5892 GB, free: 101.1 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004102/0.8155, allocations: 365.7 kB / 0.5895 GB, free: 100.9 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01477/0.8302, allocations: 18.13 MB / 0.6072 GB, free: 86.29 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003489/0.8307, allocations: 217.3 kB / 0.6074 GB, free: 86.2 MB / 426.7 MB Notification: Performance of pre-optimization done (n=29): time 2.635e-06/0.8307, allocations: 0 / 0.6074 GB, free: 86.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=29): time 0.0007919/0.8315, allocations: 495.4 kB / 0.6079 GB, free: 85.98 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.562e-05/0.8315, allocations: 165.8 kB / 0.6081 GB, free: 85.79 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00131/0.8328, allocations: 1.2 MB / 0.6092 GB, free: 85.29 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.424e-05/0.8329, allocations: 35.83 kB / 0.6093 GB, free: 85.25 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004139/0.8333, allocations: 0.7143 MB / 0.61 GB, free: 84.67 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.295e-05/0.8334, allocations: 97.67 kB / 0.6101 GB, free: 84.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.433e-05/0.8334, allocations: 8 kB / 0.6101 GB, free: 84.59 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.32e-05/0.8335, allocations: 325.6 kB / 0.6104 GB, free: 84.27 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001746/0.8337, allocations: 117.5 kB / 0.6105 GB, free: 84.23 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002466/0.8339, allocations: 331 kB / 0.6108 GB, free: 83.9 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002166/0.8341, allocations: 156.6 kB / 0.611 GB, free: 83.84 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.8341, allocations: 3.594 kB / 0.611 GB, free: 83.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007996/0.835, allocations: 0.654 MB / 0.6116 GB, free: 83.55 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.835, allocations: 11.44 kB / 0.6116 GB, free: 83.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-05/0.835, allocations: 37.59 kB / 0.6116 GB, free: 83.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002867/0.8353, allocations: 141.4 kB / 0.6118 GB, free: 83.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004169/0.8358, allocations: 118.5 kB / 0.6119 GB, free: 83.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004964/0.8363, allocations: 0.6769 MB / 0.6126 GB, free: 82.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006647/0.8369, allocations: 79.7 kB / 0.6126 GB, free: 82.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.959e-05/0.837, allocations: 39.22 kB / 0.6127 GB, free: 82.9 MB / 426.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 () * 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.0001283/0.8371, allocations: 142.1 kB / 0.6128 GB, free: 82.77 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001692/0.8373, allocations: 185.5 kB / 0.613 GB, free: 82.67 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001542/0.8389, allocations: 0.6753 MB / 0.6136 GB, free: 82.4 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.8389, allocations: 7.781 kB / 0.6136 GB, free: 82.4 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.8389, allocations: 0 / 0.6136 GB, free: 82.4 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.8389, allocations: 0 / 0.6136 GB, free: 82.4 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001738/0.8407, allocations: 1.236 MB / 0.6149 GB, free: 81.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.471e-05/0.8407, allocations: 38.08 kB / 0.6149 GB, free: 81.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002691/0.841, allocations: 58.84 kB / 0.6149 GB, free: 81.72 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00022/0.8412, allocations: 125.5 kB / 0.6151 GB, free: 81.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.801e-05/0.8413, allocations: 21.47 kB / 0.6151 GB, free: 81.69 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004301/0.8417, allocations: 0.6672 MB / 0.6157 GB, free: 81.13 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.8417, allocations: 8 kB / 0.6157 GB, free: 81.12 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006798/0.8424, allocations: 0.6378 MB / 0.6164 GB, free: 80.73 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004043/0.8428, allocations: 285.8 kB / 0.6166 GB, free: 80.52 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002084/0.843, allocations: 15.23 kB / 0.6167 GB, free: 80.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005141/0.8436, allocations: 37.64 kB / 0.6167 GB, free: 80.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.8437, allocations: 39.75 kB / 0.6167 GB, free: 80.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.282e-05/0.8437, allocations: 22.22 kB / 0.6168 GB, free: 80.49 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001125/0.8449, allocations: 0.9268 MB / 0.6177 GB, free: 80.09 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.8449, allocations: 4 kB / 0.6177 GB, free: 80.09 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001036/0.8459, allocations: 359.1 kB / 0.618 GB, free: 80.03 MB / 426.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) * 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.0009862/0.8469, allocations: 0.6187 MB / 0.6186 GB, free: 79.74 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007479/0.8477, allocations: 419.2 kB / 0.619 GB, free: 79.57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.8477, allocations: 1.688 kB / 0.619 GB, free: 79.57 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003824/0.8481, allocations: 243.4 kB / 0.6192 GB, free: 79.46 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00115/0.8492, allocations: 298.3 kB / 0.6195 GB, free: 79.35 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002359/0.8516, allocations: 1.523 MB / 0.621 GB, free: 78.68 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004818/0.8521, allocations: 1.18 MB / 0.6222 GB, free: 77.95 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006174/0.8527, allocations: 174.9 kB / 0.6223 GB, free: 77.91 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.8529, allocations: 76.97 kB / 0.6224 GB, free: 77.87 MB / 426.7 MB Notification: Performance of SimCode: time 7.01e-07/0.8529, allocations: 0 / 0.6224 GB, free: 77.87 MB / 426.7 MB Notification: Performance of Templates: time 0.02858/0.8815, allocations: 19.92 MB / 0.6419 GB, free: 59.32 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