Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.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.Analog.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Capacitor1.v|Capacitor2.v|Inductor2.i|Inductor3.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier") translateModel(Modelica.Electrical.Analog.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Capacitor1.v|Capacitor2.v|Inductor2.i|Inductor3.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 108.9 kB / 17.16 MB, free: 6.305 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.001062/0.001062, allocations: 198 kB / 18.07 MB, free: 5.41 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.47/1.47, allocations: 205.1 MB / 223.9 MB, free: 12.45 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.002104/0.002105, allocations: 55.86 kB / 280 MB, free: 3.598 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1321, allocations: 46.62 MB / 326.6 MB, free: 4.902 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.005934/0.1381, allocations: 4.232 MB / 330.8 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002077/0.1402, allocations: 0.9589 MB / 331.8 MB, free: 15.67 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005952/0.1408, allocations: 8 kB / 331.8 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004266/0.1413, allocations: 71.44 kB / 331.9 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008805/0.1422, allocations: 170.6 kB / 332 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004972/0.1427, allocations: 135.9 kB / 332.2 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001149/0.1439, allocations: 0.7205 MB / 332.9 MB, free: 14.57 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004323/0.1443, allocations: 188.2 kB / 333.1 MB, free: 14.38 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005423/0.1449, allocations: 258.9 kB / 333.3 MB, free: 14.13 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004619/0.1454, allocations: 318.5 kB / 333.6 MB, free: 13.82 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.819e-05/0.1455, allocations: 44 kB / 333.7 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001081/0.1456, allocations: 44 kB / 333.7 MB, free: 13.73 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001559/0.1457, allocations: 127.5 kB / 333.8 MB, free: 13.61 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003346/0.1461, allocations: 314.3 kB / 334.1 MB, free: 13.3 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006367/0.1467, allocations: 0.6733 MB / 334.8 MB, free: 12.62 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.1467, allocations: 0 / 334.8 MB, free: 12.62 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1467, allocations: 0 / 334.8 MB, free: 12.62 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.1468, allocations: 0 / 334.8 MB, free: 12.62 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001502/0.1483, allocations: 0.908 MB / 335.7 MB, free: 11.66 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.1483, allocations: 16.03 kB / 335.7 MB, free: 11.65 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000115/0.1484, allocations: 64.19 kB / 335.8 MB, free: 11.59 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004608/0.1489, allocations: 377.9 kB / 336.2 MB, free: 11.18 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.605e-05/0.149, allocations: 37.69 kB / 336.2 MB, free: 11.14 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.409e-05/0.149, allocations: 52.38 kB / 336.3 MB, free: 11.09 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008836/0.1499, allocations: 0.5493 MB / 336.8 MB, free: 10.51 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.15, allocations: 4 kB / 336.8 MB, free: 10.51 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.608e-05/0.15, allocations: 20 kB / 336.8 MB, free: 10.49 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/0.15, allocations: 12 kB / 336.8 MB, free: 10.48 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008169/0.1509, allocations: 451.6 kB / 337.3 MB, free: 10.04 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0028/0.1537, allocations: 2.042 MB / 339.3 MB, free: 7.906 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009102/0.1546, allocations: 0.6337 MB / 340 MB, free: 7.25 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005899/0.1552, allocations: 414.1 kB / 340.4 MB, free: 6.844 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.945e-05/0.1552, allocations: 4.562 kB / 340.4 MB, free: 6.836 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.1553, allocations: 43.12 kB / 340.4 MB, free: 6.785 MB / 286.1 MB Notification: Performance of pre-optimization done (n=60): time 2.134e-06/0.1553, allocations: 0 / 340.4 MB, free: 6.785 MB / 286.1 MB Notification: Performance of matching and sorting (n=61): time 0.004501/0.1598, allocations: 2.028 MB / 342.4 MB, free: 4.637 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.367e-05/0.1599, allocations: 59.97 kB / 342.5 MB, free: 4.566 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004018/0.1603, allocations: 361.7 kB / 342.9 MB, free: 4.203 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.631e-05/0.1603, allocations: 41.7 kB / 342.9 MB, free: 4.156 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001544/0.1605, allocations: 229.2 kB / 343.1 MB, free: 3.93 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001583/0.1607, allocations: 205 kB / 343.3 MB, free: 3.727 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001463/0.1608, allocations: 90.25 kB / 343.4 MB, free: 3.633 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.161, allocations: 350.8 kB / 343.7 MB, free: 3.281 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003404/0.1613, allocations: 169 kB / 343.9 MB, free: 3.117 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000379/0.1617, allocations: 219.8 kB / 344.1 MB, free: 2.895 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006763/0.1624, allocations: 372.9 kB / 344.5 MB, free: 2.527 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.1624, allocations: 7.938 kB / 344.5 MB, free: 2.52 MB / 286.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001249/0.1637, allocations: 0.6656 MB / 345.2 MB, free: 1.832 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.1637, allocations: 7.938 kB / 345.2 MB, free: 1.824 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.1637, allocations: 4 kB / 345.2 MB, free: 1.82 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007513/0.1645, allocations: 255.2 kB / 345.4 MB, free: 1.559 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002927/0.1648, allocations: 59.91 kB / 345.5 MB, free: 1.5 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00609/0.1709, allocations: 6.765 MB / 352.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003421/0.1713, allocations: 20.02 kB / 352.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.128e-05/0.1713, allocations: 20.06 kB / 352.3 MB, free: 10.16 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 (IdealDiode6.off,IdealDiode5.off,IdealDiode4.off,IdealDiode3.off,IdealDiode2.off,IdealDiode1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002547/0.1716, allocations: 178.4 kB / 352.5 MB, free: 9.973 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.607e-05/0.1717, allocations: 47.44 kB / 352.5 MB, free: 9.926 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000106/0.1718, allocations: 60.95 kB / 352.6 MB, free: 9.863 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.1718, allocations: 15.92 kB / 352.6 MB, free: 9.848 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.1718, allocations: 3.938 kB / 352.6 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.1718, allocations: 7.984 kB / 352.6 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001995/0.1738, allocations: 1.349 MB / 353.9 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.1738, allocations: 3.938 kB / 353.9 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002651/0.1741, allocations: 51.97 kB / 354 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006692/0.1748, allocations: 263 kB / 354.3 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.144e-05/0.1748, allocations: 11.98 kB / 354.3 MB, free: 8.082 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0061/0.1809, allocations: 6.773 MB / 361 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.181, allocations: 0 / 361 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001762/0.1827, allocations: 1.033 MB / 362.1 MB, free: 15.71 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000189/0.1829, allocations: 152.5 kB / 362.2 MB, free: 15.54 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.733e-05/0.183, allocations: 15.94 kB / 362.2 MB, free: 15.53 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003098/0.1833, allocations: 16.45 kB / 362.3 MB, free: 15.51 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001535/0.1835, allocations: 56.48 kB / 362.3 MB, free: 15.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.76e-05/0.1835, allocations: 12 kB / 362.3 MB, free: 15.45 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002688/0.1838, allocations: 263.2 kB / 362.6 MB, free: 15.19 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1838, allocations: 0 / 362.6 MB, free: 15.19 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008512/0.1847, allocations: 175.9 kB / 362.7 MB, free: 15.02 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Inductor2.i,Inductor3.i,Capacitor1.v,Capacitor2.v) * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001638/0.1848, allocations: 119.5 kB / 362.9 MB, free: 14.89 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001516/0.1864, allocations: 1.029 MB / 363.9 MB, free: 13.81 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1864, allocations: 4 kB / 363.9 MB, free: 13.8 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001136/0.1875, allocations: 0.8258 MB / 364.7 MB, free: 12.93 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006667/0.1882, allocations: 85.55 kB / 364.8 MB, free: 12.84 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002638/0.1908, allocations: 1.5 MB / 366.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005681/0.1914, allocations: 0.8754 MB / 367.2 MB, free: 10.42 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001941/0.1916, allocations: 56.53 kB / 367.2 MB, free: 10.36 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.631e-05/0.1917, allocations: 27.38 kB / 367.3 MB, free: 10.34 MB / 318.1 MB Notification: Performance of SimCode: time 1.393e-06/0.1917, allocations: 0 / 367.3 MB, free: 10.34 MB / 318.1 MB Notification: Performance of Templates: time 0.01443/0.2062, allocations: 8.207 MB / 375.5 MB, free: 2.129 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches