Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) 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(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Constant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Constant",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.008908/0.008908, allocations: 101.7 kB / 15.73 MB, free: 6.449 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.0018/0.0018, allocations: 196.7 kB / 16.68 MB, free: 6.352 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.497/1.497, allocations: 222.9 MB / 240.4 MB, free: 4.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.54/2.54, allocations: 390.3 MB / 0.6648 GB, free: 184 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 61.91 kB / 0.9504 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.2785, allocations: 140.4 MB / 1.087 GB, free: 1.977 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant): time 0.001839/0.2804, allocations: 0.5481 MB / 1.088 GB, free: 1.43 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 4.541e-05/0.2805, allocations: 4 kB / 1.088 GB, free: 1.426 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.088e-05/0.2805, allocations: 0 / 1.088 GB, free: 1.426 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.792e-05/0.2806, allocations: 3.938 kB / 1.088 GB, free: 1.422 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 2.511e-05/0.2806, allocations: 0 / 1.088 GB, free: 1.422 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 3.308e-05/0.2806, allocations: 0 / 1.088 GB, free: 1.422 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 5.381e-05/0.2807, allocations: 7.984 kB / 1.088 GB, free: 1.414 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 5.541e-05/0.2808, allocations: 0 / 1.088 GB, free: 1.414 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 1.884e-05/0.2808, allocations: 3.984 kB / 1.088 GB, free: 1.41 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 1.884e-05/0.2808, allocations: 4 kB / 1.088 GB, free: 1.406 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.32e-05/0.2808, allocations: 4 kB / 1.088 GB, free: 1.402 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 3.677e-06/0.2808, allocations: 0 / 1.088 GB, free: 1.402 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.509e-05/0.2808, allocations: 4 kB / 1.088 GB, free: 1.398 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.32e-05/0.2809, allocations: 3.938 kB / 1.088 GB, free: 1.395 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 6.771e-05/0.2809, allocations: 0 / 1.088 GB, free: 1.395 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.281, allocations: 0 / 1.088 GB, free: 1.395 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.084e-06/0.281, allocations: 0 / 1.088 GB, free: 1.395 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.57e-06/0.281, allocations: 0 / 1.088 GB, free: 1.395 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003476/0.2813, allocations: 311.9 kB / 1.088 GB, free: 1.043 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.2814, allocations: 16.03 kB / 1.088 GB, free: 1.027 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.42e-05/0.2814, allocations: 30.75 kB / 1.088 GB, free: 0.9883 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.798e-05/0.2815, allocations: 4.938 kB / 1.088 GB, free: 0.9844 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001091/0.2816, allocations: 164.3 kB / 1.089 GB, free: 0.7852 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.157e-06/0.2816, allocations: 4.312 kB / 1.089 GB, free: 0.7812 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.301e-05/0.2816, allocations: 4.125 kB / 1.089 GB, free: 0.7773 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.834e-05/0.2817, allocations: 33.69 kB / 1.089 GB, free: 0.7383 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.2817, allocations: 0 / 1.089 GB, free: 0.7383 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.024e-06/0.2817, allocations: 0 / 1.089 GB, free: 0.7383 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.2817, allocations: 4 kB / 1.089 GB, free: 0.7344 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.573e-05/0.2818, allocations: 0 / 1.089 GB, free: 0.7344 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003111/0.2821, allocations: 383.5 kB / 1.089 GB, free: 316 kB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 7.992e-05/0.2822, allocations: 173.1 kB / 1.089 GB, free: 132 kB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.274e-05/0.2822, allocations: 80.14 kB / 1.089 GB, free: 48 kB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.4e-05/0.2823, allocations: 79.28 kB / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.312e-05/0.2823, allocations: 109.8 kB / 1.089 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=0): time 9.92e-07/0.2823, allocations: 0 / 1.089 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of matching and sorting (n=0): time 7.596e-05/0.2824, allocations: 26.08 kB / 1.089 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.863e-05/0.2824, allocations: 130.6 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.179e-05/0.2825, allocations: 93.86 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.247e-05/0.2826, allocations: 29.83 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.804e-05/0.2826, allocations: 84.12 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.057e-06/0.2826, allocations: 4 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.01e-05/0.2826, allocations: 21.59 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001018/0.2827, allocations: 318.8 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.258e-06/0.2827, allocations: 0 / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.266e-06/0.2827, allocations: 0 / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.153e-05/0.2828, allocations: 75.28 kB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.6e-05/0.2828, allocations: 79.28 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of matching and sorting (n=0) (initialization): time 6.337e-05/0.2829, allocations: 33.66 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.025e-05/0.2829, allocations: 79.28 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.214e-05/0.283, allocations: 83.22 kB / 1.09 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.581e-05/0.283, allocations: 154.5 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.938e-05/0.2831, allocations: 79.22 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.752e-05/0.2831, allocations: 154.6 kB / 1.091 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.569e-05/0.2832, allocations: 84.7 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.108e-05/0.2832, allocations: 79.22 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000117/0.2833, allocations: 262.3 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.894e-05/0.2834, allocations: 105 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.025e-05/0.2835, allocations: 116 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.792e-05/0.2836, allocations: 184.3 kB / 1.092 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.929e-05/0.2836, allocations: 176.3 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.213e-05/0.2837, allocations: 180.2 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002401/0.2839, allocations: 405.2 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.242e-05/0.284, allocations: 112.9 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.104e-05/0.284, allocations: 101 kB / 1.092 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.947e-05/0.2841, allocations: 192.2 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.832e-05/0.2842, allocations: 180.2 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.615e-05/0.2842, allocations: 176.6 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.946e-05/0.2843, allocations: 180.2 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001431/0.2844, allocations: 315.7 kB / 1.093 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.026e-05/0.2845, allocations: 186.1 kB / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.295e-05/0.2846, allocations: 176.3 kB / 1.094 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.486e-05/0.2847, allocations: 104.9 kB / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.025e-05/0.2847, allocations: 180.3 kB / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.422e-05/0.2848, allocations: 112.9 kB / 1.094 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.072e-05/0.2848, allocations: 79.27 kB / 1.094 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2848, allocations: 0 / 1.094 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002613/0.2851, allocations: 0 / 1.094 GB, free: 10.54 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004665/0.2856, allocations: 0.8185 MB / 1.095 GB, free: 9.691 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 4.797e-05/0.2856, allocations: 0 / 1.095 GB, free: 9.691 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2856, allocations: 3.938 kB / 1.095 GB, free: 9.688 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 1.433e-06/0.2856, allocations: 0 / 1.095 GB, free: 9.688 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003797/0.286, allocations: 459.6 kB / 1.096 GB, free: 9.234 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009672/0.287, allocations: 1.524 MB / 1.097 GB, free: 7.633 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002057/0.2872, allocations: 0.6729 MB / 1.098 GB, free: 6.934 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.153e-06/0.2872, allocations: 0 / 1.098 GB, free: 6.934 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.182e-05/0.2873, allocations: 7.438 kB / 1.098 GB, free: 6.926 MB / 0.8575 GB Notification: Performance of SimCode: time 5.51e-07/0.2873, allocations: 0 / 1.098 GB, free: 6.926 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01742/0.3047, allocations: 0.9198 MB / 1.099 GB, free: 6.113 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.208/8.513, allocations: 9.125 kB / 1.099 GB, free: 6.109 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Constant.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Constant.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches