Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Graetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007362/0.0007362, allocations: 92.44 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008969/0.0008969, allocations: 203.2 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.298/1.298, allocations: 227.7 MB / 246.8 MB, free: 9.648 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002053/0.0002053, allocations: 4 kB / 307.7 MB, free: 0.6016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08495/0.08517, allocations: 51.52 MB / 359.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.004472/0.08966, allocations: 4.801 MB / 364.1 MB, free: 8.262 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007689/0.09737, allocations: 6.696 MB / 370.8 MB, free: 1.543 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003673/0.09775, allocations: 35.75 kB / 370.8 MB, free: 1.508 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00109/0.09885, allocations: 478.3 kB / 371.3 MB, free: 1.039 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001489/0.1004, allocations: 0.6756 MB / 371.9 MB, free: 368 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007497/0.1011, allocations: 327 kB / 372.3 MB, free: 40 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1574/0.2585, allocations: 1.99 MB / 374.2 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002767/0.2588, allocations: 151.5 kB / 374.4 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004196/0.2593, allocations: 338 kB / 374.7 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000347/0.2596, allocations: 329.2 kB / 375 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.471e-05/0.2597, allocations: 16.41 kB / 375.1 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00112/0.2608, allocations: 485.7 kB / 375.5 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.94e-05/0.2609, allocations: 97.88 kB / 375.6 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003332/0.2613, allocations: 458 kB / 376.1 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00122/0.2625, allocations: 1.239 MB / 377.3 MB, free: 8.797 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.095e-06/0.2625, allocations: 0 / 377.3 MB, free: 8.797 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2625, allocations: 0.8438 kB / 377.3 MB, free: 8.797 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.401e-05/0.2625, allocations: 3 kB / 377.3 MB, free: 8.797 MB / 302.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.00146/0.264, allocations: 1.287 MB / 378.6 MB, free: 7.902 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.264, allocations: 9.469 kB / 378.6 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002742/0.2643, allocations: 145.8 kB / 378.8 MB, free: 7.832 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009563/0.2653, allocations: 0.8534 MB / 379.6 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.2653, allocations: 17.09 kB / 379.6 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.798e-05/0.2654, allocations: 25.75 kB / 379.7 MB, free: 7.441 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005143/0.2659, allocations: 307.6 kB / 380 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.2659, allocations: 7.266 kB / 380 MB, free: 7.383 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.196e-05/0.266, allocations: 13.75 kB / 380 MB, free: 7.379 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.266, allocations: 9 kB / 380 MB, free: 7.375 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004026/0.2664, allocations: 230.7 kB / 380.2 MB, free: 7.375 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00157/0.268, allocations: 1.128 MB / 381.3 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000362/0.2683, allocations: 249.2 kB / 381.6 MB, free: 6.996 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004541/0.2688, allocations: 300.5 kB / 381.9 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000748/0.2696, allocations: 0.8332 MB / 382.7 MB, free: 6.137 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.024e-05/0.2696, allocations: 41.28 kB / 382.7 MB, free: 6.098 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 1.693e-06/0.2696, allocations: 1.219 kB / 382.7 MB, free: 6.098 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.002751/0.2724, allocations: 1.577 MB / 384.3 MB, free: 5.414 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.61e-05/0.2724, allocations: 113.9 kB / 384.4 MB, free: 5.289 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001092/0.2735, allocations: 0.9347 MB / 385.4 MB, free: 5.109 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.062e-05/0.2735, allocations: 31.98 kB / 385.4 MB, free: 5.074 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002206/0.2738, allocations: 349.8 kB / 385.7 MB, free: 4.797 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.297e-05/0.2739, allocations: 136.2 kB / 385.9 MB, free: 4.691 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.674e-05/0.2739, allocations: 41.62 kB / 385.9 MB, free: 4.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.365e-05/0.274, allocations: 322.9 kB / 386.2 MB, free: 4.348 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002469/0.2742, allocations: 124.4 kB / 386.4 MB, free: 4.297 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002622/0.2745, allocations: 166.4 kB / 386.5 MB, free: 4.223 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001381/0.2759, allocations: 0.7514 MB / 387.3 MB, free: 3.844 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-06/0.2759, allocations: 0 / 387.3 MB, free: 3.844 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008827/0.2768, allocations: 0.5626 MB / 387.8 MB, free: 3.566 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.61e-05/0.2768, allocations: 41.23 kB / 387.9 MB, free: 3.531 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.04e-05/0.2769, allocations: 17 kB / 387.9 MB, free: 3.531 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002103/0.2771, allocations: 69.42 kB / 388 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002332/0.2773, allocations: 50.75 kB / 388 MB, free: 3.496 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001718/0.2791, allocations: 2.998 MB / 391 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002857/0.2794, allocations: 18.28 kB / 391 MB, free: 0.582 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.769e-05/0.2794, allocations: 21.48 kB / 391 MB, free: 0.5781 MB / 302.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.0003126/0.2797, allocations: 252.2 kB / 391.3 MB, free: 384 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001305/0.2799, allocations: 120.8 kB / 391.4 MB, free: 320 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001322/0.2812, allocations: 0.6676 MB / 392.1 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.742e-06/0.2812, allocations: 3.906 kB / 392.1 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.2812, allocations: 10.45 kB / 392.1 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.2813, allocations: 5.453 kB / 392.1 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008063/0.2821, allocations: 0.6148 MB / 392.7 MB, free: 15.63 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.391e-05/0.2821, allocations: 12.61 kB / 392.7 MB, free: 15.63 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001928/0.2823, allocations: 39.28 kB / 392.8 MB, free: 15.62 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001855/0.2825, allocations: 65.72 kB / 392.8 MB, free: 15.6 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.88e-05/0.2825, allocations: 19.83 kB / 392.8 MB, free: 15.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002188/0.2847, allocations: 2.994 MB / 395.8 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.2848, allocations: 8.062 kB / 395.8 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001313/0.2861, allocations: 0.8676 MB / 396.7 MB, free: 12.21 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00033/0.2864, allocations: 277.2 kB / 397 MB, free: 12.02 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.2865, allocations: 11.16 kB / 397 MB, free: 12.01 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002873/0.2868, allocations: 15.55 kB / 397 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.578e-05/0.2869, allocations: 28.05 kB / 397 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.182e-05/0.287, allocations: 20.14 kB / 397.1 MB, free: 12 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007352/0.2877, allocations: 0.6281 MB / 397.7 MB, free: 11.73 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2877, allocations: 1.375 kB / 397.7 MB, free: 11.73 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009081/0.2886, allocations: 227 kB / 397.9 MB, free: 11.69 MB / 318.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.0005454/0.2892, allocations: 309.2 kB / 398.2 MB, free: 11.55 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001098/0.2903, allocations: 0.7795 MB / 399 MB, free: 11 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.2903, allocations: 1.125 kB / 399 MB, free: 11 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006766/0.291, allocations: 0.621 MB / 399.6 MB, free: 10.49 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006651/0.2917, allocations: 110.4 kB / 399.7 MB, free: 10.43 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002377/0.2941, allocations: 1.997 MB / 401.7 MB, free: 9.199 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004765/0.2945, allocations: 0.9999 MB / 402.7 MB, free: 8.488 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003331/0.2949, allocations: 94.75 kB / 402.8 MB, free: 8.461 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.332e-05/0.295, allocations: 47.58 kB / 402.9 MB, free: 8.453 MB / 318.1 MB Notification: Performance of SimCode: time 4.51e-07/0.295, allocations: 0 / 402.9 MB, free: 8.453 MB / 318.1 MB Notification: Performance of Templates: time 0.01554/0.3105, allocations: 8.352 MB / 411.2 MB, free: 2.035 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches