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.0008955/0.0008955, allocations: 177 kB / 17.4 MB, free: 4.418 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.261/1.261, allocations: 223.3 MB / 241.4 MB, free: 11.71 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.0007556/0.0007556, allocations: 91.64 kB / 292.6 MB, free: 10.78 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003094/0.0003095, allocations: 11.94 kB / 352.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.208/0.2083, allocations: 50.4 MB / 402.7 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1161/0.3245, allocations: 104 MB / 0.4948 GB, free: 8.305 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000193/0.3247, allocations: 67.97 kB / 0.4949 GB, free: 8.238 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3378/0.6625, allocations: 98.31 MB / 0.5909 GB, free: 22.4 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.6626, allocations: 4 kB / 0.5909 GB, free: 22.4 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.299e-05/0.6626, allocations: 20 kB / 0.5909 GB, free: 22.38 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.003248/0.6659, allocations: 1.939 MB / 0.5928 GB, free: 20.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.6659, allocations: 8.031 kB / 0.5928 GB, free: 20.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002826/0.6662, allocations: 193.7 kB / 0.593 GB, free: 20.18 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001687/0.6679, allocations: 1.307 MB / 0.5943 GB, free: 18.8 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.921e-05/0.6679, allocations: 20.56 kB / 0.5943 GB, free: 18.79 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.988e-05/0.668, allocations: 31.84 kB / 0.5944 GB, free: 18.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009517/0.669, allocations: 0.5025 MB / 0.5948 GB, free: 18.23 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.013e-05/0.669, allocations: 0 / 0.5948 GB, free: 18.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.63e-05/0.6691, allocations: 16 kB / 0.5949 GB, free: 18.22 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.894e-05/0.6691, allocations: 15.98 kB / 0.5949 GB, free: 18.2 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001041/0.6702, allocations: 0.502 MB / 0.5954 GB, free: 17.7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00383/0.674, allocations: 1.638 MB / 0.597 GB, free: 15.99 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008152/0.6748, allocations: 415.2 kB / 0.5974 GB, free: 15.57 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006088/0.6755, allocations: 439.4 kB / 0.5978 GB, free: 15.14 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01304/0.6885, allocations: 17.92 MB / 0.6153 GB, free: 10.63 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005879/0.6891, allocations: 283 kB / 0.6156 GB, free: 10.34 MB / 394.7 MB Notification: Performance of pre-optimization done (n=29): time 2.475e-06/0.6892, allocations: 0 / 0.6156 GB, free: 10.34 MB / 394.7 MB Notification: Performance of matching and sorting (n=29): time 0.00192/0.6911, allocations: 0.8964 MB / 0.6164 GB, free: 9.418 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.563e-05/0.6912, allocations: 162.2 kB / 0.6166 GB, free: 9.223 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001628/0.6928, allocations: 1.44 MB / 0.618 GB, free: 7.746 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.843e-05/0.6929, allocations: 29.7 kB / 0.618 GB, free: 7.711 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005444/0.6934, allocations: 0.7225 MB / 0.6187 GB, free: 6.984 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.218e-05/0.6935, allocations: 98.72 kB / 0.6188 GB, free: 6.887 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.541e-05/0.6935, allocations: 8 kB / 0.6188 GB, free: 6.879 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.729e-05/0.6936, allocations: 325.9 kB / 0.6191 GB, free: 6.555 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004269/0.6941, allocations: 185 kB / 0.6193 GB, free: 6.371 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005302/0.6946, allocations: 403.7 kB / 0.6197 GB, free: 5.879 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009367/0.6956, allocations: 0.569 MB / 0.6203 GB, free: 5.219 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.6956, allocations: 4 kB / 0.6203 GB, free: 5.215 MB / 394.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001359/0.6969, allocations: 0.7883 MB / 0.621 GB, free: 4.418 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.697, allocations: 15.97 kB / 0.621 GB, free: 4.402 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.023e-05/0.697, allocations: 43.98 kB / 0.6211 GB, free: 4.359 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000281/0.6973, allocations: 136.8 kB / 0.6212 GB, free: 4.223 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003956/0.6977, allocations: 115.8 kB / 0.6213 GB, free: 4.109 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005408/0.6983, allocations: 0.6772 MB / 0.622 GB, free: 3.406 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005969/0.6989, allocations: 87.55 kB / 0.6221 GB, free: 3.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.697e-05/0.699, allocations: 32 kB / 0.6221 GB, free: 3.289 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.0004507/0.6994, allocations: 281.6 kB / 0.6224 GB, free: 3.008 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000159/0.6996, allocations: 189.8 kB / 0.6226 GB, free: 2.82 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001837/0.7014, allocations: 0.7939 MB / 0.6233 GB, free: 2.016 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.7014, allocations: 4 kB / 0.6233 GB, free: 2.012 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.7014, allocations: 0 / 0.6233 GB, free: 2.012 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/0.7015, allocations: 3.984 kB / 0.6233 GB, free: 2.008 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002075/0.7035, allocations: 1.36 MB / 0.6247 GB, free: 0.5781 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.627e-05/0.7036, allocations: 32 kB / 0.6247 GB, free: 0.5469 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002541/0.7039, allocations: 63.95 kB / 0.6248 GB, free: 496 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002089/0.7041, allocations: 124.8 kB / 0.6249 GB, free: 368 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.417e-05/0.7041, allocations: 20 kB / 0.6249 GB, free: 348 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005103/0.7046, allocations: 0.6772 MB / 0.6256 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.7046, allocations: 3.938 kB / 0.6256 GB, free: 15.63 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001139/0.7058, allocations: 0.7477 MB / 0.6263 GB, free: 14.86 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003697/0.7062, allocations: 274.7 kB / 0.6266 GB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001367/0.7063, allocations: 11.98 kB / 0.6266 GB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004234/0.7068, allocations: 39.97 kB / 0.6266 GB, free: 14.52 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/0.7069, allocations: 47.88 kB / 0.6266 GB, free: 14.47 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.083e-05/0.7069, allocations: 20 kB / 0.6267 GB, free: 14.45 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001155/0.7081, allocations: 0.9376 MB / 0.6276 GB, free: 13.49 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.7081, allocations: 8 kB / 0.6276 GB, free: 13.48 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001138/0.7092, allocations: 359.7 kB / 0.6279 GB, free: 13.13 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.001083/0.7103, allocations: 0.623 MB / 0.6285 GB, free: 12.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001278/0.7116, allocations: 0.5474 MB / 0.6291 GB, free: 11.95 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/0.7116, allocations: 0 / 0.6291 GB, free: 11.95 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006716/0.7123, allocations: 319.4 kB / 0.6294 GB, free: 11.62 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001305/0.7136, allocations: 287.9 kB / 0.6297 GB, free: 11.34 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003071/0.7167, allocations: 2.493 MB / 0.6321 GB, free: 8.805 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005954/0.7173, allocations: 1.152 MB / 0.6332 GB, free: 7.621 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005884/0.7179, allocations: 170.5 kB / 0.6334 GB, free: 7.449 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/0.718, allocations: 79.44 kB / 0.6335 GB, free: 7.371 MB / 410.7 MB Notification: Performance of SimCode: time 3.91e-07/0.7181, allocations: 0 / 0.6335 GB, free: 7.371 MB / 410.7 MB Notification: Performance of Templates: time 0.03205/0.7501, allocations: 20 MB / 0.653 GB, free: 3.523 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/jenkins1/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