Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,fileNamePrefix="Buildings_latest_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.005341/0.005341, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001513/0.001513, allocations: 193.7 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.32/1.32, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.625/2.625, allocations: 482.6 MB / 0.755 GB, free: 6.637 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001712/0.001712, allocations: 72.31 kB / 1.083 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2668, allocations: 162.3 MB / 1.242 GB, free: 8.953 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.002355/0.2692, allocations: 1.429 MB / 1.243 GB, free: 7.512 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0005474/0.2698, allocations: 396.6 kB / 1.244 GB, free: 7.121 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.814e-05/0.2698, allocations: 0 / 1.244 GB, free: 7.121 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.237e-05/0.2698, allocations: 0 / 1.244 GB, free: 7.121 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 3.607e-05/0.2699, allocations: 7.922 kB / 1.244 GB, free: 7.113 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000121/0.27, allocations: 11.98 kB / 1.244 GB, free: 7.102 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 6.028e-05/0.2701, allocations: 23.86 kB / 1.244 GB, free: 7.078 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 7.457e-05/0.2702, allocations: 4 kB / 1.244 GB, free: 7.074 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.042e-05/0.2702, allocations: 19.92 kB / 1.244 GB, free: 7.055 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.586e-05/0.2703, allocations: 11.92 kB / 1.244 GB, free: 7.043 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.301e-05/0.2703, allocations: 8 kB / 1.244 GB, free: 7.035 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.504e-06/0.2703, allocations: 3.938 kB / 1.244 GB, free: 7.031 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.367e-05/0.2703, allocations: 3.984 kB / 1.244 GB, free: 7.027 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.27e-05/0.2704, allocations: 11.94 kB / 1.244 GB, free: 7.016 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 7.421e-05/0.2704, allocations: 28.12 kB / 1.244 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.2704, allocations: 0 / 1.244 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.333e-06/0.2705, allocations: 0 / 1.244 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 3.637e-06/0.2705, allocations: 0 / 1.244 GB, free: 6.988 MB / 0.9669 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.0003661/0.2708, allocations: 331.5 kB / 1.244 GB, free: 6.617 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.2709, allocations: 8.031 kB / 1.244 GB, free: 6.609 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.334e-05/0.2709, allocations: 34.75 kB / 1.244 GB, free: 6.566 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.26e-05/0.2709, allocations: 8.891 kB / 1.244 GB, free: 6.559 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001193/0.2711, allocations: 168.3 kB / 1.244 GB, free: 6.355 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.2711, allocations: 8.312 kB / 1.244 GB, free: 6.348 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.795e-06/0.2711, allocations: 4.375 kB / 1.244 GB, free: 6.344 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001104/0.2712, allocations: 41.75 kB / 1.244 GB, free: 6.297 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.442e-06/0.2712, allocations: 0 / 1.244 GB, free: 6.297 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.815e-06/0.2712, allocations: 8 kB / 1.244 GB, free: 6.289 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.297e-06/0.2712, allocations: 0 / 1.244 GB, free: 6.289 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.48e-05/0.2713, allocations: 15.98 kB / 1.244 GB, free: 6.273 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002933/0.2716, allocations: 260.9 kB / 1.245 GB, free: 5.969 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 7.287e-05/0.2717, allocations: 26.52 kB / 1.245 GB, free: 5.934 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.129e-05/0.2718, allocations: 20.91 kB / 1.245 GB, free: 5.91 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.311e-05/0.2718, allocations: 3.984 kB / 1.245 GB, free: 5.906 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.316e-05/0.2718, allocations: 34.56 kB / 1.245 GB, free: 5.863 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 9.52e-07/0.2718, allocations: 0 / 1.245 GB, free: 5.863 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0002032/0.272, allocations: 61.67 kB / 1.245 GB, free: 5.797 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.414e-05/0.2721, allocations: 51.41 kB / 1.245 GB, free: 5.734 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.393e-05/0.2722, allocations: 109.8 kB / 1.245 GB, free: 5.617 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.2722, allocations: 25.7 kB / 1.245 GB, free: 5.586 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.907e-05/0.2722, allocations: 92.27 kB / 1.245 GB, free: 5.492 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.316e-05/0.2722, allocations: 3.953 kB / 1.245 GB, free: 5.488 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.097e-05/0.2723, allocations: 13.72 kB / 1.245 GB, free: 5.469 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001202/0.2724, allocations: 322.7 kB / 1.245 GB, free: 5.145 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.854e-05/0.2724, allocations: 7.984 kB / 1.245 GB, free: 5.137 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.013e-05/0.2725, allocations: 8 kB / 1.245 GB, free: 5.129 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.193e-05/0.2726, allocations: 28.91 kB / 1.245 GB, free: 5.098 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2726, allocations: 0 / 1.245 GB, free: 5.098 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001197/0.2727, allocations: 53.67 kB / 1.245 GB, free: 5.039 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.085e-05/0.2727, allocations: 4 kB / 1.245 GB, free: 5.035 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.477e-06/0.2727, allocations: 0 / 1.245 GB, free: 5.035 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.117e-06/0.2727, allocations: 0 / 1.245 GB, free: 5.035 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.075e-05/0.2728, allocations: 7.938 kB / 1.245 GB, free: 5.027 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.2728, allocations: 3.938 kB / 1.245 GB, free: 5.023 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.393e-05/0.2728, allocations: 11.98 kB / 1.245 GB, free: 5.012 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.468e-06/0.2729, allocations: 32 / 1.245 GB, free: 5.012 MB / 0.9669 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.744e-05/0.2729, allocations: 114.3 kB / 1.246 GB, free: 4.891 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.349e-05/0.273, allocations: 7.953 kB / 1.246 GB, free: 4.883 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.999e-05/0.273, allocations: 7.531 kB / 1.246 GB, free: 4.875 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.273, allocations: 3.938 kB / 1.246 GB, free: 4.871 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.273, allocations: 0 / 1.246 GB, free: 4.871 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.844e-06/0.273, allocations: 0 / 1.246 GB, free: 4.871 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001598/0.2732, allocations: 169.6 kB / 1.246 GB, free: 4.656 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.2732, allocations: 0 / 1.246 GB, free: 4.656 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.818e-05/0.2732, allocations: 4 kB / 1.246 GB, free: 4.652 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.2732, allocations: 4 kB / 1.246 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.19e-06/0.2732, allocations: 0 / 1.246 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.2732, allocations: 0 / 1.246 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2732, allocations: 0 / 1.246 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001571/0.2734, allocations: 147.5 kB / 1.246 GB, free: 4.488 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.647e-05/0.2735, allocations: 89 kB / 1.246 GB, free: 4.383 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.929e-06/0.2735, allocations: 0 / 1.246 GB, free: 4.383 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.869e-05/0.2735, allocations: 8.031 kB / 1.246 GB, free: 4.375 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.338e-05/0.2736, allocations: 7.984 kB / 1.246 GB, free: 4.367 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-06/0.2736, allocations: 256 / 1.246 GB, free: 4.367 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.995e-05/0.2736, allocations: 83.28 kB / 1.246 GB, free: 4.285 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2736, allocations: 0 / 1.246 GB, free: 4.285 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0001967/0.2738, allocations: 4 kB / 1.246 GB, free: 4.281 MB / 0.9669 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.0004293/0.2743, allocations: 0.6812 MB / 1.247 GB, free: 3.574 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000111/0.2744, allocations: 27.92 kB / 1.247 GB, free: 3.547 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.2744, allocations: 0 / 1.247 GB, free: 3.547 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 4.129e-05/0.2744, allocations: 15.98 kB / 1.247 GB, free: 3.531 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001826/0.2746, allocations: 1.875 kB / 1.247 GB, free: 3.531 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000375/0.275, allocations: 152.3 kB / 1.247 GB, free: 3.34 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002664/0.2753, allocations: 0.6768 MB / 1.248 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.074e-05/0.2753, allocations: 4 kB / 1.248 GB, free: 2.633 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.96e-05/0.2753, allocations: 11.44 kB / 1.248 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of SimCode: time 2.11e-07/0.2753, allocations: 0 / 1.248 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2094/0.4847, allocations: 1.205 MB / 1.249 GB, free: 1.555 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.22/8.705, allocations: 6.922 kB / 1.249 GB, free: 1.555 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU_fmu --startTime=0 --stopTime=3600 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches