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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001651/0.001651, allocations: 108.6 kB / 16.92 MB, free: 5.781 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.002092/0.002092, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.255/2.255, allocations: 222.9 MB / 241.6 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001933, allocations: 46.09 kB / 300.7 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1334, allocations: 49.45 MB / 350.2 MB, free: 4.344 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.01058/0.144, allocations: 5.194 MB / 355.3 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01497/0.159, allocations: 6.635 MB / 362 MB, free: 8.461 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00105/0.1601, allocations: 35.75 kB / 362 MB, free: 8.426 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002864/0.163, allocations: 0.4929 MB / 362.5 MB, free: 7.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004402/0.1675, allocations: 0.8147 MB / 363.3 MB, free: 7.109 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002102/0.1696, allocations: 440.1 kB / 363.8 MB, free: 6.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005311/0.1749, allocations: 1.989 MB / 365.7 MB, free: 4.684 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005159/0.1755, allocations: 163 kB / 365.9 MB, free: 4.508 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008178/0.1763, allocations: 350.3 kB / 366.2 MB, free: 4.164 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007592/0.1771, allocations: 345.7 kB / 366.6 MB, free: 3.824 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001732/0.1773, allocations: 28 kB / 366.6 MB, free: 3.797 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001941/0.1792, allocations: 491.5 kB / 367.1 MB, free: 3.316 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001941/0.1795, allocations: 111.2 kB / 367.2 MB, free: 3.207 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007136/0.1802, allocations: 445.1 kB / 367.6 MB, free: 2.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002571/0.1828, allocations: 1.265 MB / 368.9 MB, free: 1.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.1828, allocations: 0 / 368.9 MB, free: 1.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1828, allocations: 4 kB / 368.9 MB, free: 1.496 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.842e-05/0.1829, allocations: 0 / 368.9 MB, free: 1.496 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.003455/0.1864, allocations: 1.433 MB / 370.3 MB, free: 4 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.2225/0.4088, allocations: 9.453 kB / 370.3 MB, free: 26.07 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001681/0.409, allocations: 60.08 kB / 370.4 MB, free: 26.03 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003822/0.4094, allocations: 129.8 kB / 370.5 MB, free: 26.03 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003642/0.4131, allocations: 0.8494 MB / 371.4 MB, free: 25.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.837e-05/0.4132, allocations: 16.97 kB / 371.4 MB, free: 25.67 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001051/0.4133, allocations: 29.16 kB / 371.4 MB, free: 25.67 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008909/0.4142, allocations: 306.2 kB / 371.7 MB, free: 25.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.4142, allocations: 3.938 kB / 371.7 MB, free: 25.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.036e-05/0.4143, allocations: 9.062 kB / 371.7 MB, free: 25.61 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.608e-05/0.4143, allocations: 8.047 kB / 371.7 MB, free: 25.61 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007377/0.4151, allocations: 227.4 kB / 372 MB, free: 25.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004961/0.42, allocations: 1.122 MB / 373.1 MB, free: 25.05 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006507/0.4207, allocations: 238.4 kB / 373.3 MB, free: 24.94 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008019/0.4215, allocations: 299.2 kB / 373.6 MB, free: 24.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001256/0.4228, allocations: 0.7542 MB / 374.4 MB, free: 24.06 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.208e-05/0.4229, allocations: 40.5 kB / 374.4 MB, free: 24.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 3.176e-06/0.4229, allocations: 0 / 374.4 MB, free: 24.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.005209/0.4281, allocations: 1.551 MB / 376 MB, free: 23.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.843e-05/0.4282, allocations: 109.6 kB / 376.1 MB, free: 22.92 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001739/0.4299, allocations: 0.9367 MB / 377 MB, free: 22.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.458e-05/0.43, allocations: 31.08 kB / 377 MB, free: 22.51 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003416/0.4303, allocations: 360.6 kB / 377.4 MB, free: 22.22 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001282/0.4305, allocations: 130.6 kB / 377.5 MB, free: 22.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000239/0.4307, allocations: 118.2 kB / 377.6 MB, free: 22.06 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.956e-05/0.4308, allocations: 321.3 kB / 377.9 MB, free: 21.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003986/0.4312, allocations: 123.3 kB / 378.1 MB, free: 21.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004334/0.4317, allocations: 160.1 kB / 378.2 MB, free: 21.63 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00378/0.4355, allocations: 0.7318 MB / 378.9 MB, free: 21.26 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.4355, allocations: 1.438 kB / 379 MB, free: 21.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001529/0.437, allocations: 0.558 MB / 379.5 MB, free: 20.97 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.908e-05/0.4371, allocations: 39.62 kB / 379.5 MB, free: 20.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.688e-05/0.4372, allocations: 16.17 kB / 379.6 MB, free: 20.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000345/0.4375, allocations: 74.59 kB / 379.6 MB, free: 20.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004035/0.438, allocations: 42.06 kB / 379.7 MB, free: 20.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0029/0.4409, allocations: 3.335 MB / 383 MB, free: 17.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005982/0.4415, allocations: 12.67 kB / 383 MB, free: 17.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.813e-05/0.4416, allocations: 20.56 kB / 383 MB, free: 17.66 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.0005684/0.4423, allocations: 262.3 kB / 383.3 MB, free: 17.44 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002369/0.4426, allocations: 121 kB / 383.4 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00217/0.4447, allocations: 0.6764 MB / 384.1 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.846e-06/0.4448, allocations: 3.281 kB / 384.1 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.4448, allocations: 6.188 kB / 384.1 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.4448, allocations: 2.062 kB / 384.1 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001198/0.446, allocations: 0.6172 MB / 384.7 MB, free: 16.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.156e-05/0.4461, allocations: 12.92 kB / 384.7 MB, free: 16.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003166/0.4464, allocations: 30.41 kB / 384.8 MB, free: 16.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003091/0.4467, allocations: 73.08 kB / 384.8 MB, free: 16.65 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.606e-05/0.4468, allocations: 23.78 kB / 384.9 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002754/0.4496, allocations: 3.329 MB / 388.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.336e-05/0.4496, allocations: 1.25 kB / 388.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002057/0.4517, allocations: 0.8472 MB / 389 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005237/0.4522, allocations: 275.5 kB / 389.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001719/0.4524, allocations: 15.7 kB / 389.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005282/0.453, allocations: 12.66 kB / 389.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001381/0.4531, allocations: 28.52 kB / 389.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.575e-05/0.4532, allocations: 19.28 kB / 389.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001377/0.4546, allocations: 0.6252 MB / 390 MB, free: 12.45 MB / 302.1 MB Notification: Performance of sort global known variables: time 9.62e-07/0.4546, allocations: 0 / 390 MB, free: 12.45 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001423/0.456, allocations: 225.5 kB / 390.2 MB, free: 12.43 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.003027/0.4591, allocations: 1.607 MB / 391.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001719/0.4608, allocations: 0.781 MB / 392.6 MB, free: 10.83 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4608, allocations: 1.188 kB / 392.6 MB, free: 10.83 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009612/0.4618, allocations: 0.618 MB / 393.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001113/0.4629, allocations: 123.4 kB / 393.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01162/0.4746, allocations: 5.988 MB / 399.3 MB, free: 6.879 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005314/0.4751, allocations: 1.001 MB / 400.3 MB, free: 6.047 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006627/0.4758, allocations: 94.73 kB / 400.4 MB, free: 5.996 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004196/0.4763, allocations: 282.2 kB / 400.7 MB, free: 5.758 MB / 302.1 MB Notification: Performance of SimCode: time 8.21e-07/0.4763, allocations: 0 / 400.7 MB, free: 5.758 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2827/0.759, allocations: 17.03 MB / 417.7 MB, free: 5.711 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.67/18.43, allocations: 19.72 kB / 417.8 MB, free: 5.699 MB / 318.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches