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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001737/0.001737, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002076/0.002076, allocations: 181.7 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 47.92 kB / 370.5 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2861/0.2877, allocations: 52.18 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.004156/0.2919, allocations: 2.542 MB / 425.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001404/0.2933, allocations: 0.6583 MB / 425.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001365/0.2934, allocations: 4 kB / 425.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001615/0.2936, allocations: 39.58 kB / 425.9 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001445/0.2937, allocations: 75.33 kB / 425.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003232/0.294, allocations: 79.83 kB / 426 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003452/0.2944, allocations: 274.8 kB / 426.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000174/0.2945, allocations: 72.42 kB / 426.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001682/0.2947, allocations: 115.6 kB / 426.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002017/0.2949, allocations: 123.5 kB / 426.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.287e-05/0.295, allocations: 20 kB / 426.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.774e-05/0.2951, allocations: 32 kB / 426.7 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.705e-05/0.2951, allocations: 51.83 kB / 426.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001294/0.2952, allocations: 123.4 kB / 426.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003799/0.2956, allocations: 283.3 kB / 427.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.2956, allocations: 0 / 427.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2956, allocations: 3.938 kB / 427.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.2956, allocations: 0 / 427.1 MB, free: 10.11 MB / 334.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.0009017/0.2965, allocations: 477.5 kB / 427.6 MB, free: 9.617 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.2966, allocations: 12.03 kB / 427.6 MB, free: 9.605 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.908e-05/0.2967, allocations: 50.73 kB / 427.6 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.999e-05/0.2967, allocations: 32.73 kB / 427.7 MB, free: 9.516 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003771/0.2971, allocations: 190.1 kB / 427.8 MB, free: 9.305 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.176e-05/0.2971, allocations: 16.81 kB / 427.9 MB, free: 9.289 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.475e-05/0.2972, allocations: 16.38 kB / 427.9 MB, free: 9.273 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003941/0.2976, allocations: 199.4 kB / 428.1 MB, free: 9.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.2976, allocations: 0 / 428.1 MB, free: 9.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.28e-05/0.2976, allocations: 8 kB / 428.1 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.2976, allocations: 4 kB / 428.1 MB, free: 9.059 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003236/0.2979, allocations: 153.6 kB / 428.2 MB, free: 8.906 MB / 334.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.001455/0.2994, allocations: 0.8821 MB / 429.1 MB, free: 7.922 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003253/0.2997, allocations: 146.6 kB / 429.3 MB, free: 7.77 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002325/0.2999, allocations: 88.77 kB / 429.3 MB, free: 7.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.609e-05/0.3, allocations: 3.938 kB / 429.4 MB, free: 7.676 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.053e-05/0.3, allocations: 34.56 kB / 429.4 MB, free: 7.633 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.212e-06/0.3, allocations: 0 / 429.4 MB, free: 7.633 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.001237/0.3012, allocations: 338.3 kB / 429.7 MB, free: 7.293 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.645e-05/0.3013, allocations: 59.39 kB / 429.8 MB, free: 7.223 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001827/0.3015, allocations: 175.3 kB / 429.9 MB, free: 7.039 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.44e-05/0.3015, allocations: 25.7 kB / 430 MB, free: 7.008 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.3016, allocations: 144.5 kB / 430.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.697e-05/0.3016, allocations: 71.41 kB / 430.2 MB, free: 6.793 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.942e-05/0.3017, allocations: 37.7 kB / 430.2 MB, free: 6.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.3019, allocations: 334.8 kB / 430.5 MB, free: 6.414 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.302, allocations: 47.97 kB / 430.6 MB, free: 6.355 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001339/0.3021, allocations: 71.56 kB / 430.7 MB, free: 6.281 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002424/0.3024, allocations: 128.6 kB / 430.8 MB, free: 6.152 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3024, allocations: 0 / 430.8 MB, free: 6.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004174/0.3028, allocations: 222.3 kB / 431 MB, free: 5.926 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.3028, allocations: 6.969 kB / 431 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.3028, allocations: 7.938 kB / 431 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001442/0.3043, allocations: 208.6 kB / 431.2 MB, free: 5.707 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001466/0.3044, allocations: 27.98 kB / 431.3 MB, free: 5.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005479/0.305, allocations: 0.6225 MB / 431.9 MB, free: 5.031 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001255/0.3051, allocations: 15.92 kB / 431.9 MB, free: 5.016 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.439e-05/0.3051, allocations: 4 kB / 431.9 MB, free: 5.012 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.0001513/0.3053, allocations: 130.8 kB / 432 MB, free: 4.875 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.708e-05/0.3053, allocations: 19.91 kB / 432 MB, free: 4.855 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004683/0.3058, allocations: 239.1 kB / 432.3 MB, free: 4.617 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.3058, allocations: 4 kB / 432.3 MB, free: 4.613 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3058, allocations: 0 / 432.3 MB, free: 4.613 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/0.3058, allocations: 0 / 432.3 MB, free: 4.613 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000932/0.3067, allocations: 0.5575 MB / 432.8 MB, free: 4 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.3067, allocations: 7.969 kB / 432.8 MB, free: 3.992 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001699/0.3069, allocations: 39.91 kB / 432.9 MB, free: 3.953 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001157/0.308, allocations: 192.6 kB / 433.1 MB, free: 3.762 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.628e-05/0.3081, allocations: 8 kB / 433.1 MB, free: 3.754 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005241/0.3086, allocations: 0.6264 MB / 433.7 MB, free: 3.102 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3086, allocations: 4.062 kB / 433.7 MB, free: 3.098 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008484/0.3094, allocations: 416.8 kB / 434.1 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.215e-05/0.3095, allocations: 31.89 kB / 434.1 MB, free: 2.637 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.877e-05/0.3095, allocations: 0 / 434.1 MB, free: 2.637 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001474/0.3097, allocations: 11.98 kB / 434.2 MB, free: 2.625 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.739e-05/0.3097, allocations: 7.984 kB / 434.2 MB, free: 2.617 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.468e-05/0.3097, allocations: 8 kB / 434.2 MB, free: 2.609 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001443/0.3099, allocations: 143.2 kB / 434.3 MB, free: 2.469 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3099, allocations: 0 / 434.3 MB, free: 2.469 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000327/0.3102, allocations: 59.83 kB / 434.4 MB, free: 2.41 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.001294/0.3115, allocations: 0.9521 MB / 435.3 MB, free: 1.422 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004763/0.312, allocations: 142.5 kB / 435.5 MB, free: 1.285 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.312, allocations: 0 / 435.5 MB, free: 1.285 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001958/0.3122, allocations: 87.8 kB / 435.5 MB, free: 1.199 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003628/0.3125, allocations: 32.11 kB / 435.6 MB, free: 1.168 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003347/0.3159, allocations: 2.328 MB / 437.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004214/0.3163, allocations: 0.7359 MB / 438.6 MB, free: 13.99 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.962e-05/0.3164, allocations: 9.5 kB / 438.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.294e-05/0.3165, allocations: 59.41 kB / 438.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3165, allocations: 4 kB / 438.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03541/0.3519, allocations: 4.946 MB / 443.7 MB, free: 9.125 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.71/13.06, allocations: 11.19 kB / 443.7 MB, free: 9.121 MB / 350.1 MB " [Timeout remaining time 647] (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.0009996 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.618211076001899]