Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.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.0007934/0.0007934, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0009683/0.0009683, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8814/0.8814, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.753/1.753, allocations: 377.8 MB / 0.6221 GB, free: 8.695 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Constant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Constant",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.857e-06/3.857e-06, allocations: 0 / 0.981 GB, free: 2.613 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.056e-05/3.441e-05, allocations: 5.094 kB / 0.981 GB, free: 2.609 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant): time 0.002283/0.002317, allocations: 0.5635 MB / 0.9815 GB, free: 2.047 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 6.05e-05/0.002378, allocations: 4 kB / 0.9815 GB, free: 2.043 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.591e-05/0.002414, allocations: 0 / 0.9815 GB, free: 2.043 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 3.058e-05/0.002444, allocations: 0 / 0.9815 GB, free: 2.043 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 3.294e-05/0.002477, allocations: 0 / 0.9815 GB, free: 2.043 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 3.845e-05/0.002516, allocations: 3.938 kB / 0.9815 GB, free: 2.039 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 8.54e-05/0.002601, allocations: 4 kB / 0.9815 GB, free: 2.035 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 6.998e-05/0.002671, allocations: 4 kB / 0.9815 GB, free: 2.031 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 4.158e-05/0.002712, allocations: 0 / 0.9815 GB, free: 2.031 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 2.612e-05/0.002739, allocations: 3.984 kB / 0.9815 GB, free: 2.027 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 2.596e-05/0.002765, allocations: 0 / 0.9815 GB, free: 2.027 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 4.89e-06/0.002769, allocations: 0 / 0.9815 GB, free: 2.027 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 1.601e-05/0.002785, allocations: 0 / 0.9815 GB, free: 2.027 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 2.317e-05/0.002809, allocations: 4 kB / 0.9815 GB, free: 2.023 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 7.644e-05/0.002885, allocations: 7.984 kB / 0.9816 GB, free: 2.016 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.002889, allocations: 0 / 0.9816 GB, free: 2.016 MB / 0.9323 GB Notification: Performance of FrontEnd: time 1.333e-06/0.00289, allocations: 3.938 kB / 0.9816 GB, free: 2.012 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.002895, allocations: 4 kB / 0.9816 GB, free: 2.008 MB / 0.9323 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.0003313/0.003226, allocations: 230.5 kB / 0.9818 GB, free: 1.75 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 5.45e-05/0.003281, allocations: 8.031 kB / 0.9818 GB, free: 1.742 MB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.936e-05/0.00332, allocations: 34.75 kB / 0.9818 GB, free: 1.699 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.637e-05/0.003346, allocations: 4.922 kB / 0.9818 GB, free: 1.695 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000101/0.003447, allocations: 105.8 kB / 0.9819 GB, free: 1.566 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.003461, allocations: 4.375 kB / 0.9819 GB, free: 1.562 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.105e-06/0.003469, allocations: 384 / 0.9819 GB, free: 1.562 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001079/0.003577, allocations: 34.2 kB / 0.982 GB, free: 1.523 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.003586, allocations: 192 / 0.982 GB, free: 1.523 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.187e-06/0.003595, allocations: 4.375 kB / 0.982 GB, free: 1.52 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.003602, allocations: 4.125 kB / 0.982 GB, free: 1.516 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.954e-05/0.003621, allocations: 0 / 0.982 GB, free: 1.516 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003589/0.00398, allocations: 362.5 kB / 0.9823 GB, free: 1.117 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003396/0.00432, allocations: 165.1 kB / 0.9825 GB, free: 0.9453 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.446e-05/0.004354, allocations: 80.14 kB / 0.9825 GB, free: 0.8633 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 2.787e-05/0.004382, allocations: 75.28 kB / 0.9826 GB, free: 0.7891 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.68e-05/0.004429, allocations: 117.7 kB / 0.9827 GB, free: 0.6641 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=0): time 1.603e-06/0.004431, allocations: 0 / 0.9827 GB, free: 0.6641 MB / 0.9323 GB Notification: Performance of matching and sorting (n=0): time 7.896e-05/0.00451, allocations: 33.64 kB / 0.9828 GB, free: 0.625 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.965e-05/0.004569, allocations: 130.7 kB / 0.9829 GB, free: 496 kB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.568e-05/0.004655, allocations: 97.84 kB / 0.983 GB, free: 388 kB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 9.849e-06/0.004665, allocations: 25.7 kB / 0.983 GB, free: 356 kB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 2.807e-05/0.004693, allocations: 84.14 kB / 0.9831 GB, free: 268 kB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 1.984e-06/0.004695, allocations: 0 / 0.9831 GB, free: 268 kB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.261e-05/0.004717, allocations: 9.719 kB / 0.9831 GB, free: 252 kB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 0.0001719/0.004889, allocations: 314.8 kB / 0.9834 GB, free: 15.93 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.043e-06/0.004896, allocations: 0 / 0.9834 GB, free: 15.93 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.24e-06/0.004902, allocations: 0 / 0.9834 GB, free: 15.93 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.638e-05/0.004928, allocations: 79.28 kB / 0.9835 GB, free: 15.85 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.333e-05/0.004951, allocations: 79.41 kB / 0.9835 GB, free: 15.77 MB / 0.948 GB Notification: Performance of matching and sorting (n=0) (initialization): time 5.919e-05/0.00501, allocations: 33.58 kB / 0.9836 GB, free: 15.73 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 4.106e-05/0.005052, allocations: 87.27 kB / 0.9837 GB, free: 15.65 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.575e-05/0.005077, allocations: 75.28 kB / 0.9837 GB, free: 15.57 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.768e-05/0.005135, allocations: 154.5 kB / 0.9839 GB, free: 15.42 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.63e-05/0.005161, allocations: 79.28 kB / 0.984 GB, free: 15.34 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.758e-05/0.005209, allocations: 150.6 kB / 0.9841 GB, free: 15.2 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.791e-05/0.005277, allocations: 83.22 kB / 0.9842 GB, free: 15.11 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.409e-05/0.005301, allocations: 79.28 kB / 0.9843 GB, free: 15.04 MB / 0.948 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.0001089/0.00541, allocations: 256.4 kB / 0.9845 GB, free: 14.77 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.343e-05/0.005473, allocations: 120.9 kB / 0.9846 GB, free: 14.65 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.487e-05/0.005518, allocations: 108.1 kB / 0.9847 GB, free: 14.54 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.151e-05/0.00557, allocations: 176.5 kB / 0.9849 GB, free: 14.36 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-05/0.005627, allocations: 184.2 kB / 0.9851 GB, free: 14.17 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001898/0.005817, allocations: 192.2 kB / 0.9852 GB, free: 13.98 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002155/0.006032, allocations: 376.2 kB / 0.9856 GB, free: 13.56 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.012e-05/0.006072, allocations: 101 kB / 0.9857 GB, free: 13.45 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.847e-05/0.006111, allocations: 105 kB / 0.9858 GB, free: 13.34 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.438e-05/0.006175, allocations: 188.1 kB / 0.986 GB, free: 13.15 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.733e-05/0.006233, allocations: 180.3 kB / 0.9862 GB, free: 12.97 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.535e-05/0.006288, allocations: 180.2 kB / 0.9863 GB, free: 12.79 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.081e-05/0.006339, allocations: 180.3 kB / 0.9865 GB, free: 12.6 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001209/0.00646, allocations: 315.7 kB / 0.9868 GB, free: 12.27 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.497e-05/0.006505, allocations: 104.9 kB / 0.9869 GB, free: 12.16 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.442e-05/0.006569, allocations: 188.2 kB / 0.9871 GB, free: 11.97 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.866e-05/0.006648, allocations: 105 kB / 0.9872 GB, free: 11.86 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.135e-05/0.006709, allocations: 180.2 kB / 0.9874 GB, free: 11.68 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.337e-05/0.006742, allocations: 109 kB / 0.9875 GB, free: 11.56 MB / 0.948 GB Notification: Performance of sorting global known variables: time 4.106e-05/0.006783, allocations: 79.28 kB / 0.9875 GB, free: 11.48 MB / 0.948 GB Notification: Performance of sort global known variables: time 8e-08/0.006784, allocations: 3.938 kB / 0.9875 GB, free: 11.48 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.000288/0.007072, allocations: 0 / 0.9875 GB, free: 11.48 MB / 0.948 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.0004045/0.007476, allocations: 0.8087 MB / 0.9883 GB, free: 10.64 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 5.013e-05/0.007526, allocations: 8 kB / 0.9883 GB, free: 10.64 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.007528, allocations: 0 / 0.9883 GB, free: 10.64 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 1.533e-06/0.00753, allocations: 0 / 0.9883 GB, free: 10.64 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000578/0.008108, allocations: 455.7 kB / 0.9888 GB, free: 10.19 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009891/0.009097, allocations: 1.517 MB / 0.9902 GB, free: 8.59 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.863e-05/0.009146, allocations: 55.36 kB / 0.9903 GB, free: 8.516 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 9.127e-06/0.009155, allocations: 96 / 0.9903 GB, free: 8.516 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.862e-05/0.009183, allocations: 12.5 kB / 0.9903 GB, free: 8.504 MB / 0.948 GB Notification: Performance of SimCode: time 7.82e-07/0.009184, allocations: 0 / 0.9903 GB, free: 8.504 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02066/0.02985, allocations: 1.543 MB / 0.9918 GB, free: 7.086 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.662/6.692, allocations: 11.5 kB / 0.9918 GB, free: 7.082 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Constant.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Constant.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Failed to open simulation result Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant_res.csv: Error: Error opening file: Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant_res.csv " [Timeout remaining time 300] "" Variables in the reference:time,con.y Variables in the result: [Calling sys.exit(0), Time elapsed: 10.820459740236402]