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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008899/0.0008902, allocations: 96.12 kB / 16.93 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008914/0.0008914, allocations: 176.3 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.434/1.434, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004511/0.0004512, allocations: 8 kB / 280.7 MB, free: 3.754 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1156, allocations: 47.58 MB / 328.3 MB, free: 4.102 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.006567/0.1222, allocations: 6.228 MB / 334.6 MB, free: 13.85 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02443/0.1467, allocations: 15.74 MB / 350.3 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001792/0.1485, allocations: 31.75 kB / 350.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003121/0.1517, allocations: 0.7196 MB / 351 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008274/0.16, allocations: 1.55 MB / 352.6 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005546/0.1656, allocations: 1.075 MB / 353.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00693/0.1725, allocations: 3.035 MB / 356.7 MB, free: 7.645 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000608/0.1732, allocations: 209.1 kB / 356.9 MB, free: 7.422 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009301/0.1741, allocations: 437.9 kB / 357.3 MB, free: 6.992 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009433/0.1751, allocations: 0.4971 MB / 357.8 MB, free: 6.492 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001839/0.1753, allocations: 23.94 kB / 357.9 MB, free: 6.469 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005231/0.1805, allocations: 1.199 MB / 359 MB, free: 5.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002778/0.1808, allocations: 143 kB / 359.2 MB, free: 5.129 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005989/0.1815, allocations: 320.8 kB / 359.5 MB, free: 4.809 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002608/0.1841, allocations: 1.519 MB / 361 MB, free: 3.285 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1841, allocations: 0 / 361 MB, free: 3.285 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.1841, allocations: 3.938 kB / 361 MB, free: 3.281 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.118e-05/0.1842, allocations: 4 kB / 361 MB, free: 3.277 MB / 302.1 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.003896/0.1881, allocations: 1.803 MB / 362.8 MB, free: 1.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.1882, allocations: 12.03 kB / 362.8 MB, free: 1.398 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005164/0.1887, allocations: 193.7 kB / 363 MB, free: 1.207 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002439/0.1911, allocations: 1.286 MB / 364.3 MB, free: 15.85 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.099e-05/0.1912, allocations: 20.56 kB / 364.3 MB, free: 15.83 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.885e-05/0.1913, allocations: 24 kB / 364.4 MB, free: 15.81 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009409/0.1922, allocations: 449.2 kB / 364.8 MB, free: 15.36 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.1922, allocations: 4 kB / 364.8 MB, free: 15.36 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.796e-05/0.1923, allocations: 15.98 kB / 364.8 MB, free: 15.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.125e-05/0.1923, allocations: 8 kB / 364.8 MB, free: 15.34 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00109/0.1934, allocations: 0.5098 MB / 365.3 MB, free: 14.83 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002875/0.1963, allocations: 1.635 MB / 367 MB, free: 13.13 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009431/0.1973, allocations: 415.3 kB / 367.4 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2257/0.423, allocations: 15.3 MB / 382.7 MB, free: 51.91 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007845/0.4238, allocations: 279.7 kB / 383 MB, free: 51.86 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.475e-06/0.4239, allocations: 0 / 383 MB, free: 51.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.00221/0.4261, allocations: 0.9075 MB / 383.9 MB, free: 51.64 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.998e-05/0.4261, allocations: 62.47 kB / 383.9 MB, free: 51.57 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001978/0.4281, allocations: 1.45 MB / 385.4 MB, free: 51.3 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.364e-05/0.4282, allocations: 35.02 kB / 385.4 MB, free: 51.26 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004993/0.4287, allocations: 0.7204 MB / 386.1 MB, free: 50.7 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.604e-05/0.4288, allocations: 99.53 kB / 386.2 MB, free: 50.62 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.518e-05/0.4288, allocations: 10.53 kB / 386.2 MB, free: 50.62 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.463e-05/0.4289, allocations: 324 kB / 386.5 MB, free: 50.3 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004601/0.4293, allocations: 176.5 kB / 386.7 MB, free: 50.27 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005256/0.4299, allocations: 377.8 kB / 387.1 MB, free: 49.98 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004923/0.4304, allocations: 232.1 kB / 387.3 MB, free: 49.91 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.4304, allocations: 2.094 kB / 387.3 MB, free: 49.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001482/0.4319, allocations: 0.7839 MB / 388.1 MB, free: 49.62 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.625e-05/0.4319, allocations: 11.44 kB / 388.1 MB, free: 49.62 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.88e-05/0.432, allocations: 40.47 kB / 388.2 MB, free: 49.62 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003449/0.4323, allocations: 136.1 kB / 388.3 MB, free: 49.6 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004176/0.4328, allocations: 115.4 kB / 388.4 MB, free: 49.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004723/0.4332, allocations: 0.6813 MB / 389.1 MB, free: 49.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005369/0.4338, allocations: 78.81 kB / 389.2 MB, free: 48.99 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.887e-05/0.4339, allocations: 35.95 kB / 389.2 MB, free: 48.99 MB / 318.1 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.0003688/0.4342, allocations: 273.1 kB / 389.5 MB, free: 48.78 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001632/0.4344, allocations: 187.3 kB / 389.6 MB, free: 48.68 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002072/0.4365, allocations: 0.8058 MB / 390.4 MB, free: 48.44 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.4365, allocations: 7.234 kB / 390.5 MB, free: 48.43 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.4365, allocations: 1.203 kB / 390.5 MB, free: 48.43 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.4365, allocations: 1.359 kB / 390.5 MB, free: 48.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00236/0.4389, allocations: 1.351 MB / 391.8 MB, free: 47.76 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.935e-05/0.439, allocations: 33.75 kB / 391.8 MB, free: 47.76 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002738/0.4393, allocations: 57.28 kB / 391.9 MB, free: 47.76 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002867/0.4396, allocations: 137.6 kB / 392 MB, free: 47.72 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.354e-05/0.4396, allocations: 21.42 kB / 392.1 MB, free: 47.72 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005485/0.4402, allocations: 0.6619 MB / 392.7 MB, free: 47.16 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.4402, allocations: 0.9688 kB / 392.7 MB, free: 47.16 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001318/0.4415, allocations: 0.7873 MB / 393.5 MB, free: 46.74 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003204/0.4418, allocations: 280 kB / 393.8 MB, free: 46.53 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001444/0.442, allocations: 7.969 kB / 393.8 MB, free: 46.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004059/0.4424, allocations: 41.88 kB / 393.8 MB, free: 46.52 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001177/0.4425, allocations: 40.73 kB / 393.9 MB, free: 46.51 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.235e-05/0.4426, allocations: 24.92 kB / 393.9 MB, free: 46.5 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001233/0.4438, allocations: 0.9466 MB / 394.8 MB, free: 46.12 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4438, allocations: 0 / 394.8 MB, free: 46.12 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001172/0.445, allocations: 334.8 kB / 395.2 MB, free: 46.09 MB / 318.1 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.0007748/0.4458, allocations: 0.5584 MB / 395.7 MB, free: 45.95 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001234/0.447, allocations: 0.5567 MB / 396.3 MB, free: 45.77 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.447, allocations: 0 / 396.3 MB, free: 45.77 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006056/0.4477, allocations: 315.3 kB / 396.6 MB, free: 45.62 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006866/0.4484, allocations: 242.1 kB / 396.8 MB, free: 45.48 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002777/0.4512, allocations: 2.52 MB / 399.3 MB, free: 43.93 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004529/0.4516, allocations: 1.186 MB / 400.5 MB, free: 42.99 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005807/0.4522, allocations: 203.8 kB / 400.7 MB, free: 42.89 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.4523, allocations: 89.28 kB / 400.8 MB, free: 42.88 MB / 318.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4523, allocations: 0 / 400.8 MB, free: 42.88 MB / 318.1 MB Notification: Performance of Templates: time 0.02352/0.4759, allocations: 17.97 MB / 418.8 MB, free: 25.06 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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