Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001919/0.001918, allocations: 180.7 kB / 17.02 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.576/1.576, allocations: 205.4 MB / 223.1 MB, free: 9.035 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.001202/0.001202, allocations: 94.91 kB / 271.5 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002898/0.0002898, allocations: 4 kB / 328.2 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2596, allocations: 47.58 MB / 375.8 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1218/0.3815, allocations: 102 MB / 477.8 MB, free: 10.64 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000244/0.3818, allocations: 71.97 kB / 477.9 MB, free: 10.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3398/0.7216, allocations: 89.6 MB / 0.5542 GB, free: 61.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.7217, allocations: 0 / 0.5542 GB, free: 61.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.201e-05/0.7217, allocations: 20 kB / 0.5542 GB, free: 61.82 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.003269/0.725, allocations: 1.964 MB / 0.5561 GB, free: 59.8 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.725, allocations: 8.031 kB / 0.5561 GB, free: 59.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001787/0.7252, allocations: 193.7 kB / 0.5563 GB, free: 59.6 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001576/0.7268, allocations: 1.223 MB / 0.5575 GB, free: 58.31 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.259e-05/0.7268, allocations: 20.52 kB / 0.5575 GB, free: 58.29 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.117e-05/0.7269, allocations: 28 kB / 0.5575 GB, free: 58.26 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008368/0.7278, allocations: 0.5026 MB / 0.558 GB, free: 57.74 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.7278, allocations: 3.938 kB / 0.558 GB, free: 57.74 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.454e-05/0.7278, allocations: 12 kB / 0.558 GB, free: 57.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.295e-05/0.7279, allocations: 15.94 kB / 0.5581 GB, free: 57.71 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009274/0.7288, allocations: 0.502 MB / 0.5585 GB, free: 57.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002413/0.7312, allocations: 1.665 MB / 0.5602 GB, free: 55.47 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008466/0.7321, allocations: 414 kB / 0.5606 GB, free: 55.06 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.015/0.7471, allocations: 18.12 MB / 0.5783 GB, free: 34.36 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006577/0.7478, allocations: 275.8 kB / 0.5785 GB, free: 34.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 3.276e-06/0.7478, allocations: 0 / 0.5785 GB, free: 34.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.00195/0.7498, allocations: 0.8967 MB / 0.5794 GB, free: 33.15 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.319e-05/0.7499, allocations: 158.2 kB / 0.5795 GB, free: 32.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001396/0.7513, allocations: 1.227 MB / 0.5807 GB, free: 31.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.83e-05/0.7513, allocations: 37.7 kB / 0.5808 GB, free: 31.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004671/0.7518, allocations: 0.7266 MB / 0.5815 GB, free: 30.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.737e-05/0.7519, allocations: 86.75 kB / 0.5816 GB, free: 30.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.61e-05/0.7519, allocations: 12 kB / 0.5816 GB, free: 30.83 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.891e-05/0.752, allocations: 329.9 kB / 0.5819 GB, free: 30.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004252/0.7524, allocations: 173 kB / 0.5821 GB, free: 30.33 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004739/0.7529, allocations: 403.7 kB / 0.5825 GB, free: 29.83 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004397/0.7533, allocations: 236.1 kB / 0.5827 GB, free: 29.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.7534, allocations: 0 / 0.5827 GB, free: 29.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001304/0.7547, allocations: 0.786 MB / 0.5834 GB, free: 28.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.7547, allocations: 8 kB / 0.5835 GB, free: 28.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.359e-05/0.7548, allocations: 40 kB / 0.5835 GB, free: 28.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000295/0.7551, allocations: 137.5 kB / 0.5836 GB, free: 28.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000385/0.7555, allocations: 111.8 kB / 0.5837 GB, free: 28.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004619/0.7559, allocations: 0.689 MB / 0.5844 GB, free: 27.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006469/0.7566, allocations: 79.41 kB / 0.5845 GB, free: 27.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.328e-05/0.7566, allocations: 39.94 kB / 0.5845 GB, free: 27.68 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.0005097/0.7572, allocations: 284.1 kB / 0.5848 GB, free: 27.39 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001533/0.7573, allocations: 189.8 kB / 0.585 GB, free: 27.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001871/0.7592, allocations: 0.801 MB / 0.5857 GB, free: 26.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.184e-06/0.7592, allocations: 4 kB / 0.5858 GB, free: 26.39 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.8e-06/0.7592, allocations: 0 / 0.5858 GB, free: 26.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.7592, allocations: 0 / 0.5858 GB, free: 26.39 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002019/0.7613, allocations: 1.382 MB / 0.5871 GB, free: 24.94 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.267e-05/0.7613, allocations: 43.98 kB / 0.5871 GB, free: 24.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002408/0.7616, allocations: 51.95 kB / 0.5872 GB, free: 24.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002165/0.7618, allocations: 128.8 kB / 0.5873 GB, free: 24.71 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.444e-05/0.7618, allocations: 19.98 kB / 0.5873 GB, free: 24.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000446/0.7623, allocations: 0.6617 MB / 0.588 GB, free: 24.01 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.7623, allocations: 3.953 kB / 0.588 GB, free: 24 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001112/0.7634, allocations: 0.7829 MB / 0.5887 GB, free: 23.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005014/0.7639, allocations: 294.6 kB / 0.589 GB, free: 22.87 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001503/0.7641, allocations: 8 kB / 0.589 GB, free: 22.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004345/0.7645, allocations: 43.95 kB / 0.5891 GB, free: 22.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001232/0.7647, allocations: 39.95 kB / 0.5891 GB, free: 22.78 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.938e-05/0.7647, allocations: 16 kB / 0.5891 GB, free: 22.76 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001124/0.7659, allocations: 0.9536 MB / 0.5901 GB, free: 21.79 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7659, allocations: 3.938 kB / 0.5901 GB, free: 21.79 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001125/0.767, allocations: 367.6 kB / 0.5904 GB, free: 21.43 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.0009034/0.7679, allocations: 0.6254 MB / 0.591 GB, free: 20.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001202/0.7691, allocations: 0.5474 MB / 0.5916 GB, free: 20.24 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.7691, allocations: 0 / 0.5916 GB, free: 20.24 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005815/0.7697, allocations: 319.3 kB / 0.5919 GB, free: 19.92 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000776/0.7705, allocations: 246.9 kB / 0.5921 GB, free: 19.67 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002925/0.7734, allocations: 2.501 MB / 0.5945 GB, free: 17.13 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000436/0.7739, allocations: 1.187 MB / 0.5957 GB, free: 15.91 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006075/0.7745, allocations: 170.5 kB / 0.5959 GB, free: 15.74 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.7746, allocations: 79.44 kB / 0.5959 GB, free: 15.66 MB / 378.7 MB Notification: Performance of SimCode: time 8.91e-07/0.7746, allocations: 0 / 0.5959 GB, free: 15.66 MB / 378.7 MB Notification: Performance of Templates: time 0.02798/0.8026, allocations: 18.78 MB / 0.6143 GB, free: 12.89 MB / 394.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/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_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches