Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001594/0.001594, allocations: 181.9 kB / 17.41 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.017/3.017, allocations: 205.4 MB / 223.6 MB, free: 8.934 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001182/0.001182, allocations: 78.42 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006114/0.0006118, allocations: 19.98 kB / 328.2 MB, free: 15.92 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4784/0.479, allocations: 47.57 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1981/0.6772, allocations: 102 MB / 477.8 MB, free: 10.53 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003693/0.6776, allocations: 79.95 kB / 477.8 MB, free: 10.45 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6424/1.32, allocations: 88.5 MB / 0.5531 GB, free: 62.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 6.843e-06/1.32, allocations: 0 / 0.5531 GB, free: 62.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001241/1.32, allocations: 24 kB / 0.5531 GB, free: 62.72 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.007584/1.328, allocations: 1.94 MB / 0.555 GB, free: 60.73 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.952e-05/1.328, allocations: 12.03 kB / 0.555 GB, free: 60.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008982/1.329, allocations: 193.7 kB / 0.5552 GB, free: 60.52 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004154/1.333, allocations: 1.307 MB / 0.5565 GB, free: 59.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.809e-05/1.333, allocations: 24.5 kB / 0.5565 GB, free: 59.12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002242/1.333, allocations: 31.98 kB / 0.5565 GB, free: 59.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001432/1.335, allocations: 0.5026 MB / 0.557 GB, free: 58.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/1.335, allocations: 3.938 kB / 0.557 GB, free: 58.56 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.814e-05/1.335, allocations: 8 kB / 0.557 GB, free: 58.55 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.109e-05/1.335, allocations: 12 kB / 0.557 GB, free: 58.54 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001477/1.336, allocations: 0.502 MB / 0.5575 GB, free: 58.04 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004454/1.341, allocations: 1.661 MB / 0.5591 GB, free: 56.31 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001162/1.342, allocations: 415.4 kB / 0.5595 GB, free: 55.89 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009157/1.343, allocations: 433.8 kB / 0.56 GB, free: 55.47 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02166/1.365, allocations: 17.99 MB / 0.5775 GB, free: 34.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008245/1.366, allocations: 275.8 kB / 0.5778 GB, free: 34.62 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 4.378e-06/1.366, allocations: 0 / 0.5778 GB, free: 34.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.002972/1.369, allocations: 0.9045 MB / 0.5787 GB, free: 33.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.33e-05/1.369, allocations: 166.2 kB / 0.5788 GB, free: 33.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002422/1.371, allocations: 1.448 MB / 0.5802 GB, free: 32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.861e-05/1.371, allocations: 29.7 kB / 0.5803 GB, free: 31.96 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006833/1.372, allocations: 0.7227 MB / 0.581 GB, free: 31.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001042/1.372, allocations: 90.8 kB / 0.5811 GB, free: 31.14 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.856e-05/1.372, allocations: 4 kB / 0.5811 GB, free: 31.14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.585e-05/1.372, allocations: 326 kB / 0.5814 GB, free: 30.82 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005967/1.373, allocations: 181 kB / 0.5815 GB, free: 30.64 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007025/1.374, allocations: 403.9 kB / 0.5819 GB, free: 30.14 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001351/1.375, allocations: 0.5685 MB / 0.5825 GB, free: 29.48 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.125e-06/1.375, allocations: 4 kB / 0.5825 GB, free: 29.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002021/1.377, allocations: 0.7977 MB / 0.5833 GB, free: 28.67 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.125e-05/1.377, allocations: 10.19 kB / 0.5833 GB, free: 28.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-05/1.377, allocations: 36 kB / 0.5833 GB, free: 28.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000412/1.378, allocations: 137.4 kB / 0.5834 GB, free: 28.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005447/1.378, allocations: 119.8 kB / 0.5836 GB, free: 28.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006809/1.379, allocations: 0.6773 MB / 0.5842 GB, free: 27.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001203/1.38, allocations: 87.34 kB / 0.5843 GB, free: 27.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.389e-05/1.38, allocations: 32 kB / 0.5843 GB, free: 27.55 MB / 378.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.0007847/1.381, allocations: 288.2 kB / 0.5846 GB, free: 27.26 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002954/1.381, allocations: 193.7 kB / 0.5848 GB, free: 27.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00265/1.384, allocations: 0.794 MB / 0.5856 GB, free: 26.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/1.384, allocations: 4 kB / 0.5856 GB, free: 26.26 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/1.384, allocations: 3.938 kB / 0.5856 GB, free: 26.26 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/1.384, allocations: 0 / 0.5856 GB, free: 26.26 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002984/1.387, allocations: 1.37 MB / 0.5869 GB, free: 24.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.155e-05/1.387, allocations: 36 kB / 0.5869 GB, free: 24.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003324/1.387, allocations: 56.02 kB / 0.587 GB, free: 24.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003574/1.388, allocations: 140.8 kB / 0.5871 GB, free: 24.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.229e-05/1.388, allocations: 16 kB / 0.5872 GB, free: 24.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006703/1.388, allocations: 0.6618 MB / 0.5878 GB, free: 23.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/1.388, allocations: 0 / 0.5878 GB, free: 23.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001825/1.39, allocations: 0.7514 MB / 0.5885 GB, free: 23.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007156/1.391, allocations: 286.6 kB / 0.5888 GB, free: 22.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002231/1.391, allocations: 8 kB / 0.5888 GB, free: 22.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006472/1.392, allocations: 43.95 kB / 0.5889 GB, free: 22.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000199/1.392, allocations: 39.95 kB / 0.5889 GB, free: 22.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.461e-05/1.392, allocations: 23.98 kB / 0.5889 GB, free: 22.69 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001974/1.394, allocations: 0.9458 MB / 0.5898 GB, free: 21.72 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.31e-07/1.394, allocations: 0 / 0.5898 GB, free: 21.72 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002009/1.396, allocations: 371.6 kB / 0.5902 GB, free: 21.36 MB / 378.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.001313/1.398, allocations: 0.6331 MB / 0.5908 GB, free: 20.72 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001765/1.399, allocations: 0.5435 MB / 0.5913 GB, free: 20.16 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/1.399, allocations: 4.125 kB / 0.5913 GB, free: 20.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008016/1.4, allocations: 311.3 kB / 0.5916 GB, free: 19.84 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002353/1.403, allocations: 234.9 kB / 0.5919 GB, free: 19.61 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005192/1.408, allocations: 2.576 MB / 0.5944 GB, free: 16.99 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006459/1.408, allocations: 1.152 MB / 0.5955 GB, free: 15.81 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002383/1.409, allocations: 87.42 kB / 0.5956 GB, free: 15.72 MB / 378.7 MB Notification: Performance of SimCode: time 9.22e-07/1.409, allocations: 0 / 0.5956 GB, free: 15.72 MB / 378.7 MB Notification: Performance of Templates: time 0.05889/1.468, allocations: 25.4 MB / 0.6204 GB, free: 6.312 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","../files/Modelica_3.2.3_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