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.001209/0.001209, allocations: 109.7 kB / 17.74 MB, free: 5.32 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.00129/0.00129, allocations: 189.6 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.33/1.33, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00107/0.00107, allocations: 43.92 kB / 352 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2306/0.2317, allocations: 49.43 MB / 401.4 MB, free: 8.719 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.006084/0.2378, allocations: 5.192 MB / 406.6 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008442/0.2463, allocations: 6.627 MB / 413.2 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008299/0.2471, allocations: 47.69 kB / 413.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00148/0.2486, allocations: 0.494 MB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002689/0.2514, allocations: 0.8108 MB / 414.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00139/0.2528, allocations: 442.4 kB / 415 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00319/0.256, allocations: 1.997 MB / 417 MB, free: 9.195 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003334/0.2563, allocations: 167 kB / 417.2 MB, free: 9.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005737/0.2569, allocations: 374.2 kB / 417.5 MB, free: 8.652 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004813/0.2574, allocations: 341.7 kB / 417.9 MB, free: 8.316 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001012/0.2575, allocations: 28 kB / 417.9 MB, free: 8.289 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001082/0.2586, allocations: 495.5 kB / 418.4 MB, free: 7.805 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001091/0.2587, allocations: 115.2 kB / 418.5 MB, free: 7.691 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004258/0.2592, allocations: 441.1 kB / 418.9 MB, free: 7.258 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001829/0.261, allocations: 1.273 MB / 420.2 MB, free: 5.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.261, allocations: 3.938 kB / 420.2 MB, free: 5.977 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.261, allocations: 4 kB / 420.2 MB, free: 5.973 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.97e-05/0.2611, allocations: 0 / 420.2 MB, free: 5.973 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.002119/0.2632, allocations: 1.443 MB / 421.6 MB, free: 4.473 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.2632, allocations: 12.02 kB / 421.6 MB, free: 4.461 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001834/0.2634, allocations: 126.4 kB / 421.8 MB, free: 4.336 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001108/0.2645, allocations: 0.8503 MB / 422.6 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.971e-05/0.2646, allocations: 16.44 kB / 422.6 MB, free: 3.418 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.202e-05/0.2646, allocations: 31.84 kB / 422.7 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005342/0.2652, allocations: 302.7 kB / 423 MB, free: 3.082 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.2652, allocations: 4 kB / 423 MB, free: 3.078 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.167e-05/0.2652, allocations: 4 kB / 423 MB, free: 3.074 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.555e-05/0.2653, allocations: 15.97 kB / 423 MB, free: 3.059 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004085/0.2657, allocations: 225.7 kB / 423.2 MB, free: 2.836 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001745/0.2674, allocations: 1.11 MB / 424.3 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004243/0.2679, allocations: 246.4 kB / 424.6 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004743/0.2684, allocations: 289 kB / 424.8 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009572/0.2693, allocations: 0.7593 MB / 425.6 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/0.2694, allocations: 38.5 kB / 425.6 MB, free: 188 kB / 334.1 MB Notification: Performance of pre-optimization done (n=38): time 2.274e-06/0.2694, allocations: 0 / 425.6 MB, free: 188 kB / 334.1 MB Notification: Performance of matching and sorting (n=39): time 0.003012/0.2724, allocations: 1.556 MB / 427.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.705e-05/0.2725, allocations: 118.8 kB / 427.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001091/0.2736, allocations: 0.9301 MB / 428.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.747e-05/0.2736, allocations: 29.7 kB / 428.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002784/0.2739, allocations: 361.5 kB / 428.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/0.274, allocations: 130.1 kB / 428.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000183/0.2742, allocations: 117.6 kB / 428.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.2744, allocations: 325.9 kB / 429.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002411/0.2746, allocations: 120.6 kB / 429.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002652/0.2749, allocations: 159.8 kB / 429.5 MB, free: 12.19 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001373/0.2763, allocations: 0.7332 MB / 430.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/0.2763, allocations: 4 kB / 430.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009046/0.2772, allocations: 0.5538 MB / 430.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.213e-05/0.2772, allocations: 41.69 kB / 430.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.096e-05/0.2773, allocations: 12 kB / 430.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002277/0.2775, allocations: 81.64 kB / 430.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002328/0.2778, allocations: 43.97 kB / 430.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002571/0.2803, allocations: 3.324 MB / 434.2 MB, free: 7.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003157/0.2807, allocations: 11.94 kB / 434.3 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.972e-05/0.2807, allocations: 23.98 kB / 434.3 MB, free: 7.027 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.000418/0.2812, allocations: 264 kB / 434.5 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000173/0.2813, allocations: 122.4 kB / 434.7 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0013/0.2827, allocations: 0.6685 MB / 435.3 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/0.2827, allocations: 4 kB / 435.3 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.2827, allocations: 4 kB / 435.3 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.2827, allocations: 3.984 kB / 435.3 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007809/0.2835, allocations: 0.6082 MB / 435.9 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.898e-05/0.2835, allocations: 16 kB / 436 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000191/0.2837, allocations: 35.91 kB / 436 MB, free: 5.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001973/0.2839, allocations: 81.59 kB / 436.1 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.606e-05/0.284, allocations: 12 kB / 436.1 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002478/0.2865, allocations: 3.319 MB / 439.4 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.2865, allocations: 3.938 kB / 439.4 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001317/0.2878, allocations: 0.8472 MB / 440.3 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003698/0.2882, allocations: 279.5 kB / 440.5 MB, free: 372 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001165/0.2883, allocations: 8 kB / 440.5 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002812/0.2886, allocations: 8.188 kB / 440.5 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.676e-05/0.2887, allocations: 44.05 kB / 440.6 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.642e-05/0.2888, allocations: 27.98 kB / 440.6 MB, free: 284 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007663/0.2895, allocations: 0.6295 MB / 441.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2895, allocations: 0 / 441.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007845/0.2903, allocations: 227.9 kB / 441.5 MB, free: 15.42 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.0005544/0.2909, allocations: 299.5 kB / 441.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001162/0.2921, allocations: 0.765 MB / 442.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.2921, allocations: 3.938 kB / 442.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006875/0.2928, allocations: 0.6244 MB / 443.2 MB, free: 13.6 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006203/0.2934, allocations: 96.8 kB / 443.2 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002367/0.2958, allocations: 1.622 MB / 444.9 MB, free: 11.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005637/0.2964, allocations: 1 MB / 445.9 MB, free: 10.81 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.2965, allocations: 55.42 kB / 445.9 MB, free: 10.76 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2965, allocations: 0 / 445.9 MB, free: 10.76 MB / 366.1 MB Notification: Performance of Templates: time 0.02185/0.3184, allocations: 17.4 MB / 463.3 MB, free: 9.367 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