Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.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.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier",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.00115/0.001151, allocations: 116.1 kB / 17.07 MB, free: 5.996 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.001123/0.001123, allocations: 194.9 kB / 18.01 MB, free: 5.074 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.333/1.333, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00102/0.00102, allocations: 55.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3099/0.3109, allocations: 49.44 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.003902/0.3149, allocations: 2.518 MB / 402.8 MB, free: 6.273 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001142/0.3161, allocations: 0.6505 MB / 403.4 MB, free: 5.617 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001106/0.3162, allocations: 4 kB / 403.4 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001386/0.3163, allocations: 35.66 kB / 403.5 MB, free: 5.578 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001278/0.3165, allocations: 71.34 kB / 403.5 MB, free: 5.508 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003011/0.3168, allocations: 83.77 kB / 403.6 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002913/0.3171, allocations: 282.7 kB / 403.9 MB, free: 5.148 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000193/0.3173, allocations: 92.34 kB / 404 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000152/0.3175, allocations: 103.6 kB / 404.1 MB, free: 4.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001642/0.3176, allocations: 115.5 kB / 404.2 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.449e-05/0.3177, allocations: 23.94 kB / 404.2 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.132e-05/0.3178, allocations: 39.98 kB / 404.2 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.893e-05/0.3178, allocations: 47.84 kB / 404.3 MB, free: 4.734 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001444/0.318, allocations: 127.4 kB / 404.4 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003876/0.3184, allocations: 281.9 kB / 404.7 MB, free: 4.336 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.573e-06/0.3184, allocations: 4 kB / 404.7 MB, free: 4.332 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3184, allocations: 0 / 404.7 MB, free: 4.332 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.3184, allocations: 0 / 404.7 MB, free: 4.332 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0008469/0.3193, allocations: 0.5337 MB / 405.2 MB, free: 3.75 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.3193, allocations: 16.03 kB / 405.2 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.277e-05/0.3194, allocations: 58.72 kB / 405.3 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.432e-05/0.3194, allocations: 24.8 kB / 405.3 MB, free: 3.645 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003143/0.3198, allocations: 239.9 kB / 405.6 MB, free: 3.371 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.863e-05/0.3198, allocations: 16.81 kB / 405.6 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.872e-05/0.3198, allocations: 20.38 kB / 405.6 MB, free: 3.336 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003537/0.3202, allocations: 195.4 kB / 405.8 MB, free: 3.141 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.3202, allocations: 3.984 kB / 405.8 MB, free: 3.137 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.23e-05/0.3202, allocations: 8 kB / 405.8 MB, free: 3.129 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.3203, allocations: 8 kB / 405.8 MB, free: 3.121 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003196/0.3206, allocations: 149.7 kB / 406 MB, free: 2.969 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001338/0.3219, allocations: 0.9259 MB / 406.9 MB, free: 1.934 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003114/0.3223, allocations: 162.5 kB / 407 MB, free: 1.766 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002105/0.3225, allocations: 92.83 kB / 407.1 MB, free: 1.672 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.26e-05/0.3225, allocations: 7.938 kB / 407.1 MB, free: 1.664 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.3225, allocations: 42.55 kB / 407.2 MB, free: 1.613 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.413e-06/0.3226, allocations: 0 / 407.2 MB, free: 1.613 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.001279/0.3238, allocations: 411.5 kB / 407.6 MB, free: 1.184 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.715e-05/0.3239, allocations: 59.41 kB / 407.6 MB, free: 1.113 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000157/0.3241, allocations: 179.2 kB / 407.8 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.456e-05/0.3241, allocations: 29.7 kB / 407.8 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.05e-05/0.3242, allocations: 156.2 kB / 408 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.524e-05/0.3242, allocations: 67.42 kB / 408.1 MB, free: 0.668 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.039e-05/0.3243, allocations: 37.7 kB / 408.1 MB, free: 0.625 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.3244, allocations: 330.8 kB / 408.4 MB, free: 300 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.3245, allocations: 47.97 kB / 408.5 MB, free: 252 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001166/0.3246, allocations: 71.38 kB / 408.5 MB, free: 176 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002573/0.3249, allocations: 125.7 kB / 408.7 MB, free: 44 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3249, allocations: 0 / 408.7 MB, free: 44 kB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004146/0.3253, allocations: 225.1 kB / 408.9 MB, free: 15.81 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.3254, allocations: 7.938 kB / 408.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.3254, allocations: 3.938 kB / 408.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001291/0.3267, allocations: 216.6 kB / 409.1 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.3268, allocations: 35.92 kB / 409.1 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004846/0.3273, allocations: 0.5992 MB / 409.7 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001177/0.3275, allocations: 19.92 kB / 409.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.398e-05/0.3275, allocations: 4 kB / 409.8 MB, free: 14.9 MB / 334.1 MB 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 (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001333/0.3276, allocations: 141.8 kB / 409.9 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.277e-05/0.3277, allocations: 15.91 kB / 409.9 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004661/0.3281, allocations: 224.2 kB / 410.1 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.3282, allocations: 4 kB / 410.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.3282, allocations: 0 / 410.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.3282, allocations: 3.984 kB / 410.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008784/0.3291, allocations: 0.5999 MB / 410.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.3291, allocations: 3.938 kB / 410.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001435/0.3292, allocations: 23.98 kB / 410.8 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001022/0.3303, allocations: 208.6 kB / 411 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.478e-05/0.3303, allocations: 8 kB / 411 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005198/0.3308, allocations: 0.6225 MB / 411.6 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.3308, allocations: 0 / 411.6 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008369/0.3317, allocations: 424.9 kB / 412 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.812e-05/0.3317, allocations: 100.9 kB / 412.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.043e-05/0.3318, allocations: 8 kB / 412.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001423/0.3319, allocations: 12 kB / 412.1 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.83e-05/0.332, allocations: 11.98 kB / 412.1 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.348e-05/0.332, allocations: 7.984 kB / 412.2 MB, free: 12.36 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000106/0.3321, allocations: 132.4 kB / 412.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3321, allocations: 0 / 412.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003049/0.3324, allocations: 59.89 kB / 412.3 MB, free: 12.17 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * 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 (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001159/0.3336, allocations: 0.9719 MB / 413.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000445/0.334, allocations: 155.7 kB / 413.5 MB, free: 11.01 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.334, allocations: 0 / 413.5 MB, free: 11.01 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000192/0.3342, allocations: 91.97 kB / 413.6 MB, free: 10.92 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003867/0.3346, allocations: 27.98 kB / 413.6 MB, free: 10.89 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003178/0.3378, allocations: 2.319 MB / 415.9 MB, free: 8.488 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003082/0.3382, allocations: 0.7358 MB / 416.6 MB, free: 7.727 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.707e-05/0.3383, allocations: 17.55 kB / 416.7 MB, free: 7.707 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.297e-05/0.3384, allocations: 59.41 kB / 416.7 MB, free: 7.648 MB / 334.1 MB Notification: Performance of SimCode: time 3.216e-06/0.3384, allocations: 0 / 416.7 MB, free: 7.648 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02257/0.3609, allocations: 4.762 MB / 421.5 MB, free: 3.039 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.53, allocations: 10.53 kB / 421.5 MB, free: 3.031 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches