Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00106/0.00106, allocations: 197.8 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.192/1.192, allocations: 227.2 MB / 245 MB, free: 5.77 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008644/0.0008644, allocations: 96.66 kB / 297.3 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001999/0.0001999, allocations: 4 kB / 357.9 MB, free: 9.305 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1964/0.1967, allocations: 51.48 MB / 409.4 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1099/0.3066, allocations: 104.7 MB / 0.5021 GB, free: 1.824 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001761/0.3068, allocations: 68.66 kB / 0.5022 GB, free: 1.758 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3301/0.6369, allocations: 99.6 MB / 0.5994 GB, free: 10.91 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.6369, allocations: 0 / 0.5994 GB, free: 10.91 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.912e-05/0.637, allocations: 24 kB / 0.5994 GB, free: 10.88 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.003598/0.6406, allocations: 1.949 MB / 0.6014 GB, free: 8.875 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.6406, allocations: 11.97 kB / 0.6014 GB, free: 8.863 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002935/0.6409, allocations: 193.7 kB / 0.6015 GB, free: 8.672 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001873/0.6428, allocations: 1.219 MB / 0.6027 GB, free: 7.383 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.65e-05/0.6428, allocations: 20.56 kB / 0.6028 GB, free: 7.363 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.724e-05/0.6429, allocations: 28 kB / 0.6028 GB, free: 7.336 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008652/0.6438, allocations: 0.5025 MB / 0.6033 GB, free: 6.816 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.6438, allocations: 0 / 0.6033 GB, free: 6.816 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.619e-05/0.6439, allocations: 15.94 kB / 0.6033 GB, free: 6.801 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.207e-05/0.6439, allocations: 12 kB / 0.6033 GB, free: 6.789 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009361/0.6448, allocations: 0.502 MB / 0.6038 GB, free: 6.289 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002563/0.6474, allocations: 1.666 MB / 0.6054 GB, free: 4.547 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008304/0.6483, allocations: 419.2 kB / 0.6058 GB, free: 4.129 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01645/0.6647, allocations: 18.37 MB / 0.6238 GB, free: 15.09 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005819/0.6653, allocations: 271.1 kB / 0.624 GB, free: 14.81 MB / 410.7 MB Notification: Performance of pre-optimization done (n=29): time 2.014e-06/0.6653, allocations: 4 kB / 0.624 GB, free: 14.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=29): time 0.001998/0.6673, allocations: 0.8915 MB / 0.6249 GB, free: 13.88 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.47e-05/0.6674, allocations: 162.2 kB / 0.6251 GB, free: 13.69 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001598/0.669, allocations: 1.215 MB / 0.6262 GB, free: 12.44 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.855e-05/0.6691, allocations: 29.7 kB / 0.6263 GB, free: 12.41 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006074/0.6697, allocations: 0.7264 MB / 0.627 GB, free: 11.68 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.23e-05/0.6698, allocations: 90.81 kB / 0.6271 GB, free: 11.59 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.367e-05/0.6698, allocations: 4 kB / 0.6271 GB, free: 11.58 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.67, allocations: 330 kB / 0.6274 GB, free: 11.25 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004398/0.6704, allocations: 177 kB / 0.6276 GB, free: 11.08 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005808/0.671, allocations: 416.3 kB / 0.6279 GB, free: 10.57 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004675/0.6715, allocations: 215.5 kB / 0.6282 GB, free: 10.37 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.6715, allocations: 4 kB / 0.6282 GB, free: 10.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001437/0.6729, allocations: 0.7872 MB / 0.6289 GB, free: 9.566 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.673, allocations: 8 kB / 0.6289 GB, free: 9.559 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-05/0.673, allocations: 48.08 kB / 0.629 GB, free: 9.512 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002841/0.6733, allocations: 128.8 kB / 0.6291 GB, free: 9.383 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004032/0.6737, allocations: 123.7 kB / 0.6292 GB, free: 9.262 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005728/0.6743, allocations: 0.685 MB / 0.6299 GB, free: 8.551 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006207/0.675, allocations: 83.55 kB / 0.63 GB, free: 8.469 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.688e-05/0.675, allocations: 36 kB / 0.63 GB, free: 8.434 MB / 410.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.0004165/0.6754, allocations: 278.5 kB / 0.6303 GB, free: 8.152 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002132/0.6757, allocations: 189.7 kB / 0.6304 GB, free: 7.965 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001909/0.6776, allocations: 0.8061 MB / 0.6312 GB, free: 7.152 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.9e-06/0.6776, allocations: 0 / 0.6312 GB, free: 7.152 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.6776, allocations: 0 / 0.6312 GB, free: 7.152 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.6776, allocations: 8 kB / 0.6312 GB, free: 7.145 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002195/0.6798, allocations: 1.362 MB / 0.6326 GB, free: 5.711 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.357e-05/0.6799, allocations: 35.98 kB / 0.6326 GB, free: 5.676 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002581/0.6801, allocations: 63.95 kB / 0.6327 GB, free: 5.613 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002059/0.6804, allocations: 120.8 kB / 0.6328 GB, free: 5.492 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.415e-05/0.6804, allocations: 15.98 kB / 0.6328 GB, free: 5.477 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005098/0.6809, allocations: 0.6733 MB / 0.6335 GB, free: 4.777 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.6809, allocations: 4.188 kB / 0.6335 GB, free: 4.773 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001211/0.6821, allocations: 0.7855 MB / 0.6342 GB, free: 3.941 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004303/0.6826, allocations: 290.7 kB / 0.6345 GB, free: 3.637 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001366/0.6827, allocations: 8 kB / 0.6345 GB, free: 3.629 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004248/0.6832, allocations: 43.95 kB / 0.6346 GB, free: 3.586 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.6833, allocations: 39.95 kB / 0.6346 GB, free: 3.547 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.844e-05/0.6833, allocations: 19.98 kB / 0.6346 GB, free: 3.527 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001068/0.6844, allocations: 0.9415 MB / 0.6355 GB, free: 2.566 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6844, allocations: 0 / 0.6355 GB, free: 2.566 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008639/0.6853, allocations: 367.6 kB / 0.6359 GB, free: 2.207 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.000843/0.6861, allocations: 0.6162 MB / 0.6365 GB, free: 1.578 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001131/0.6873, allocations: 0.5552 MB / 0.637 GB, free: 1.012 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.6873, allocations: 3.938 kB / 0.637 GB, free: 1.008 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005941/0.6879, allocations: 309.4 kB / 0.6373 GB, free: 0.6953 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009256/0.6888, allocations: 290.9 kB / 0.6376 GB, free: 424 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002973/0.6918, allocations: 2.495 MB / 0.64 GB, free: 13.88 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006225/0.6924, allocations: 1.176 MB / 0.6412 GB, free: 12.67 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005684/0.693, allocations: 174.5 kB / 0.6414 GB, free: 12.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001197/0.6931, allocations: 75.44 kB / 0.6414 GB, free: 12.42 MB / 426.7 MB Notification: Performance of SimCode: time 5.81e-07/0.6931, allocations: 0 / 0.6414 GB, free: 12.42 MB / 426.7 MB Notification: Performance of Templates: time 0.02786/0.721, allocations: 18.77 MB / 0.6598 GB, free: 9.734 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches