Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00145/0.00145, allocations: 202.8 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.288/1.288, allocations: 226.5 MB / 245.4 MB, free: 8.117 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009125/0.0009124, allocations: 99.3 kB / 297.4 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001965/0.0001966, allocations: 4 kB / 357.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1857/0.1859, allocations: 51.3 MB / 408.7 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1122/0.2981, allocations: 104.7 MB / 0.5013 GB, free: 2.879 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001867/0.2983, allocations: 75.97 kB / 0.5014 GB, free: 2.805 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3156/0.6139, allocations: 98.43 MB / 0.5975 GB, free: 13.62 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.614, allocations: 0 / 0.5975 GB, free: 13.62 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.438e-05/0.614, allocations: 20 kB / 0.5975 GB, free: 13.6 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.003293/0.6173, allocations: 1.929 MB / 0.5994 GB, free: 11.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.6174, allocations: 12.03 kB / 0.5994 GB, free: 11.6 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002756/0.6177, allocations: 198.3 kB / 0.5996 GB, free: 11.4 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00179/0.6195, allocations: 1.299 MB / 0.6009 GB, free: 10.03 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.552e-05/0.6195, allocations: 20.56 kB / 0.6009 GB, free: 10.01 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.289e-05/0.6196, allocations: 35.91 kB / 0.6009 GB, free: 9.977 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000911/0.6205, allocations: 0.5026 MB / 0.6014 GB, free: 9.457 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.6205, allocations: 0 / 0.6014 GB, free: 9.457 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.861e-05/0.6206, allocations: 11.94 kB / 0.6014 GB, free: 9.445 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.658e-05/0.6206, allocations: 15.97 kB / 0.6015 GB, free: 9.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009946/0.6216, allocations: 0.5097 MB / 0.602 GB, free: 8.922 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00304/0.6247, allocations: 1.642 MB / 0.6036 GB, free: 7.203 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007836/0.6255, allocations: 411.4 kB / 0.604 GB, free: 6.793 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006132/0.6261, allocations: 433.8 kB / 0.6044 GB, free: 6.363 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01599/0.6421, allocations: 18.25 MB / 0.6222 GB, free: 1.445 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000634/0.6428, allocations: 283 kB / 0.6225 GB, free: 1.156 MB / 394.7 MB Notification: Performance of pre-optimization done (n=29): time 2.695e-06/0.6428, allocations: 4 kB / 0.6225 GB, free: 1.152 MB / 394.7 MB Notification: Performance of matching and sorting (n=29): time 0.002195/0.645, allocations: 0.9049 MB / 0.6234 GB, free: 224 kB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.197e-05/0.6451, allocations: 158.2 kB / 0.6235 GB, free: 28 kB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001886/0.647, allocations: 1.44 MB / 0.6249 GB, free: 14.55 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.022e-05/0.647, allocations: 33.7 kB / 0.6249 GB, free: 14.51 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006002/0.6477, allocations: 0.7187 MB / 0.6256 GB, free: 13.79 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.437e-05/0.6477, allocations: 94.67 kB / 0.6257 GB, free: 13.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.132e-05/0.6478, allocations: 12 kB / 0.6257 GB, free: 13.68 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.6479, allocations: 330 kB / 0.6261 GB, free: 13.36 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004237/0.6483, allocations: 181 kB / 0.6262 GB, free: 13.18 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005376/0.6489, allocations: 403.8 kB / 0.6266 GB, free: 12.68 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009556/0.6498, allocations: 0.5734 MB / 0.6272 GB, free: 12.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.6499, allocations: 0 / 0.6272 GB, free: 12.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001402/0.6513, allocations: 0.786 MB / 0.6279 GB, free: 11.22 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.6513, allocations: 8 kB / 0.628 GB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.386e-05/0.6514, allocations: 40 kB / 0.628 GB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003019/0.6517, allocations: 141.5 kB / 0.6281 GB, free: 11.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003915/0.6521, allocations: 115.8 kB / 0.6282 GB, free: 10.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005627/0.6526, allocations: 0.6812 MB / 0.6289 GB, free: 10.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006136/0.6533, allocations: 75.62 kB / 0.629 GB, free: 10.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.169e-05/0.6533, allocations: 39.94 kB / 0.629 GB, free: 10.1 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.0004534/0.6538, allocations: 278.7 kB / 0.6293 GB, free: 9.82 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001607/0.654, allocations: 189.7 kB / 0.6295 GB, free: 9.633 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001923/0.6559, allocations: 0.7854 MB / 0.6302 GB, free: 8.836 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/0.6559, allocations: 7.984 kB / 0.6302 GB, free: 8.828 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.6559, allocations: 0 / 0.6302 GB, free: 8.828 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.6559, allocations: 3.984 kB / 0.6302 GB, free: 8.824 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002167/0.6581, allocations: 1.369 MB / 0.6316 GB, free: 7.383 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.795e-05/0.6582, allocations: 36 kB / 0.6316 GB, free: 7.348 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002509/0.6584, allocations: 51.95 kB / 0.6317 GB, free: 7.297 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002392/0.6587, allocations: 132.8 kB / 0.6318 GB, free: 7.164 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.344e-05/0.6587, allocations: 19.98 kB / 0.6318 GB, free: 7.145 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005098/0.6592, allocations: 0.6656 MB / 0.6325 GB, free: 6.453 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.6593, allocations: 0 / 0.6325 GB, free: 6.453 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001188/0.6605, allocations: 0.7475 MB / 0.6332 GB, free: 5.676 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003681/0.6608, allocations: 282.7 kB / 0.6335 GB, free: 5.379 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001867/0.661, allocations: 8 kB / 0.6335 GB, free: 5.371 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004575/0.6615, allocations: 43.89 kB / 0.6335 GB, free: 5.328 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.6616, allocations: 43.95 kB / 0.6335 GB, free: 5.285 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.143e-05/0.6617, allocations: 16 kB / 0.6336 GB, free: 5.27 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001132/0.6628, allocations: 0.9415 MB / 0.6345 GB, free: 4.309 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6628, allocations: 0 / 0.6345 GB, free: 4.309 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001006/0.6638, allocations: 371.6 kB / 0.6348 GB, free: 3.945 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.0009953/0.6648, allocations: 0.632 MB / 0.6354 GB, free: 3.305 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001261/0.6661, allocations: 0.5512 MB / 0.636 GB, free: 2.742 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.159e-06/0.6661, allocations: 4.125 kB / 0.636 GB, free: 2.738 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006226/0.6667, allocations: 316 kB / 0.6363 GB, free: 2.418 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001456/0.6682, allocations: 286.1 kB / 0.6366 GB, free: 2.141 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00374/0.672, allocations: 2.53 MB / 0.639 GB, free: 15.57 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000686/0.6727, allocations: 1.152 MB / 0.6402 GB, free: 14.39 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001567/0.6728, allocations: 79.44 kB / 0.6402 GB, free: 14.31 MB / 426.7 MB Notification: Performance of SimCode: time 4.21e-07/0.6728, allocations: 4 kB / 0.6402 GB, free: 14.3 MB / 426.7 MB Notification: Performance of Templates: time 0.0331/0.7059, allocations: 25.32 MB / 0.665 GB, free: 5.031 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,mp.S.v Variables in the result:mp.S.v,time