Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.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.Graetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|D1.pin|D3.n.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz") translateModel(Modelica.Electrical.Spice3.Examples.Graetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|D1.pin|D3.n.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00411/0.00411, allocations: 178 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.091/2.091, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001075/0.001075, allocations: 90.16 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.581e-05/1.579e-05, allocations: 0 / 314.8 MB, free: 9.152 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3324/0.3325, allocations: 47.56 MB / 362.3 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1359/0.4684, allocations: 85.63 MB / 448 MB, free: 0.668 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002716/0.4687, allocations: 67.97 kB / 448 MB, free: 0.6016 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1507/0.6195, allocations: 35.79 MB / 483.8 MB, free: 12.84 MB / 379.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.6195, allocations: 0 / 483.8 MB, free: 12.84 MB / 379.1 MB Notification: Performance of Transformations before backend: time 3.372e-05/0.6196, allocations: 16 kB / 483.8 MB, free: 12.82 MB / 379.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.002368/0.6219, allocations: 1.176 MB / 485 MB, free: 11.6 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.622, allocations: 16.03 kB / 485 MB, free: 11.58 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002421/0.6223, allocations: 126.4 kB / 485.1 MB, free: 11.46 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001587/0.6239, allocations: 0.7227 MB / 485.9 MB, free: 10.68 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.356e-05/0.6239, allocations: 8 kB / 485.9 MB, free: 10.68 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.971e-05/0.624, allocations: 12 kB / 485.9 MB, free: 10.66 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005509/0.6246, allocations: 197 kB / 486.1 MB, free: 10.47 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006503/0.6252, allocations: 265.8 kB / 486.3 MB, free: 10.2 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.6253, allocations: 4 kB / 486.3 MB, free: 10.19 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.436e-05/0.6253, allocations: 7.984 kB / 486.3 MB, free: 10.18 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.244e-05/0.6253, allocations: 4 kB / 486.4 MB, free: 10.18 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002814/0.6282, allocations: 1.132 MB / 487.5 MB, free: 9.008 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000485/0.6287, allocations: 214.5 kB / 487.7 MB, free: 8.789 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006714/0.6294, allocations: 290 kB / 488 MB, free: 8.504 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002053/0.6314, allocations: 1.266 MB / 489.2 MB, free: 6.98 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/0.6315, allocations: 38.56 kB / 489.3 MB, free: 6.934 MB / 379.1 MB Notification: Performance of pre-optimization done (n=38): time 2.715e-06/0.6315, allocations: 0 / 489.3 MB, free: 6.934 MB / 379.1 MB Notification: Performance of matching and sorting (n=39): time 0.003663/0.6352, allocations: 1.154 MB / 490.4 MB, free: 5.723 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.676e-05/0.6353, allocations: 118.8 kB / 490.5 MB, free: 5.582 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001264/0.6366, allocations: 0.7051 MB / 491.3 MB, free: 4.871 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 5.488e-05/0.6366, allocations: 25.7 kB / 491.3 MB, free: 4.84 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003459/0.637, allocations: 352.1 kB / 491.6 MB, free: 4.496 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001551/0.6372, allocations: 130 kB / 491.7 MB, free: 4.367 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.903e-05/0.6372, allocations: 0 / 491.7 MB, free: 4.367 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.6374, allocations: 330.8 kB / 492.1 MB, free: 4.035 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002593/0.6376, allocations: 96.27 kB / 492.2 MB, free: 3.938 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003063/0.6379, allocations: 138.8 kB / 492.3 MB, free: 3.793 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005375/0.6385, allocations: 138.2 kB / 492.4 MB, free: 3.66 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.6385, allocations: 0 / 492.4 MB, free: 3.66 MB / 379.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001227/0.6398, allocations: 390.8 kB / 492.8 MB, free: 3.266 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.18e-05/0.6398, allocations: 41.69 kB / 492.9 MB, free: 3.219 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.775e-05/0.6399, allocations: 20.05 kB / 492.9 MB, free: 3.199 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000326/0.6402, allocations: 65.69 kB / 492.9 MB, free: 3.129 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003715/0.6406, allocations: 35.98 kB / 493 MB, free: 3.094 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003144/0.6438, allocations: 2.9 MB / 495.9 MB, free: 15.96 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006374/0.6445, allocations: 12.02 kB / 495.9 MB, free: 15.95 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.958e-05/0.6446, allocations: 20 kB / 495.9 MB, free: 15.93 MB / 395.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001979/0.6448, allocations: 146.6 kB / 496.1 MB, free: 15.78 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002072/0.645, allocations: 122.5 kB / 496.2 MB, free: 15.66 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002247/0.6472, allocations: 0.6084 MB / 496.8 MB, free: 15.04 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.6473, allocations: 4 kB / 496.8 MB, free: 15.03 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.6473, allocations: 7.953 kB / 496.8 MB, free: 15.02 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.6473, allocations: 0 / 496.8 MB, free: 15.02 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001121/0.6484, allocations: 0.5601 MB / 497.4 MB, free: 14.43 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.941e-05/0.6485, allocations: 16 kB / 497.4 MB, free: 14.41 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003395/0.6488, allocations: 35.91 kB / 497.4 MB, free: 14.38 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002945/0.6492, allocations: 77.78 kB / 497.5 MB, free: 14.3 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.324e-05/0.6492, allocations: 8 kB / 497.5 MB, free: 14.29 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003117/0.6523, allocations: 2.886 MB / 0.4886 GB, free: 11.17 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.845e-06/0.6524, allocations: 4.031 kB / 0.4886 GB, free: 11.16 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00204/0.6545, allocations: 0.7676 MB / 0.4894 GB, free: 10.38 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007273/0.6552, allocations: 287.5 kB / 0.4897 GB, free: 10.07 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001513/0.6554, allocations: 3.953 kB / 0.4897 GB, free: 10.07 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005023/0.6559, allocations: 11.98 kB / 0.4897 GB, free: 10.06 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001342/0.656, allocations: 32.03 kB / 0.4897 GB, free: 10.03 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.313e-05/0.6561, allocations: 15.98 kB / 0.4897 GB, free: 10.01 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001062/0.6572, allocations: 0.5554 MB / 0.4903 GB, free: 9.453 MB / 395.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6572, allocations: 0 / 0.4903 GB, free: 9.453 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001501/0.6587, allocations: 227.8 kB / 0.4905 GB, free: 9.23 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (D3.n.v,D2.pin) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0011/0.6599, allocations: 429.8 kB / 0.4909 GB, free: 8.812 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.001397/0.6613, allocations: 0.7012 MB / 0.4916 GB, free: 8.055 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.6613, allocations: 0 / 0.4916 GB, free: 8.055 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008894/0.6622, allocations: 0.5835 MB / 0.4922 GB, free: 7.414 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007316/0.663, allocations: 77.8 kB / 0.4922 GB, free: 7.34 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002683/0.6657, allocations: 1.11 MB / 0.4933 GB, free: 6.191 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007568/0.6665, allocations: 1.023 MB / 0.4943 GB, free: 5.145 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001677/0.6666, allocations: 39.42 kB / 0.4944 GB, free: 5.105 MB / 395.1 MB Notification: Performance of SimCode: time 8.92e-07/0.6666, allocations: 0 / 0.4944 GB, free: 5.105 MB / 395.1 MB Notification: Performance of Templates: time 0.2872/0.9539, allocations: 16.24 MB / 0.5102 GB, free: 105.1 MB / 395.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Graetz/Graetz.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches