Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_3_2_3_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.00138/0.001387, allocations: 106.4 kB / 17.73 MB, free: 5.367 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.001481/0.001481, allocations: 187.1 kB / 18.66 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.287/1.287, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 51.88 kB / 328 MB, free: 3.832 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08234/0.08361, allocations: 46.62 MB / 374.6 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.2189/0.3025, allocations: 5.206 MB / 379.8 MB, free: 9.133 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01321/0.3158, allocations: 6.57 MB / 386.4 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001029/0.3169, allocations: 41.94 kB / 386.4 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002104/0.319, allocations: 0.4893 MB / 386.9 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0038/0.3229, allocations: 0.8123 MB / 387.7 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002139/0.325, allocations: 431.6 kB / 388.2 MB, free: 6.055 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004812/0.3298, allocations: 1.993 MB / 390.2 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004272/0.3303, allocations: 167.5 kB / 390.3 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007004/0.331, allocations: 343.9 kB / 390.7 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005679/0.3316, allocations: 339.7 kB / 391 MB, free: 4.863 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000109/0.3317, allocations: 29.94 kB / 391 MB, free: 4.863 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002296/0.334, allocations: 465.5 kB / 391.5 MB, free: 4.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001952/0.3343, allocations: 116 kB / 391.6 MB, free: 4.668 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009147/0.3352, allocations: 447.5 kB / 392 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003242/0.3384, allocations: 1.269 MB / 393.3 MB, free: 3.844 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.3385, allocations: 0 / 393.3 MB, free: 3.844 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.3385, allocations: 0 / 393.3 MB, free: 3.844 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.43e-05/0.3385, allocations: 1.188 kB / 393.3 MB, free: 3.844 MB / 318.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.003647/0.3422, allocations: 1.443 MB / 394.7 MB, free: 2.781 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.3423, allocations: 9.125 kB / 394.7 MB, free: 2.781 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.65e-05/0.3424, allocations: 61.08 kB / 394.8 MB, free: 2.727 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002754/0.3426, allocations: 128.5 kB / 394.9 MB, free: 2.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001464/0.3441, allocations: 0.8566 MB / 395.8 MB, free: 2.117 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.282e-05/0.3441, allocations: 17.41 kB / 395.8 MB, free: 2.109 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.145e-05/0.3442, allocations: 32.09 kB / 395.8 MB, free: 2.094 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005588/0.3448, allocations: 303.9 kB / 396.1 MB, free: 1.957 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.3448, allocations: 0.7969 kB / 396.1 MB, free: 1.957 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.182e-05/0.3448, allocations: 14.28 kB / 396.1 MB, free: 1.945 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.3449, allocations: 5.781 kB / 396.2 MB, free: 1.945 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004053/0.3453, allocations: 223.4 kB / 396.4 MB, free: 1.867 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001764/0.347, allocations: 1.121 MB / 397.5 MB, free: 1.211 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003854/0.3474, allocations: 243.7 kB / 397.7 MB, free: 1.094 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004378/0.3479, allocations: 290.4 kB / 398 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008702/0.3488, allocations: 0.7561 MB / 398.8 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.427e-05/0.3488, allocations: 38.7 kB / 398.8 MB, free: 160 kB / 318.1 MB Notification: Performance of pre-optimization done (n=38): time 2.044e-06/0.3488, allocations: 0 / 398.8 MB, free: 160 kB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.003106/0.3519, allocations: 1.551 MB / 400.4 MB, free: 15.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.24e-05/0.352, allocations: 110.1 kB / 400.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00119/0.3532, allocations: 0.9324 MB / 401.4 MB, free: 14.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.88e-05/0.3533, allocations: 31.08 kB / 401.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003013/0.3536, allocations: 361.8 kB / 401.8 MB, free: 14.35 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/0.3537, allocations: 128.8 kB / 401.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001878/0.3539, allocations: 119.1 kB / 402 MB, free: 14.19 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.354, allocations: 322.9 kB / 402.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002543/0.3543, allocations: 121.5 kB / 402.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002896/0.3546, allocations: 159.6 kB / 402.6 MB, free: 13.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001393/0.356, allocations: 0.741 MB / 403.4 MB, free: 13.37 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.356, allocations: 0 / 403.4 MB, free: 13.37 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009527/0.357, allocations: 0.5583 MB / 403.9 MB, free: 13.08 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.297e-05/0.357, allocations: 41.02 kB / 404 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.325e-05/0.3571, allocations: 18.61 kB / 404 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002194/0.3573, allocations: 68.52 kB / 404 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002375/0.3575, allocations: 45.44 kB / 404.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002677/0.3602, allocations: 3.33 MB / 407.4 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004028/0.3606, allocations: 16.77 kB / 407.4 MB, free: 9.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.889e-05/0.3607, allocations: 20.09 kB / 407.4 MB, free: 9.746 MB / 334.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.0004738/0.3612, allocations: 269 kB / 407.7 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002013/0.3614, allocations: 124.8 kB / 407.8 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001495/0.3629, allocations: 0.6591 MB / 408.5 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.363, allocations: 5.172 kB / 408.5 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.363, allocations: 1.25 kB / 408.5 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.363, allocations: 1.219 kB / 408.5 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009125/0.3639, allocations: 0.6113 MB / 409.1 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-05/0.3639, allocations: 21.5 kB / 409.1 MB, free: 8.773 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002012/0.3641, allocations: 34.38 kB / 409.2 MB, free: 8.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001975/0.3644, allocations: 72.08 kB / 409.2 MB, free: 8.734 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.27e-05/0.3644, allocations: 16.22 kB / 409.2 MB, free: 8.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002518/0.3669, allocations: 3.334 MB / 412.6 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3669, allocations: 5.594 kB / 412.6 MB, free: 5.395 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00141/0.3684, allocations: 0.8522 MB / 413.4 MB, free: 4.863 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004854/0.3689, allocations: 273.2 kB / 413.7 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001488/0.369, allocations: 14.91 kB / 413.7 MB, free: 4.621 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003041/0.3693, allocations: 9.406 kB / 413.7 MB, free: 4.617 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.847e-05/0.3694, allocations: 33.17 kB / 413.8 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.56e-05/0.3695, allocations: 17.56 kB / 413.8 MB, free: 4.598 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000865/0.3704, allocations: 0.6274 MB / 414.4 MB, free: 4.238 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3704, allocations: 0 / 414.4 MB, free: 4.238 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009434/0.3713, allocations: 222.5 kB / 414.6 MB, free: 4.195 MB / 334.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.002251/0.3736, allocations: 1.61 MB / 416.2 MB, free: 3.027 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001195/0.3748, allocations: 0.7788 MB / 417 MB, free: 2.414 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.3748, allocations: 4.062 kB / 417 MB, free: 2.41 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006919/0.3755, allocations: 0.6212 MB / 417.6 MB, free: 1.863 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006294/0.3761, allocations: 101.5 kB / 417.7 MB, free: 1.797 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008504/0.3847, allocations: 5.725 MB / 423.5 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005718/0.3853, allocations: 1 MB / 424.5 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002697/0.3855, allocations: 89.64 kB / 424.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003597/0.3859, allocations: 287.3 kB / 424.8 MB, free: 12.05 MB / 350.1 MB Notification: Performance of SimCode: time 4.7e-07/0.3859, allocations: 7.938 kB / 424.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04597/0.4319, allocations: 17.25 MB / 442.1 MB, free: 10.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.47, allocations: 4.797 kB / 442.1 MB, free: 10.71 MB / 366.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Graetz/Graetz.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches