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.00122/0.001226, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001317/0.001317, allocations: 199.8 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002158/0.002158, allocations: 59.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2755, allocations: 50.54 MB / 408.7 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.005726/0.2813, allocations: 5.22 MB / 414 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008822/0.2902, allocations: 6.658 MB / 420.6 MB, free: 5.633 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000864/0.2911, allocations: 43.69 kB / 420.7 MB, free: 5.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001433/0.2925, allocations: 0.5037 MB / 421.2 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002499/0.2951, allocations: 0.8224 MB / 422 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00135/0.2964, allocations: 437.9 kB / 422.4 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003142/0.2996, allocations: 2.04 MB / 424.4 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003447/0.3, allocations: 167 kB / 424.6 MB, free: 1.605 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005892/0.3006, allocations: 378.2 kB / 425 MB, free: 1.234 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003962/0.301, allocations: 353.6 kB / 425.3 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.418e-05/0.301, allocations: 28 kB / 425.4 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001136/0.3022, allocations: 499.5 kB / 425.8 MB, free: 380 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001032/0.3023, allocations: 111.2 kB / 426 MB, free: 268 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003971/0.3027, allocations: 449 kB / 426.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00164/0.3044, allocations: 1.291 MB / 427.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.3044, allocations: 0 / 427.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3044, allocations: 4 kB / 427.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.601e-05/0.3044, allocations: 0 / 427.7 MB, free: 14.52 MB / 350.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.001956/0.3064, allocations: 1.494 MB / 429.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.3064, allocations: 8.031 kB / 429.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.357e-05/0.3065, allocations: 62.55 kB / 429.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003093/0.3068, allocations: 147.1 kB / 429.4 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001136/0.3079, allocations: 0.8554 MB / 430.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.892e-05/0.308, allocations: 20.44 kB / 430.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.321e-05/0.308, allocations: 23.94 kB / 430.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005337/0.3086, allocations: 322.5 kB / 430.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.3086, allocations: 3.984 kB / 430.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.221e-05/0.3087, allocations: 8 kB / 430.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.951e-05/0.3087, allocations: 11.94 kB / 430.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003945/0.3091, allocations: 221.8 kB / 430.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001772/0.3109, allocations: 1.122 MB / 432 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004048/0.3113, allocations: 246 kB / 432.2 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004801/0.3118, allocations: 297 kB / 432.5 MB, free: 9.516 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001021/0.3128, allocations: 0.8347 MB / 433.3 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.925e-05/0.3128, allocations: 42.56 kB / 433.4 MB, free: 8.461 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 2.295e-06/0.3129, allocations: 0 / 433.4 MB, free: 8.461 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.003091/0.316, allocations: 1.556 MB / 434.9 MB, free: 6.809 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.276e-05/0.316, allocations: 114.8 kB / 435 MB, free: 6.672 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001032/0.3171, allocations: 0.9301 MB / 436 MB, free: 5.734 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.648e-05/0.3171, allocations: 29.7 kB / 436 MB, free: 5.699 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002774/0.3174, allocations: 357.7 kB / 436.3 MB, free: 5.344 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001154/0.3175, allocations: 138.8 kB / 436.5 MB, free: 5.207 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001702/0.3177, allocations: 125.7 kB / 436.6 MB, free: 5.074 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.3179, allocations: 325.9 kB / 436.9 MB, free: 4.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002575/0.3181, allocations: 120.6 kB / 437 MB, free: 4.629 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002683/0.3184, allocations: 159.8 kB / 437.2 MB, free: 4.465 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001399/0.3198, allocations: 0.7374 MB / 437.9 MB, free: 3.699 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.3198, allocations: 0 / 437.9 MB, free: 3.699 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009507/0.3208, allocations: 0.5545 MB / 438.5 MB, free: 3.125 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.22e-05/0.3208, allocations: 41.69 kB / 438.5 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.121e-05/0.3209, allocations: 16.03 kB / 438.5 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002149/0.3211, allocations: 69.67 kB / 438.6 MB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002402/0.3213, allocations: 51.84 kB / 438.7 MB, free: 2.938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002783/0.3241, allocations: 3.331 MB / 442 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004159/0.3246, allocations: 8.031 kB / 442 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.618e-05/0.3247, allocations: 24.05 kB / 442 MB, free: 15.3 MB / 366.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.000495/0.3252, allocations: 259.8 kB / 442.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001747/0.3253, allocations: 127.1 kB / 442.4 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001312/0.3267, allocations: 0.6687 MB / 443.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.418e-06/0.3267, allocations: 7.984 kB / 443.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.3267, allocations: 0 / 443.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.62e-05/0.3267, allocations: 7.922 kB / 443.1 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007572/0.3275, allocations: 0.6121 MB / 443.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.498e-05/0.3275, allocations: 15.94 kB / 443.7 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002023/0.3277, allocations: 35.97 kB / 443.8 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001987/0.3279, allocations: 69.67 kB / 443.8 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.851e-05/0.328, allocations: 20 kB / 443.8 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002636/0.3306, allocations: 3.324 MB / 447.2 MB, free: 9.797 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3307, allocations: 0 / 447.2 MB, free: 9.797 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001358/0.332, allocations: 0.8672 MB / 448 MB, free: 8.902 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004236/0.3325, allocations: 284.2 kB / 448.3 MB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.726e-05/0.3326, allocations: 8 kB / 448.3 MB, free: 8.598 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002795/0.3328, allocations: 16 kB / 448.3 MB, free: 8.582 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.702e-05/0.333, allocations: 31.95 kB / 448.4 MB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.908e-05/0.333, allocations: 20.12 kB / 448.4 MB, free: 8.531 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007294/0.3337, allocations: 0.6217 MB / 449 MB, free: 7.906 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3337, allocations: 0 / 449 MB, free: 7.906 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008389/0.3346, allocations: 231.5 kB / 449.2 MB, free: 7.68 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.0021/0.3367, allocations: 1.616 MB / 450.8 MB, free: 6.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0012/0.3379, allocations: 0.7767 MB / 451.6 MB, free: 5.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.86e-06/0.3379, allocations: 4 kB / 451.6 MB, free: 5.176 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007193/0.3387, allocations: 0.6244 MB / 452.3 MB, free: 4.488 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006756/0.3394, allocations: 112.6 kB / 452.4 MB, free: 4.375 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008385/0.3478, allocations: 5.769 MB / 458.1 MB, free: 14.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006379/0.3484, allocations: 1.008 MB / 459.1 MB, free: 13.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000292/0.3487, allocations: 93.64 kB / 459.2 MB, free: 13.32 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003261/0.3491, allocations: 283.3 kB / 459.5 MB, free: 13.05 MB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3491, allocations: 0 / 459.5 MB, free: 13.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04559/0.3947, allocations: 17.28 MB / 476.8 MB, free: 11.85 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.46, allocations: 16.36 kB / 476.8 MB, free: 11.84 MB / 398.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