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.001303/0.001303, allocations: 108 kB / 17.28 MB, free: 6.199 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.001086/0.001086, allocations: 193.3 kB / 18.21 MB, free: 5.273 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.315/1.315, allocations: 222.9 MB / 241.9 MB, free: 13.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001011/0.001011, allocations: 46.95 kB / 300.8 MB, free: 5.992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07718/0.07821, allocations: 49.45 MB / 350.2 MB, free: 4.539 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.005376/0.08362, allocations: 5.181 MB / 355.4 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007272/0.09091, allocations: 6.555 MB / 362 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006678/0.09161, allocations: 35.69 kB / 362 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001285/0.09295, allocations: 461.5 kB / 362.5 MB, free: 8.266 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002131/0.0951, allocations: 0.6952 MB / 363.2 MB, free: 7.566 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001116/0.09623, allocations: 380.4 kB / 363.5 MB, free: 7.195 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002771/0.09902, allocations: 2.024 MB / 365.6 MB, free: 5.164 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003085/0.09934, allocations: 171 kB / 365.7 MB, free: 4.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004885/0.09984, allocations: 350.1 kB / 366.1 MB, free: 4.637 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004229/0.1003, allocations: 341.7 kB / 366.4 MB, free: 4.301 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.625e-05/0.1004, allocations: 32 kB / 366.4 MB, free: 4.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009898/0.1014, allocations: 491.5 kB / 366.9 MB, free: 3.789 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000109/0.1015, allocations: 115.2 kB / 367 MB, free: 3.676 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003862/0.1019, allocations: 445.1 kB / 367.5 MB, free: 3.238 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009907/0.1029, allocations: 0.9507 MB / 368.4 MB, free: 2.285 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1029, allocations: 0 / 368.4 MB, free: 2.285 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1029, allocations: 0 / 368.4 MB, free: 2.285 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.456e-05/0.1029, allocations: 0 / 368.4 MB, free: 2.285 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.001873/0.1048, allocations: 1.436 MB / 369.8 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.1049, allocations: 12.03 kB / 369.9 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001778/0.1051, allocations: 130.3 kB / 370 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1592/0.2642, allocations: 0.8466 MB / 370.8 MB, free: 25.58 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.562e-05/0.2643, allocations: 16.69 kB / 370.8 MB, free: 25.58 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.754e-05/0.2644, allocations: 24.38 kB / 370.9 MB, free: 25.58 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005854/0.265, allocations: 304.1 kB / 371.2 MB, free: 25.53 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.265, allocations: 0 / 371.2 MB, free: 25.53 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.327e-05/0.265, allocations: 12.5 kB / 371.2 MB, free: 25.53 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.288e-06/0.265, allocations: 7.688 kB / 371.2 MB, free: 25.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000417/0.2655, allocations: 230.1 kB / 371.4 MB, free: 25.53 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001741/0.2672, allocations: 1.116 MB / 372.5 MB, free: 25.1 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000387/0.2676, allocations: 241.7 kB / 372.8 MB, free: 24.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004585/0.2681, allocations: 300.2 kB / 373.1 MB, free: 24.87 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008181/0.2689, allocations: 0.7566 MB / 373.8 MB, free: 24.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.198e-05/0.269, allocations: 37.12 kB / 373.8 MB, free: 24.06 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 2.294e-06/0.269, allocations: 0 / 373.8 MB, free: 24.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.002804/0.2718, allocations: 1.552 MB / 375.4 MB, free: 23.13 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.644e-05/0.2718, allocations: 112.8 kB / 375.5 MB, free: 23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009573/0.2728, allocations: 0.9316 MB / 376.4 MB, free: 22.63 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.258e-05/0.2728, allocations: 33.16 kB / 376.5 MB, free: 22.6 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000211/0.2731, allocations: 353.7 kB / 376.8 MB, free: 22.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.802e-05/0.2731, allocations: 139.7 kB / 377 MB, free: 22.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001489/0.2733, allocations: 114.2 kB / 377.1 MB, free: 22.15 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.664e-05/0.2734, allocations: 322.8 kB / 377.4 MB, free: 21.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002209/0.2736, allocations: 120.4 kB / 377.5 MB, free: 21.79 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002429/0.2738, allocations: 160.4 kB / 377.7 MB, free: 21.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001288/0.2751, allocations: 0.7344 MB / 378.4 MB, free: 21.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.2751, allocations: 0.6562 kB / 378.4 MB, free: 21.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008615/0.276, allocations: 0.5602 MB / 378.9 MB, free: 21.06 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.66e-05/0.2761, allocations: 39.64 kB / 379 MB, free: 21.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.041e-05/0.2761, allocations: 15.38 kB / 379 MB, free: 21.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002082/0.2763, allocations: 70.7 kB / 379.1 MB, free: 20.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000228/0.2766, allocations: 45.77 kB / 379.1 MB, free: 20.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001794/0.2784, allocations: 3.339 MB / 382.5 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00035/0.2787, allocations: 15.47 kB / 382.5 MB, free: 17.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.457e-05/0.2788, allocations: 23.62 kB / 382.5 MB, free: 17.74 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.0003515/0.2791, allocations: 253.6 kB / 382.7 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001354/0.2793, allocations: 125.9 kB / 382.9 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001247/0.2805, allocations: 0.661 MB / 383.5 MB, free: 17.15 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.2806, allocations: 4.75 kB / 383.5 MB, free: 17.15 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.2806, allocations: 1.344 kB / 383.5 MB, free: 17.15 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.2806, allocations: 3.281 kB / 383.5 MB, free: 17.15 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007474/0.2813, allocations: 0.6108 MB / 384.1 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.659e-05/0.2814, allocations: 21.27 kB / 384.2 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001807/0.2816, allocations: 34.73 kB / 384.2 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001757/0.2817, allocations: 74.39 kB / 384.3 MB, free: 16.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.418e-05/0.2818, allocations: 20.3 kB / 384.3 MB, free: 16.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001727/0.2835, allocations: 3.334 MB / 387.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.2835, allocations: 0 / 387.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00125/0.2848, allocations: 0.8515 MB / 388.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003492/0.2852, allocations: 275.5 kB / 388.7 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.2853, allocations: 7.422 kB / 388.8 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002842/0.2856, allocations: 19.81 kB / 388.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.706e-05/0.2857, allocations: 33.2 kB / 388.8 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.191e-05/0.2857, allocations: 19.62 kB / 388.8 MB, free: 12.8 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000763/0.2865, allocations: 0.6252 MB / 389.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2865, allocations: 0 / 389.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008192/0.2873, allocations: 227.1 kB / 389.7 MB, free: 12.52 MB / 302.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.000558/0.2879, allocations: 297.4 kB / 390 MB, free: 12.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001147/0.289, allocations: 0.8006 MB / 390.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.2891, allocations: 0 / 390.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005733/0.2896, allocations: 0.6102 MB / 391.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006232/0.2903, allocations: 110.6 kB / 391.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002177/0.2925, allocations: 1.954 MB / 393.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004643/0.2929, allocations: 0.9998 MB / 394.4 MB, free: 9.324 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.2931, allocations: 49.73 kB / 394.5 MB, free: 9.316 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2931, allocations: 4 kB / 394.5 MB, free: 9.312 MB / 302.1 MB Notification: Performance of Templates: time 0.01814/0.3112, allocations: 17.31 MB / 411.8 MB, free: 11.88 MB / 318.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