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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 110.9 kB / 17.74 MB, free: 5.316 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.001565/0.001565, allocations: 184.5 kB / 18.67 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.275/1.275, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00102/0.00102, allocations: 51.92 kB / 352 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2434, allocations: 49.42 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.005373/0.2488, allocations: 5.204 MB / 406.6 MB, free: 3.625 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007455/0.2563, allocations: 6.616 MB / 413.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004959/0.2568, allocations: 43.69 kB / 413.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001087/0.2579, allocations: 0.494 MB / 413.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00207/0.26, allocations: 0.8264 MB / 414.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001101/0.2611, allocations: 430.4 kB / 415 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002657/0.2638, allocations: 1.997 MB / 417 MB, free: 9.188 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002764/0.2641, allocations: 167 kB / 417.2 MB, free: 9.012 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004857/0.2646, allocations: 374.2 kB / 417.5 MB, free: 8.645 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003708/0.265, allocations: 349.7 kB / 417.9 MB, free: 8.301 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.084e-05/0.2651, allocations: 32 kB / 417.9 MB, free: 8.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009819/0.266, allocations: 487.5 kB / 418.4 MB, free: 7.793 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.785e-05/0.2661, allocations: 115.2 kB / 418.5 MB, free: 7.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003421/0.2665, allocations: 441.1 kB / 418.9 MB, free: 7.246 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00134/0.2678, allocations: 1.265 MB / 420.2 MB, free: 5.977 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.722e-06/0.2679, allocations: 3.984 kB / 420.2 MB, free: 5.973 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2679, allocations: 3.938 kB / 420.2 MB, free: 5.969 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.2679, allocations: 0 / 420.2 MB, free: 5.969 MB / 334.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.001809/0.2697, allocations: 1.44 MB / 421.6 MB, free: 4.469 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.2698, allocations: 8.031 kB / 421.6 MB, free: 4.461 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001706/0.2699, allocations: 126.4 kB / 421.8 MB, free: 4.336 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001008/0.2709, allocations: 0.8541 MB / 422.6 MB, free: 3.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.847e-05/0.271, allocations: 20.44 kB / 422.6 MB, free: 3.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.706e-05/0.271, allocations: 27.91 kB / 422.7 MB, free: 3.383 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004946/0.2715, allocations: 306.6 kB / 423 MB, free: 3.074 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.2716, allocations: 0 / 423 MB, free: 3.074 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.115e-05/0.2716, allocations: 11.94 kB / 423 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.2716, allocations: 11.98 kB / 423 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003623/0.272, allocations: 225.7 kB / 423.2 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001568/0.2736, allocations: 1.118 MB / 424.3 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003805/0.274, allocations: 242.4 kB / 424.6 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004535/0.2744, allocations: 301 kB / 424.9 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008829/0.2753, allocations: 0.7477 MB / 425.6 MB, free: 224 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.712e-05/0.2754, allocations: 34.56 kB / 425.6 MB, free: 180 kB / 334.1 MB Notification: Performance of pre-optimization done (n=38): time 2.014e-06/0.2754, allocations: 0 / 425.6 MB, free: 180 kB / 334.1 MB Notification: Performance of matching and sorting (n=39): time 0.002688/0.2781, allocations: 1.556 MB / 427.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.789e-05/0.2782, allocations: 114.8 kB / 427.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009885/0.2792, allocations: 0.934 MB / 428.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.347e-05/0.2792, allocations: 29.7 kB / 428.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002449/0.2795, allocations: 365.5 kB / 428.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.354e-05/0.2796, allocations: 130.1 kB / 428.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001543/0.2797, allocations: 113.6 kB / 428.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.2798, allocations: 325.9 kB / 429.2 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002196/0.2801, allocations: 120.6 kB / 429.3 MB, free: 12.35 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002388/0.2803, allocations: 151.8 kB / 429.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001274/0.2816, allocations: 0.741 MB / 430.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.2816, allocations: 0 / 430.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008388/0.2824, allocations: 0.5654 MB / 430.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.71e-05/0.2825, allocations: 37.7 kB / 430.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.98e-05/0.2825, allocations: 19.98 kB / 430.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002089/0.2827, allocations: 65.69 kB / 430.9 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002186/0.283, allocations: 47.91 kB / 430.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0024/0.2854, allocations: 3.331 MB / 434.2 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002737/0.2857, allocations: 16.02 kB / 434.3 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.987e-05/0.2857, allocations: 20 kB / 434.3 MB, free: 7.012 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: D2.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D4.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D3.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D1.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real 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 (29): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003444/0.2861, allocations: 255.9 kB / 434.5 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/0.2862, allocations: 130.4 kB / 434.7 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001158/0.2874, allocations: 0.6607 MB / 435.3 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/0.2874, allocations: 7.984 kB / 435.3 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.2874, allocations: 8 kB / 435.3 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.2874, allocations: 0 / 435.3 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006281/0.2881, allocations: 0.6043 MB / 435.9 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.236e-05/0.2881, allocations: 16 kB / 436 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001779/0.2883, allocations: 43.83 kB / 436 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001679/0.2885, allocations: 69.67 kB / 436.1 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.119e-05/0.2885, allocations: 15.98 kB / 436.1 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002228/0.2907, allocations: 3.331 MB / 439.4 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2907, allocations: 0 / 439.4 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001183/0.2919, allocations: 0.8549 MB / 440.3 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003169/0.2923, allocations: 275.4 kB / 440.5 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.247e-05/0.2924, allocations: 8 kB / 440.5 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002732/0.2926, allocations: 11.98 kB / 440.6 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.36e-05/0.2927, allocations: 43.98 kB / 440.6 MB, free: 288 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.623e-05/0.2928, allocations: 16 kB / 440.6 MB, free: 272 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006629/0.2934, allocations: 0.6295 MB / 441.2 MB, free: 15.63 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2934, allocations: 0 / 441.2 MB, free: 15.63 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007181/0.2942, allocations: 228 kB / 441.5 MB, free: 15.41 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (D1.pin,D4.n.v) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004857/0.2947, allocations: 293.2 kB / 441.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001013/0.2957, allocations: 0.7767 MB / 442.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2957, allocations: 0 / 442.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000613/0.2963, allocations: 0.6165 MB / 443.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005481/0.2969, allocations: 108.7 kB / 443.3 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002071/0.299, allocations: 1.625 MB / 444.9 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004782/0.2995, allocations: 0.9961 MB / 445.9 MB, free: 10.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.302e-05/0.2996, allocations: 51.42 kB / 445.9 MB, free: 10.75 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2996, allocations: 0 / 445.9 MB, free: 10.75 MB / 366.1 MB Notification: Performance of Templates: time 0.01909/0.3187, allocations: 17.52 MB / 463.4 MB, free: 9.234 MB / 382.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Graetz/Graetz.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches