Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001763/0.001763, allocations: 109.6 kB / 21.18 MB, free: 0.6992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001725/0.001725, allocations: 216.7 kB / 24.5 MB, free: 4.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.528/1.528, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 55.91 kB / 347.2 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.3218, allocations: 49.15 MB / 396.4 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.00437/0.3262, allocations: 2.488 MB / 398.8 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001487/0.3277, allocations: 0.6908 MB / 399.5 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001461/0.3278, allocations: 3.25 kB / 399.5 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000149/0.328, allocations: 33.59 kB / 399.6 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001335/0.3281, allocations: 74.48 kB / 399.6 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003402/0.3284, allocations: 77.12 kB / 399.7 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003345/0.3288, allocations: 274.9 kB / 400 MB, free: 6.516 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001801/0.3289, allocations: 69.39 kB / 400 MB, free: 6.477 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001771/0.3291, allocations: 113.2 kB / 400.2 MB, free: 6.422 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001818/0.3293, allocations: 118 kB / 400.3 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.033e-05/0.3293, allocations: 21.53 kB / 400.3 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001017/0.3294, allocations: 35.62 kB / 400.3 MB, free: 6.359 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.797e-05/0.3295, allocations: 47.45 kB / 400.4 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000113/0.3296, allocations: 124.1 kB / 400.5 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004002/0.33, allocations: 281.8 kB / 400.8 MB, free: 6.148 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.33, allocations: 1.031 kB / 400.8 MB, free: 6.148 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.33, allocations: 0 / 400.8 MB, free: 6.148 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.33, allocations: 4 kB / 400.8 MB, free: 6.145 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.0008835/0.3309, allocations: 467 kB / 401.2 MB, free: 5.773 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.331, allocations: 14.08 kB / 401.2 MB, free: 5.77 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.357e-05/0.331, allocations: 58.44 kB / 401.3 MB, free: 5.715 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.626e-05/0.3311, allocations: 25.52 kB / 401.3 MB, free: 5.703 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003528/0.3314, allocations: 187.3 kB / 401.5 MB, free: 5.527 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.153e-05/0.3315, allocations: 14 kB / 401.5 MB, free: 5.523 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.977e-05/0.3315, allocations: 24.25 kB / 401.6 MB, free: 5.512 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004019/0.3319, allocations: 191.2 kB / 401.7 MB, free: 5.418 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.3319, allocations: 0.6094 kB / 401.7 MB, free: 5.418 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.434e-05/0.3319, allocations: 6.062 kB / 401.7 MB, free: 5.414 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/0.332, allocations: 4.781 kB / 401.7 MB, free: 5.414 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003777/0.3323, allocations: 154.5 kB / 401.9 MB, free: 5.363 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.001401/0.3337, allocations: 0.8862 MB / 402.8 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000331/0.3341, allocations: 145.5 kB / 402.9 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002002/0.3343, allocations: 82.33 kB / 403 MB, free: 4.551 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.165e-05/0.3343, allocations: 6.781 kB / 403 MB, free: 4.547 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/0.3343, allocations: 40.5 kB / 403.1 MB, free: 4.5 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 2.134e-06/0.3343, allocations: 0 / 403.1 MB, free: 4.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.001269/0.3356, allocations: 345.2 kB / 403.4 MB, free: 4.367 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.853e-05/0.3356, allocations: 53.81 kB / 403.4 MB, free: 4.305 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001574/0.3358, allocations: 164.9 kB / 403.6 MB, free: 4.188 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.3358, allocations: 30.73 kB / 403.6 MB, free: 4.152 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.649e-05/0.3359, allocations: 149 kB / 403.8 MB, free: 4.02 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.89e-05/0.3359, allocations: 68.67 kB / 403.8 MB, free: 3.965 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.109e-05/0.336, allocations: 32.91 kB / 403.9 MB, free: 3.941 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.543e-05/0.336, allocations: 337.6 kB / 404.2 MB, free: 3.613 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001078/0.3361, allocations: 44.2 kB / 404.3 MB, free: 3.598 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.3363, allocations: 70.06 kB / 404.3 MB, free: 3.562 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002225/0.3365, allocations: 127.2 kB / 404.4 MB, free: 3.496 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.3365, allocations: 1.156 kB / 404.4 MB, free: 3.496 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003945/0.3369, allocations: 223.4 kB / 404.7 MB, free: 3.379 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.3369, allocations: 9.812 kB / 404.7 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.3369, allocations: 1.094 kB / 404.7 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001419/0.3383, allocations: 213 kB / 404.9 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001645/0.3385, allocations: 32.83 kB / 404.9 MB, free: 3.348 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004506/0.3389, allocations: 0.6106 MB / 405.5 MB, free: 2.781 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001325/0.3391, allocations: 19.08 kB / 405.5 MB, free: 2.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.545e-05/0.3391, allocations: 4.344 kB / 405.5 MB, free: 2.77 MB / 318.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.0001377/0.3392, allocations: 135.5 kB / 405.7 MB, free: 2.637 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.523e-05/0.3393, allocations: 20.5 kB / 405.7 MB, free: 2.625 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004665/0.3397, allocations: 225.4 kB / 405.9 MB, free: 2.5 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.3397, allocations: 2.219 kB / 405.9 MB, free: 2.5 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3397, allocations: 0 / 405.9 MB, free: 2.5 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.3397, allocations: 1.031 kB / 405.9 MB, free: 2.5 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000901/0.3406, allocations: 0.5647 MB / 406.5 MB, free: 2.094 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.3407, allocations: 1.062 kB / 406.5 MB, free: 2.094 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001523/0.3408, allocations: 34.92 kB / 406.5 MB, free: 2.086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001111/0.3419, allocations: 204.2 kB / 406.7 MB, free: 2.055 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.032e-05/0.3419, allocations: 7.234 kB / 406.7 MB, free: 2.051 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003692/0.3423, allocations: 0.6223 MB / 407.4 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.3423, allocations: 1.766 kB / 407.4 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008026/0.3431, allocations: 418.6 kB / 407.8 MB, free: 1.23 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.364e-05/0.3432, allocations: 22.75 kB / 407.8 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.25e-05/0.3432, allocations: 3.453 kB / 407.8 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001418/0.3433, allocations: 13.38 kB / 407.8 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.903e-05/0.3434, allocations: 14.88 kB / 407.8 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.3434, allocations: 9.5 kB / 407.8 MB, free: 1.199 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001009/0.3435, allocations: 127.8 kB / 408 MB, free: 1.109 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3435, allocations: 0 / 408 MB, free: 1.109 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003311/0.3438, allocations: 63.95 kB / 408 MB, free: 1.09 MB / 318.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.001016/0.3449, allocations: 0.9569 MB / 409 MB, free: 308 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004315/0.3453, allocations: 139.6 kB / 409.1 MB, free: 268 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.3453, allocations: 0 / 409.1 MB, free: 268 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001852/0.3455, allocations: 81.45 kB / 409.2 MB, free: 244 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003609/0.3458, allocations: 39.17 kB / 409.2 MB, free: 220 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003488/0.3493, allocations: 2.303 MB / 411.5 MB, free: 14.49 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000529/0.3498, allocations: 0.7411 MB / 412.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.812e-05/0.3499, allocations: 15.67 kB / 412.3 MB, free: 13.78 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.3501, allocations: 58.23 kB / 412.3 MB, free: 13.74 MB / 334.1 MB Notification: Performance of SimCode: time 1.643e-06/0.3501, allocations: 0 / 412.3 MB, free: 13.74 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03962/0.3897, allocations: 4.906 MB / 417.2 MB, free: 11.42 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.33/13.72, allocations: 5.094 kB / 417.3 MB, free: 11.41 MB / 334.1 MB " [Timeout remaining time 646] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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.0009996 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.502075705997413]