Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.005584/0.005585, allocations: 96.53 kB / 15.73 MB, free: 6.043 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.001225/0.001225, allocations: 196.6 kB / 16.67 MB, free: 5.969 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 / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.538/2.538, allocations: 437 MB / 0.7105 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001232, allocations: 71.89 kB / 1.018 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.254, allocations: 151.6 MB / 1.166 GB, free: 7.332 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant): time 0.001579/0.2556, allocations: 0.538 MB / 1.167 GB, free: 6.793 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 3.917e-05/0.2557, allocations: 11.94 kB / 1.167 GB, free: 6.781 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.412e-05/0.2557, allocations: 0 / 1.167 GB, free: 6.781 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.232e-05/0.2558, allocations: 0 / 1.167 GB, free: 6.781 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 2.214e-05/0.2558, allocations: 0 / 1.167 GB, free: 6.781 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 2.772e-05/0.2558, allocations: 4 kB / 1.167 GB, free: 6.777 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 4.279e-05/0.2559, allocations: 0 / 1.167 GB, free: 6.777 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.687e-05/0.2559, allocations: 4 kB / 1.167 GB, free: 6.773 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 1.391e-05/0.2559, allocations: 0 / 1.167 GB, free: 6.773 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 1.747e-05/0.256, allocations: 0 / 1.167 GB, free: 6.773 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.242e-05/0.256, allocations: 3.938 kB / 1.167 GB, free: 6.77 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 3.105e-06/0.256, allocations: 0 / 1.167 GB, free: 6.77 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.21e-05/0.256, allocations: 4 kB / 1.167 GB, free: 6.766 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 1.74e-05/0.256, allocations: 0 / 1.167 GB, free: 6.766 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 6.105e-05/0.2561, allocations: 11.97 kB / 1.167 GB, free: 6.754 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2561, allocations: 0 / 1.167 GB, free: 6.754 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.203e-06/0.2561, allocations: 0 / 1.167 GB, free: 6.754 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.037e-06/0.2561, allocations: 0 / 1.167 GB, free: 6.754 MB / 0.92 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.0002882/0.2564, allocations: 315.8 kB / 1.167 GB, free: 6.395 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.2565, allocations: 8.031 kB / 1.167 GB, free: 6.387 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.19e-05/0.2565, allocations: 34.69 kB / 1.167 GB, free: 6.344 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.014e-05/0.2565, allocations: 0.9375 kB / 1.167 GB, free: 6.344 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001091/0.2566, allocations: 172.3 kB / 1.167 GB, free: 6.137 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.715e-06/0.2566, allocations: 4.375 kB / 1.167 GB, free: 6.133 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.195e-06/0.2567, allocations: 384 / 1.167 GB, free: 6.133 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.002e-05/0.2567, allocations: 26.27 kB / 1.167 GB, free: 6.102 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.2567, allocations: 3.938 kB / 1.167 GB, free: 6.098 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.332e-06/0.2568, allocations: 0 / 1.167 GB, free: 6.098 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.2568, allocations: 0 / 1.167 GB, free: 6.098 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.77e-05/0.2568, allocations: 11.94 kB / 1.167 GB, free: 6.086 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002873/0.2571, allocations: 387.5 kB / 1.168 GB, free: 5.656 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 7.833e-05/0.2572, allocations: 169.1 kB / 1.168 GB, free: 5.48 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.421e-05/0.2572, allocations: 80.14 kB / 1.168 GB, free: 5.398 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.203e-05/0.2572, allocations: 75.28 kB / 1.168 GB, free: 5.324 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.131e-05/0.2573, allocations: 113.8 kB / 1.168 GB, free: 5.203 MB / 0.92 GB Notification: Performance of pre-optimization done (n=0): time 9.62e-07/0.2573, allocations: 0 / 1.168 GB, free: 5.203 MB / 0.92 GB Notification: Performance of matching and sorting (n=0): time 6.942e-05/0.2574, allocations: 34.02 kB / 1.168 GB, free: 5.164 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.812e-05/0.2574, allocations: 130.7 kB / 1.168 GB, free: 5.023 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.725e-05/0.2575, allocations: 97.86 kB / 1.168 GB, free: 4.918 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 8.736e-06/0.2575, allocations: 25.7 kB / 1.168 GB, free: 4.887 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 2.519e-05/0.2575, allocations: 80.14 kB / 1.168 GB, free: 4.805 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.373e-06/0.2575, allocations: 128 / 1.168 GB, free: 4.805 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.908e-05/0.2576, allocations: 13.72 kB / 1.168 GB, free: 4.785 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.228e-05/0.2577, allocations: 314.8 kB / 1.169 GB, free: 4.469 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.497e-06/0.2577, allocations: 4 kB / 1.169 GB, free: 4.465 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.906e-06/0.2577, allocations: 0 / 1.169 GB, free: 4.465 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.336e-05/0.2577, allocations: 79.28 kB / 1.169 GB, free: 4.387 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.067e-05/0.2577, allocations: 79.22 kB / 1.169 GB, free: 4.309 MB / 0.92 GB Notification: Performance of matching and sorting (n=0) (initialization): time 5.502e-05/0.2578, allocations: 37.62 kB / 1.169 GB, free: 4.266 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.392e-05/0.2578, allocations: 83.28 kB / 1.169 GB, free: 4.184 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.163e-05/0.2579, allocations: 79.28 kB / 1.169 GB, free: 4.105 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.029e-05/0.2579, allocations: 150.6 kB / 1.169 GB, free: 3.957 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.025e-05/0.2579, allocations: 79.22 kB / 1.169 GB, free: 3.879 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.284e-05/0.258, allocations: 154.6 kB / 1.169 GB, free: 3.727 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.769e-05/0.2581, allocations: 79.22 kB / 1.17 GB, free: 3.648 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.942e-05/0.2581, allocations: 75.28 kB / 1.17 GB, free: 3.574 MB / 0.92 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 9.616e-05/0.2582, allocations: 276.3 kB / 1.17 GB, free: 3.293 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.208e-05/0.2583, allocations: 104.9 kB / 1.17 GB, free: 3.184 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.615e-05/0.2583, allocations: 104.1 kB / 1.17 GB, free: 3.074 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-05/0.2584, allocations: 176.3 kB / 1.17 GB, free: 2.895 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.266e-05/0.2584, allocations: 184.2 kB / 1.17 GB, free: 2.707 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.126e-05/0.2585, allocations: 188.2 kB / 1.171 GB, free: 2.516 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001893/0.2587, allocations: 401.1 kB / 1.171 GB, free: 2.066 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.839e-05/0.2587, allocations: 105 kB / 1.171 GB, free: 1.957 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.467e-05/0.2587, allocations: 105 kB / 1.171 GB, free: 1.848 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.095e-05/0.2588, allocations: 192.1 kB / 1.171 GB, free: 1.652 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.372e-05/0.2589, allocations: 184.3 kB / 1.172 GB, free: 1.465 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.326e-05/0.2589, allocations: 184.5 kB / 1.172 GB, free: 1.277 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.063e-05/0.259, allocations: 176.3 kB / 1.172 GB, free: 1.098 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001142/0.2591, allocations: 315.7 kB / 1.172 GB, free: 0.7656 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.968e-05/0.2591, allocations: 178.1 kB / 1.172 GB, free: 0.5664 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.14e-05/0.2592, allocations: 184.2 kB / 1.173 GB, free: 388 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.661e-05/0.2593, allocations: 109 kB / 1.173 GB, free: 272 kB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.647e-05/0.2594, allocations: 176.3 kB / 1.173 GB, free: 88 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.894e-05/0.2594, allocations: 104.9 kB / 1.173 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.69e-05/0.2594, allocations: 83.28 kB / 1.173 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2594, allocations: 3.938 kB / 1.173 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002457/0.2597, allocations: 4.094 kB / 1.173 GB, free: 15.89 MB / 0.9356 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.0003428/0.26, allocations: 0.8087 MB / 1.174 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 3.208e-05/0.2601, allocations: 3.938 kB / 1.174 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.2601, allocations: 4 kB / 1.174 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 2.625e-06/0.2601, allocations: 4 kB / 1.174 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003215/0.2604, allocations: 453.7 kB / 1.174 GB, free: 14.59 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008788/0.2613, allocations: 1.524 MB / 1.176 GB, free: 12.99 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000196/0.2615, allocations: 0.669 MB / 1.176 GB, free: 12.29 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.001e-06/0.2615, allocations: 96 / 1.176 GB, free: 12.29 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.944e-05/0.2616, allocations: 11.44 kB / 1.176 GB, free: 12.28 MB / 0.9356 GB Notification: Performance of SimCode: time 3.2e-07/0.2616, allocations: 0 / 1.176 GB, free: 12.28 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01467/0.2762, allocations: 0.9186 MB / 1.177 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.201/7.477, allocations: 12.98 kB / 1.177 GB, free: 11.46 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Constant.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Constant.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches