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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001521/0.001521, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001904/0.001904, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001178, allocations: 60.16 kB / 307 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07753/0.07872, allocations: 50.54 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.005594/0.08435, allocations: 5.209 MB / 362.8 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007899/0.09227, allocations: 6.663 MB / 369.4 MB, free: 2.094 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005808/0.09288, allocations: 47.62 kB / 369.5 MB, free: 2.047 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001192/0.0941, allocations: 0.4968 MB / 370 MB, free: 1.547 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002001/0.09612, allocations: 0.8069 MB / 370.8 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001053/0.09718, allocations: 450.4 kB / 371.2 MB, free: 300 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1356/0.2328, allocations: 2.018 MB / 373.3 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003586/0.2332, allocations: 171.8 kB / 373.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000615/0.2338, allocations: 356.1 kB / 373.8 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005323/0.2343, allocations: 340.1 kB / 374.1 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001201/0.2345, allocations: 33.72 kB / 374.1 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001186/0.2357, allocations: 0.4918 MB / 374.6 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001147/0.2358, allocations: 114.9 kB / 374.7 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004194/0.2362, allocations: 446.9 kB / 375.2 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001547/0.2378, allocations: 1.272 MB / 376.4 MB, free: 9.234 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.2378, allocations: 0 / 376.4 MB, free: 9.234 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.2378, allocations: 0 / 376.4 MB, free: 9.234 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.862e-05/0.2378, allocations: 0.9688 kB / 376.5 MB, free: 9.234 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.001625/0.2394, allocations: 1.445 MB / 377.9 MB, free: 8.277 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.2395, allocations: 10.34 kB / 377.9 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.741e-05/0.2395, allocations: 61.39 kB / 378 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002735/0.2398, allocations: 137.6 kB / 378.1 MB, free: 8.172 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001016/0.2409, allocations: 0.8552 MB / 379 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.757e-05/0.2409, allocations: 17.09 kB / 379 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.146e-05/0.2409, allocations: 22.92 kB / 379 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004895/0.2414, allocations: 304.6 kB / 379.3 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.859e-06/0.2415, allocations: 0 / 379.3 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.21e-05/0.2415, allocations: 13.53 kB / 379.3 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.2415, allocations: 13.72 kB / 379.3 MB, free: 7.715 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003902/0.2419, allocations: 229.3 kB / 379.5 MB, free: 7.715 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00149/0.2434, allocations: 1.123 MB / 380.7 MB, free: 7.367 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003591/0.2438, allocations: 239.3 kB / 380.9 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004376/0.2442, allocations: 292.8 kB / 381.2 MB, free: 7.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008189/0.2451, allocations: 0.8349 MB / 382 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.154e-05/0.2451, allocations: 40.25 kB / 382.1 MB, free: 6.344 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 2.595e-06/0.2451, allocations: 2.906 kB / 382.1 MB, free: 6.344 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.002716/0.2478, allocations: 1.55 MB / 383.6 MB, free: 5.375 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.467e-05/0.2479, allocations: 118.2 kB / 383.7 MB, free: 5.242 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001002/0.2489, allocations: 0.9276 MB / 384.7 MB, free: 4.875 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.875e-05/0.2489, allocations: 31.92 kB / 384.7 MB, free: 4.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000219/0.2491, allocations: 362.2 kB / 385 MB, free: 4.551 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.212e-05/0.2492, allocations: 128 kB / 385.2 MB, free: 4.453 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001615/0.2494, allocations: 118.7 kB / 385.3 MB, free: 4.387 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.787e-05/0.2495, allocations: 326 kB / 385.6 MB, free: 4.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000243/0.2497, allocations: 131.6 kB / 385.7 MB, free: 4.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002608/0.25, allocations: 155.2 kB / 385.9 MB, free: 3.949 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001316/0.2513, allocations: 0.7265 MB / 386.6 MB, free: 3.578 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.2513, allocations: 1.125 kB / 386.6 MB, free: 3.578 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000843/0.2522, allocations: 0.5526 MB / 387.2 MB, free: 3.305 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.213e-05/0.2522, allocations: 40.58 kB / 387.2 MB, free: 3.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.772e-05/0.2522, allocations: 12.66 kB / 387.2 MB, free: 3.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002004/0.2524, allocations: 78.14 kB / 387.3 MB, free: 3.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002338/0.2527, allocations: 41.52 kB / 387.3 MB, free: 3.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001813/0.2545, allocations: 3.332 MB / 390.7 MB, free: 0 / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00034/0.2549, allocations: 14.81 kB / 390.7 MB, free: 0 / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.058e-05/0.2549, allocations: 21.05 kB / 390.7 MB, free: 15.99 MB / 318.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.0003554/0.2553, allocations: 266.1 kB / 391 MB, free: 15.77 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001446/0.2554, allocations: 122.1 kB / 391.1 MB, free: 15.71 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00135/0.2568, allocations: 0.6643 MB / 391.7 MB, free: 15.39 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.2568, allocations: 7.25 kB / 391.7 MB, free: 15.39 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.2568, allocations: 5.625 kB / 391.8 MB, free: 15.38 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.2568, allocations: 3 kB / 391.8 MB, free: 15.38 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007701/0.2576, allocations: 0.6155 MB / 392.4 MB, free: 15.03 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.491e-05/0.2577, allocations: 16.02 kB / 392.4 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001894/0.2579, allocations: 35.09 kB / 392.4 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001827/0.258, allocations: 69.31 kB / 392.5 MB, free: 14.99 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.671e-05/0.2581, allocations: 14.59 kB / 392.5 MB, free: 14.99 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002278/0.2604, allocations: 3.34 MB / 395.8 MB, free: 11.75 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2604, allocations: 0 / 395.8 MB, free: 11.75 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001268/0.2617, allocations: 0.8555 MB / 396.7 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003353/0.262, allocations: 272.2 kB / 397 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001157/0.2621, allocations: 12.06 kB / 397 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003067/0.2625, allocations: 12.03 kB / 397 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.789e-05/0.2625, allocations: 35.89 kB / 397 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.674e-05/0.2626, allocations: 16.19 kB / 397 MB, free: 11.07 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007113/0.2633, allocations: 0.6291 MB / 397.7 MB, free: 10.8 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2633, allocations: 5.438 kB / 397.7 MB, free: 10.8 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008471/0.2642, allocations: 224.3 kB / 397.9 MB, free: 10.77 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.001974/0.2662, allocations: 1.593 MB / 399.5 MB, free: 9.73 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001102/0.2673, allocations: 0.7957 MB / 400.3 MB, free: 9.156 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2673, allocations: 0 / 400.3 MB, free: 9.156 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006415/0.2679, allocations: 0.6138 MB / 400.9 MB, free: 8.652 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006437/0.2686, allocations: 126 kB / 401 MB, free: 8.582 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007022/0.2756, allocations: 5.984 MB / 407 MB, free: 5.246 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005218/0.2762, allocations: 1.002 MB / 408 MB, free: 4.367 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003371/0.2765, allocations: 97.62 kB / 408.1 MB, free: 4.27 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003049/0.2768, allocations: 283.3 kB / 408.4 MB, free: 3.992 MB / 318.1 MB Notification: Performance of SimCode: time 4e-07/0.2768, allocations: 0 / 408.4 MB, free: 3.992 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0415/0.3183, allocations: 17.08 MB / 425.5 MB, free: 3.031 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.099/9.417, allocations: 4 kB / 425.5 MB, free: 3.027 MB / 334.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz_res.csv --start-time 0 --stop-time 0.025 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-05 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz_res.csv","/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_trunk_Modelica.Electrical.Spice3.Examples.Graetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches