Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Graetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|D1.pin|D3.n.v",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 180.8 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.259/1.259, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008835/0.0008835, allocations: 101.1 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002261/0.0002261, allocations: 11.98 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1978/0.1981, allocations: 50.39 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09221/0.2903, allocations: 88.39 MB / 489.9 MB, free: 8.094 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001981/0.2905, allocations: 75.97 kB / 489.9 MB, free: 8.02 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.275/0.5656, allocations: 38.3 MB / 0.5159 GB, free: 89.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.5656, allocations: 0 / 0.5159 GB, free: 89.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.836e-05/0.5657, allocations: 15.22 kB / 0.5159 GB, free: 89.57 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.00177/0.5674, allocations: 1.391 MB / 0.5172 GB, free: 88.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.5675, allocations: 8.969 kB / 0.5173 GB, free: 88.61 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00012/0.5676, allocations: 129.6 kB / 0.5174 GB, free: 88.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000831/0.5684, allocations: 0.7211 MB / 0.5181 GB, free: 88.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.829e-05/0.5685, allocations: 15.56 kB / 0.5181 GB, free: 88.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.235e-05/0.5685, allocations: 29.25 kB / 0.5181 GB, free: 88.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000438/0.569, allocations: 316.3 kB / 0.5184 GB, free: 88.13 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.569, allocations: 0 / 0.5184 GB, free: 88.13 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.956e-05/0.569, allocations: 4 kB / 0.5184 GB, free: 88.12 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.569, allocations: 9.984 kB / 0.5184 GB, free: 88.12 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003261/0.5694, allocations: 227.2 kB / 0.5187 GB, free: 88.05 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001473/0.5709, allocations: 1.186 MB / 0.5198 GB, free: 87.39 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003231/0.5712, allocations: 245.9 kB / 0.52 GB, free: 87.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001056/0.5723, allocations: 1.273 MB / 0.5213 GB, free: 85.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.844e-05/0.5723, allocations: 37.41 kB / 0.5213 GB, free: 85.89 MB / 378.7 MB Notification: Performance of pre-optimization done (n=38): time 1.823e-06/0.5723, allocations: 0 / 0.5213 GB, free: 85.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=39): time 0.002766/0.5751, allocations: 2.057 MB / 0.5233 GB, free: 84.36 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.653e-05/0.5751, allocations: 113.6 kB / 0.5234 GB, free: 84.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006892/0.5758, allocations: 0.7811 MB / 0.5242 GB, free: 83.91 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.788e-05/0.5759, allocations: 29.7 kB / 0.5242 GB, free: 83.88 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001952/0.5761, allocations: 360.3 kB / 0.5246 GB, free: 83.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.947e-05/0.5761, allocations: 132.6 kB / 0.5247 GB, free: 83.49 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.932e-05/0.5762, allocations: 4 kB / 0.5247 GB, free: 83.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.886e-05/0.5762, allocations: 321.5 kB / 0.525 GB, free: 83.17 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000203/0.5764, allocations: 119.6 kB / 0.5251 GB, free: 83.13 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002021/0.5766, allocations: 159.2 kB / 0.5253 GB, free: 83.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002332/0.5769, allocations: 178.2 kB / 0.5255 GB, free: 82.95 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.5769, allocations: 3.953 kB / 0.5255 GB, free: 82.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007157/0.5776, allocations: 0.5233 MB / 0.526 GB, free: 82.69 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.34e-05/0.5777, allocations: 39.58 kB / 0.526 GB, free: 82.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.62e-05/0.5777, allocations: 15.72 kB / 0.526 GB, free: 82.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002058/0.5779, allocations: 75.2 kB / 0.5261 GB, free: 82.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002025/0.5781, allocations: 38.5 kB / 0.5261 GB, free: 82.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001661/0.5798, allocations: 3.009 MB / 0.5291 GB, free: 79.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003018/0.5801, allocations: 9.688 kB / 0.5291 GB, free: 79.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.722e-05/0.5802, allocations: 19.08 kB / 0.5291 GB, free: 79.68 MB / 378.7 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 () * Number of clocked 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.0003194/0.5805, allocations: 251.8 kB / 0.5293 GB, free: 79.47 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.5806, allocations: 119.1 kB / 0.5294 GB, free: 79.41 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001218/0.5818, allocations: 0.6904 MB / 0.5301 GB, free: 79.08 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.5818, allocations: 6.938 kB / 0.5301 GB, free: 79.08 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.5818, allocations: 3.469 kB / 0.5301 GB, free: 79.08 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.5819, allocations: 11.97 kB / 0.5301 GB, free: 79.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005601/0.5824, allocations: 0.6083 MB / 0.5307 GB, free: 78.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.08e-05/0.5825, allocations: 18.81 kB / 0.5308 GB, free: 78.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001728/0.5826, allocations: 30.69 kB / 0.5308 GB, free: 78.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001582/0.5828, allocations: 67.86 kB / 0.5309 GB, free: 78.69 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.216e-05/0.5828, allocations: 15.5 kB / 0.5309 GB, free: 78.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001526/0.5844, allocations: 3.01 MB / 0.5338 GB, free: 75.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.5844, allocations: 128 / 0.5338 GB, free: 75.73 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001031/0.5854, allocations: 0.8575 MB / 0.5346 GB, free: 74.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003245/0.5858, allocations: 284.7 kB / 0.5349 GB, free: 74.65 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.692e-05/0.5859, allocations: 8 kB / 0.5349 GB, free: 74.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002732/0.5861, allocations: 12 kB / 0.5349 GB, free: 74.63 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.842e-05/0.5862, allocations: 30.12 kB / 0.535 GB, free: 74.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.42e-05/0.5863, allocations: 23.52 kB / 0.535 GB, free: 74.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005627/0.5868, allocations: 0.6167 MB / 0.5356 GB, free: 74.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.52e-07/0.5868, allocations: 0 / 0.5356 GB, free: 74.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008273/0.5877, allocations: 255.3 kB / 0.5358 GB, free: 73.83 MB / 378.7 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 () * Number of clocked 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.0005294/0.5882, allocations: 403.8 kB / 0.5362 GB, free: 73.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008331/0.5891, allocations: 0.7622 MB / 0.537 GB, free: 72.73 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.5891, allocations: 0 / 0.537 GB, free: 72.73 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000476/0.5896, allocations: 0.6104 MB / 0.5376 GB, free: 72.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004092/0.59, allocations: 103.6 kB / 0.5377 GB, free: 72 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001744/0.5917, allocations: 1.876 MB / 0.5395 GB, free: 70.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003104/0.592, allocations: 1.02 MB / 0.5405 GB, free: 69.34 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002353/0.5923, allocations: 64.95 kB / 0.5405 GB, free: 69.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.357e-05/0.5924, allocations: 39.28 kB / 0.5406 GB, free: 69.26 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.5924, allocations: 0 / 0.5406 GB, free: 69.26 MB / 378.7 MB Notification: Performance of Templates: time 0.01375/0.6061, allocations: 8.963 MB / 0.5493 GB, free: 60.83 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Graetz/Graetz.csv","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches