Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|kMinU.u|kMinU.y",fileNamePrefix="Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|kMinU.u|kMinU.y",fileNamePrefix="Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 86.48 kB / 15.06 MB, free: 1.09 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.001351/0.001351, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.585/2.585, allocations: 390.9 MB / 0.666 GB, free: 2.543 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004081/0.0004083, allocations: 16 kB / 0.8154 GB, free: 13.69 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8925/0.8929, allocations: 142.4 MB / 0.9544 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.00167/0.8946, allocations: 1.134 MB / 0.9556 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005985/0.8953, allocations: 367.7 kB / 0.9559 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.67e-05/0.8953, allocations: 0.9375 kB / 0.9559 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.655e-05/0.8954, allocations: 0 / 0.9559 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.361e-05/0.8954, allocations: 8.906 kB / 0.9559 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001451/0.8956, allocations: 9.359 kB / 0.9559 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.307e-05/0.8957, allocations: 16.25 kB / 0.9559 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.436e-05/0.8958, allocations: 11.14 kB / 0.956 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.438e-05/0.8959, allocations: 13.64 kB / 0.956 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.362e-05/0.8959, allocations: 10.08 kB / 0.956 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.494e-05/0.8959, allocations: 1.156 kB / 0.956 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.608e-06/0.896, allocations: 5.125 kB / 0.956 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.087e-05/0.896, allocations: 9.281 kB / 0.956 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.878e-05/0.896, allocations: 26.61 kB / 0.956 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.823e-05/0.8961, allocations: 12.56 kB / 0.956 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.8961, allocations: 0 / 0.956 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.503e-06/0.8961, allocations: 0 / 0.956 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.997e-06/0.8961, allocations: 0 / 0.956 GB, free: 6.523 MB / 0.7169 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.0003393/0.8964, allocations: 333 kB / 0.9563 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.8965, allocations: 10.09 kB / 0.9564 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.69e-05/0.8965, allocations: 8.828 kB / 0.9564 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.437e-05/0.8966, allocations: 177.2 kB / 0.9565 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.8966, allocations: 1.5 kB / 0.9565 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.047e-05/0.8966, allocations: 0 / 0.9565 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001355/0.8968, allocations: 47.69 kB / 0.9566 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.8968, allocations: 0 / 0.9566 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.8968, allocations: 0 / 0.9566 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.8968, allocations: 1.5 kB / 0.9566 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.045e-05/0.8969, allocations: 29.81 kB / 0.9566 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003057/0.8972, allocations: 243.5 kB / 0.9568 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.184e-05/0.8973, allocations: 36.2 kB / 0.9569 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.965e-05/0.8974, allocations: 23.31 kB / 0.9569 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.689e-05/0.8974, allocations: 4 kB / 0.9569 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.759e-05/0.8974, allocations: 31.66 kB / 0.9569 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.263e-06/0.8974, allocations: 0 / 0.9569 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0002395/0.8977, allocations: 63.52 kB / 0.957 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.673e-05/0.8977, allocations: 55.52 kB / 0.957 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.828e-05/0.8978, allocations: 105.1 kB / 0.9571 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.168e-06/0.8978, allocations: 34.8 kB / 0.9572 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.308e-05/0.8978, allocations: 85.19 kB / 0.9573 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.581e-05/0.8979, allocations: 8.859 kB / 0.9573 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.875e-06/0.8979, allocations: 0 / 0.9573 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.3e-05/0.8979, allocations: 315.9 kB / 0.9576 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.69e-05/0.898, allocations: 7.156 kB / 0.9576 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.957e-05/0.898, allocations: 19.2 kB / 0.9576 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.978e-05/0.8981, allocations: 8.625 kB / 0.9576 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.8981, allocations: 0 / 0.9576 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001097/0.8982, allocations: 61.08 kB / 0.9577 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.8982, allocations: 5.094 kB / 0.9577 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.8982, allocations: 96 / 0.9577 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.8982, allocations: 4 kB / 0.9577 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.512e-05/0.8983, allocations: 9.734 kB / 0.9577 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.022e-06/0.8983, allocations: 0 / 0.9577 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.386e-05/0.8984, allocations: 10.98 kB / 0.9577 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.041e-06/0.8984, allocations: 1.031 kB / 0.9577 GB, free: 4.777 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.959e-05/0.8984, allocations: 115.6 kB / 0.9578 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.525e-05/0.8985, allocations: 1.031 kB / 0.9578 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.035e-05/0.8985, allocations: 16.52 kB / 0.9578 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.8985, allocations: 1.406 kB / 0.9578 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.8985, allocations: 3.953 kB / 0.9578 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.8985, allocations: 4 kB / 0.9578 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001253/0.8986, allocations: 159.4 kB / 0.958 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.8987, allocations: 0 / 0.958 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.144e-05/0.8987, allocations: 5.188 kB / 0.958 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.8987, allocations: 0 / 0.958 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.153e-06/0.8987, allocations: 1.125 kB / 0.958 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.8987, allocations: 0 / 0.958 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.8987, allocations: 1.062 kB / 0.958 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001334/0.8989, allocations: 159.7 kB / 0.9581 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.006e-05/0.8989, allocations: 82.42 kB / 0.9582 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.151e-05/0.8989, allocations: 0 / 0.9582 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.767e-05/0.899, allocations: 2.594 kB / 0.9582 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.301e-05/0.899, allocations: 13.33 kB / 0.9582 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.088e-06/0.899, allocations: 1.375 kB / 0.9582 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.623e-05/0.8991, allocations: 82.97 kB / 0.9583 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8991, allocations: 0 / 0.9583 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002104/0.8993, allocations: 8.203 kB / 0.9583 GB, free: 4.086 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001109/0.8994, allocations: 100 kB / 0.9584 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001256/0.8995, allocations: 33.06 kB / 0.9584 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.8995, allocations: 0 / 0.9584 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.869e-05/0.8996, allocations: 13.06 kB / 0.9585 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002102/0.8998, allocations: 7.906 kB / 0.9585 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002648/0.9001, allocations: 125 kB / 0.9586 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001075/0.9002, allocations: 0.6853 MB / 0.9593 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.492e-05/0.9002, allocations: 1.562 kB / 0.9593 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.022e-05/0.9002, allocations: 11.42 kB / 0.9593 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.9002, allocations: 1.406 kB / 0.9593 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of Templates: time 0.002343/0.9026, allocations: 274.4 kB / 0.9595 GB, free: 2.977 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.makefile (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.sim & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches