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.001453/0.001453, allocations: 172 kB / 14.1 MB, free: 1.223 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.497/1.497, allocations: 205.2 MB / 219.8 MB, free: 14.19 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.0008825/0.0008826, allocations: 78.72 kB / 268 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.512e-05/2.516e-05, allocations: 0 / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09633/0.09637, allocations: 47.57 MB / 370 MB, free: 1.719 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3545/0.4509, allocations: 101.9 MB / 471.9 MB, free: 7.633 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002535/0.4513, allocations: 71.31 kB / 472 MB, free: 7.598 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3834/0.8346, allocations: 89.48 MB / 0.5483 GB, free: 99.57 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.8347, allocations: 0 / 0.5483 GB, free: 99.57 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.357e-05/0.8347, allocations: 26.25 kB / 0.5483 GB, free: 99.57 MB / 410.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.003054/0.8378, allocations: 1.612 MB / 0.5499 GB, free: 98.66 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.8378, allocations: 9.531 kB / 0.5499 GB, free: 98.66 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000264/0.8381, allocations: 197 kB / 0.5501 GB, free: 98.57 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001965/0.8401, allocations: 1.211 MB / 0.5513 GB, free: 98.14 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.82e-05/0.8401, allocations: 21.42 kB / 0.5513 GB, free: 98.14 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.58e-05/0.8402, allocations: 29.91 kB / 0.5513 GB, free: 98.14 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000717/0.8409, allocations: 454.6 kB / 0.5517 GB, free: 98.05 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.841, allocations: 1.062 kB / 0.5518 GB, free: 98.05 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.606e-05/0.841, allocations: 9.562 kB / 0.5518 GB, free: 98.05 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.627e-05/0.841, allocations: 9.969 kB / 0.5518 GB, free: 98.05 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006161/0.8417, allocations: 376.5 kB / 0.5521 GB, free: 98.05 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002761/0.8444, allocations: 1.652 MB / 0.5537 GB, free: 97.67 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003776/0.8448, allocations: 285.6 kB / 0.554 GB, free: 97.65 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003811/0.8452, allocations: 359.9 kB / 0.5544 GB, free: 97.64 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01429/0.8595, allocations: 18.19 MB / 0.5721 GB, free: 84.29 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000335/0.8599, allocations: 213.5 kB / 0.5723 GB, free: 84.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=29): time 2.605e-06/0.8599, allocations: 0 / 0.5723 GB, free: 84.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008375/0.8608, allocations: 491.1 kB / 0.5728 GB, free: 84.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.301e-05/0.8608, allocations: 165.7 kB / 0.5729 GB, free: 83.91 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001399/0.8622, allocations: 1.214 MB / 0.5741 GB, free: 83.59 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.417e-05/0.8623, allocations: 29.7 kB / 0.5742 GB, free: 83.55 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004596/0.8627, allocations: 0.7253 MB / 0.5749 GB, free: 82.97 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.547e-05/0.8628, allocations: 99.06 kB / 0.575 GB, free: 82.89 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.516e-05/0.8628, allocations: 11.06 kB / 0.575 GB, free: 82.89 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.651e-05/0.8629, allocations: 324.8 kB / 0.5753 GB, free: 82.57 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001696/0.8631, allocations: 109 kB / 0.5754 GB, free: 82.54 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002414/0.8633, allocations: 333.3 kB / 0.5757 GB, free: 82.21 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002154/0.8636, allocations: 151.2 kB / 0.5758 GB, free: 82.16 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.8636, allocations: 3.938 kB / 0.5759 GB, free: 82.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008589/0.8644, allocations: 0.6561 MB / 0.5765 GB, free: 81.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.8645, allocations: 7.844 kB / 0.5765 GB, free: 81.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.133e-05/0.8645, allocations: 42.34 kB / 0.5765 GB, free: 81.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002956/0.8648, allocations: 139.1 kB / 0.5767 GB, free: 81.85 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004079/0.8652, allocations: 117.9 kB / 0.5768 GB, free: 81.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004784/0.8657, allocations: 0.6789 MB / 0.5775 GB, free: 81.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00077/0.8665, allocations: 82.53 kB / 0.5775 GB, free: 81.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.369e-05/0.8666, allocations: 41.3 kB / 0.5776 GB, free: 81.22 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 () * 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.0001324/0.8667, allocations: 139.7 kB / 0.5777 GB, free: 81.09 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001545/0.8669, allocations: 190.3 kB / 0.5779 GB, free: 81 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001551/0.8684, allocations: 0.6822 MB / 0.5785 GB, free: 80.72 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.8685, allocations: 0 / 0.5785 GB, free: 80.72 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.8685, allocations: 0 / 0.5785 GB, free: 80.72 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.8685, allocations: 3.531 kB / 0.5786 GB, free: 80.72 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001735/0.8702, allocations: 1.239 MB / 0.5798 GB, free: 80.06 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.083e-05/0.8703, allocations: 40.62 kB / 0.5798 GB, free: 80.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002667/0.8706, allocations: 68.5 kB / 0.5799 GB, free: 80.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002229/0.8708, allocations: 117.3 kB / 0.58 GB, free: 80.03 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.667e-05/0.8708, allocations: 16.38 kB / 0.58 GB, free: 80.02 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004371/0.8713, allocations: 0.6761 MB / 0.5807 GB, free: 79.45 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.8713, allocations: 7.281 kB / 0.5807 GB, free: 79.45 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000685/0.872, allocations: 0.6479 MB / 0.5813 GB, free: 79.05 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004677/0.8725, allocations: 287.1 kB / 0.5816 GB, free: 78.83 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001522/0.8726, allocations: 7.969 kB / 0.5816 GB, free: 78.83 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004523/0.8731, allocations: 34.14 kB / 0.5816 GB, free: 78.83 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.8732, allocations: 48.14 kB / 0.5817 GB, free: 78.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-05/0.8733, allocations: 26 kB / 0.5817 GB, free: 78.81 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009857/0.8743, allocations: 0.9275 MB / 0.5826 GB, free: 78.41 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.8743, allocations: 0 / 0.5826 GB, free: 78.41 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009941/0.8753, allocations: 363.1 kB / 0.5829 GB, free: 78.36 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) * 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.0008321/0.8761, allocations: 0.6297 MB / 0.5835 GB, free: 78.17 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006865/0.8768, allocations: 411.9 kB / 0.5839 GB, free: 78.01 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.8768, allocations: 384 / 0.5839 GB, free: 78.01 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003452/0.8772, allocations: 256.2 kB / 0.5842 GB, free: 77.89 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007368/0.8779, allocations: 229.8 kB / 0.5844 GB, free: 77.78 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00231/0.8802, allocations: 1.53 MB / 0.5859 GB, free: 77.12 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004615/0.8807, allocations: 1.188 MB / 0.5871 GB, free: 76.38 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005941/0.8813, allocations: 176.7 kB / 0.5872 GB, free: 76.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001227/0.8814, allocations: 75.66 kB / 0.5873 GB, free: 76.33 MB / 410.7 MB Notification: Performance of SimCode: time 8.41e-07/0.8815, allocations: 0 / 0.5873 GB, free: 76.33 MB / 410.7 MB Notification: Performance of Templates: time 0.02913/0.9106, allocations: 19.99 MB / 0.6068 GB, free: 69.05 MB / 410.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