Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,fileNamePrefix="Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,fileNamePrefix="Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU",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.008167/0.008167, allocations: 97.3 kB / 15.73 MB, free: 6.035 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.002177/0.002178, allocations: 201.7 kB / 16.68 MB, free: 5.961 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.63/2.63, allocations: 437.1 MB / 0.7105 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 67.89 kB / 1.018 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2481/0.2495, allocations: 151.6 MB / 1.166 GB, free: 7.328 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.002492/0.252, allocations: 1.426 MB / 1.168 GB, free: 5.887 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.000619/0.2526, allocations: 395.2 kB / 1.168 GB, free: 5.496 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.618e-05/0.2527, allocations: 0 / 1.168 GB, free: 5.496 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.575e-05/0.2527, allocations: 3.938 kB / 1.168 GB, free: 5.492 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 4.411e-05/0.2528, allocations: 7.938 kB / 1.168 GB, free: 5.484 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001351/0.2529, allocations: 15.97 kB / 1.168 GB, free: 5.469 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 6.485e-05/0.253, allocations: 23.86 kB / 1.168 GB, free: 5.445 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 8.385e-05/0.2531, allocations: 8 kB / 1.168 GB, free: 5.438 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 7.566e-05/0.2532, allocations: 7.984 kB / 1.168 GB, free: 5.43 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.044e-05/0.2532, allocations: 15.88 kB / 1.168 GB, free: 5.414 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.559e-05/0.2532, allocations: 4 kB / 1.168 GB, free: 5.41 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 8.515e-06/0.2533, allocations: 0 / 1.168 GB, free: 5.41 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.578e-05/0.2533, allocations: 7.969 kB / 1.168 GB, free: 5.402 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.962e-05/0.2533, allocations: 15.94 kB / 1.168 GB, free: 5.387 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 7.851e-05/0.2534, allocations: 24.12 kB / 1.168 GB, free: 5.363 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2534, allocations: 3.938 kB / 1.168 GB, free: 5.359 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.453e-06/0.2534, allocations: 0 / 1.168 GB, free: 5.359 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.309e-06/0.2534, allocations: 0 / 1.168 GB, free: 5.359 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003815/0.2538, allocations: 335.4 kB / 1.168 GB, free: 4.984 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.2539, allocations: 12.03 kB / 1.168 GB, free: 4.973 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.112e-05/0.2539, allocations: 30.75 kB / 1.168 GB, free: 4.934 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.071e-05/0.2539, allocations: 0.9375 kB / 1.168 GB, free: 4.934 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001102/0.254, allocations: 184.3 kB / 1.169 GB, free: 4.715 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.278e-06/0.254, allocations: 4.312 kB / 1.169 GB, free: 4.711 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.143e-06/0.2541, allocations: 384 / 1.169 GB, free: 4.711 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001203/0.2542, allocations: 45.81 kB / 1.169 GB, free: 4.66 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.2542, allocations: 0 / 1.169 GB, free: 4.66 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.943e-06/0.2542, allocations: 0 / 1.169 GB, free: 4.66 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.2542, allocations: 0 / 1.169 GB, free: 4.66 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.649e-05/0.2543, allocations: 23.92 kB / 1.169 GB, free: 4.637 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002963/0.2546, allocations: 256.9 kB / 1.169 GB, free: 4.336 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 7.539e-05/0.2547, allocations: 30.58 kB / 1.169 GB, free: 4.297 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.03e-05/0.2548, allocations: 16.91 kB / 1.169 GB, free: 4.277 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.52e-05/0.2548, allocations: 0 / 1.169 GB, free: 4.277 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.112e-05/0.2548, allocations: 34.56 kB / 1.169 GB, free: 4.234 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 9.11e-07/0.2548, allocations: 4 kB / 1.169 GB, free: 4.23 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.0002143/0.255, allocations: 61.61 kB / 1.169 GB, free: 4.164 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.842e-05/0.2551, allocations: 51.41 kB / 1.169 GB, free: 4.102 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.427e-05/0.2552, allocations: 101.9 kB / 1.169 GB, free: 3.992 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.248e-05/0.2552, allocations: 25.7 kB / 1.169 GB, free: 3.961 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.886e-05/0.2552, allocations: 88.12 kB / 1.169 GB, free: 3.871 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.558e-05/0.2552, allocations: 7.953 kB / 1.169 GB, free: 3.863 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.065e-05/0.2553, allocations: 9.844 kB / 1.169 GB, free: 3.848 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.267e-05/0.2554, allocations: 326.8 kB / 1.17 GB, free: 3.52 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.029e-05/0.2554, allocations: 7.984 kB / 1.17 GB, free: 3.512 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.974e-05/0.2555, allocations: 4 kB / 1.17 GB, free: 3.508 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.669e-05/0.2555, allocations: 33.03 kB / 1.17 GB, free: 3.473 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.2555, allocations: 0 / 1.17 GB, free: 3.473 MB / 0.92 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001148/0.2557, allocations: 61.73 kB / 1.17 GB, free: 3.406 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.2557, allocations: 9.875 kB / 1.17 GB, free: 3.398 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.2557, allocations: 3.938 kB / 1.17 GB, free: 3.395 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.103e-05/0.2557, allocations: 0 / 1.17 GB, free: 3.395 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.261e-05/0.2558, allocations: 4 kB / 1.17 GB, free: 3.391 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.2558, allocations: 0 / 1.17 GB, free: 3.391 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.286e-05/0.2558, allocations: 3.953 kB / 1.17 GB, free: 3.387 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.977e-06/0.2559, allocations: 7.984 kB / 1.17 GB, free: 3.379 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 (2): * Single equations (assignments): 2 * 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 6.114e-05/0.2559, allocations: 109.8 kB / 1.17 GB, free: 3.262 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.439e-05/0.256, allocations: 4.031 kB / 1.17 GB, free: 3.258 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.313e-05/0.256, allocations: 11.53 kB / 1.17 GB, free: 3.242 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.256, allocations: 3.938 kB / 1.17 GB, free: 3.238 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.256, allocations: 0 / 1.17 GB, free: 3.238 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.256, allocations: 0 / 1.17 GB, free: 3.238 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001495/0.2562, allocations: 165.6 kB / 1.17 GB, free: 3.027 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2562, allocations: 0 / 1.17 GB, free: 3.027 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.319e-05/0.2562, allocations: 7.938 kB / 1.17 GB, free: 3.02 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.2562, allocations: 4 kB / 1.17 GB, free: 3.016 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.971e-06/0.2562, allocations: 0 / 1.17 GB, free: 3.016 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.2562, allocations: 4 kB / 1.17 GB, free: 3.012 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2562, allocations: 0 / 1.17 GB, free: 3.012 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001501/0.2564, allocations: 147.5 kB / 1.17 GB, free: 2.852 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.407e-05/0.2564, allocations: 85.06 kB / 1.17 GB, free: 2.75 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.064e-05/0.2565, allocations: 0 / 1.17 GB, free: 2.75 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.073e-05/0.2565, allocations: 4 kB / 1.17 GB, free: 2.746 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.561e-05/0.2566, allocations: 0 / 1.17 GB, free: 2.746 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-06/0.2566, allocations: 8.016 kB / 1.17 GB, free: 2.738 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.03e-05/0.2566, allocations: 83.28 kB / 1.17 GB, free: 2.656 MB / 0.92 GB Notification: Performance of sort global known variables: time 2e-07/0.2566, allocations: 0 / 1.17 GB, free: 2.656 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002238/0.2568, allocations: 8 kB / 1.17 GB, free: 2.648 MB / 0.92 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 (2): * Single equations (assignments): 2 * 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.0003856/0.2572, allocations: 0.6812 MB / 1.171 GB, free: 1.941 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001204/0.2574, allocations: 23.98 kB / 1.171 GB, free: 1.918 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.2574, allocations: 0 / 1.171 GB, free: 1.918 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 4.416e-05/0.2574, allocations: 19.92 kB / 1.171 GB, free: 1.898 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000207/0.2576, allocations: 0 / 1.171 GB, free: 1.898 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003892/0.258, allocations: 152.1 kB / 1.171 GB, free: 1.711 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002061/0.2583, allocations: 0.6808 MB / 1.172 GB, free: 1.004 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 2.547e-05/0.2583, allocations: 3.984 kB / 1.172 GB, free: 1 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.375e-05/0.2583, allocations: 11.44 kB / 1.172 GB, free: 0.9883 MB / 0.92 GB Notification: Performance of SimCode: time 3.2e-07/0.2583, allocations: 0 / 1.172 GB, free: 0.9883 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01604/0.2744, allocations: 1.21 MB / 1.173 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.474/7.748, allocations: 9.297 kB / 1.173 GB, free: 15.91 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU.fmu > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=3600.000000 File[1204]=2249.280000 Error: Could not read variable kMinU.u in file Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.csv. Warning: Get data of variable kMinU.u from file Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.csv failed! " Variables in the reference:time,kMinU.u,kMinU.y Variables in the result:time,kMinU.y,pulse.y,kMinU.k,pulse.amplitude,pulse.f