Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",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.005243/0.005243, allocations: 99.73 kB / 15.73 MB, free: 5.594 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.001017/0.001017, allocations: 195.1 kB / 16.67 MB, free: 5.527 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.348/1.348, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.156/2.156, allocations: 390.3 MB / 0.6648 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 67.89 kB / 0.9504 GB, free: 8.145 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7549/0.7562, allocations: 140.3 MB / 1.087 GB, free: 5.273 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002725/0.7589, allocations: 1.783 MB / 1.089 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001222/0.7602, allocations: 0.9167 MB / 1.09 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.473e-05/0.7603, allocations: 6.219 kB / 1.09 GB, free: 3.414 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0005068/0.7608, allocations: 177.9 kB / 1.09 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003538/0.7611, allocations: 171.1 kB / 1.09 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004224/0.7616, allocations: 203.6 kB / 1.091 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002831/0.7619, allocations: 241.9 kB / 1.091 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001406/0.762, allocations: 67 kB / 1.091 GB, free: 3.023 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001469/0.7622, allocations: 98.28 kB / 1.091 GB, free: 2.984 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002071/0.7624, allocations: 155.5 kB / 1.091 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.16e-05/0.7624, allocations: 18.69 kB / 1.091 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001006/0.7625, allocations: 50.7 kB / 1.091 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001098/0.7626, allocations: 84.61 kB / 1.091 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.208e-05/0.7627, allocations: 121.2 kB / 1.091 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003936/0.7631, allocations: 357 kB / 1.092 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.7631, allocations: 0.7969 kB / 1.092 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.222e-06/0.7632, allocations: 0.9375 kB / 1.092 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.062e-06/0.7632, allocations: 0 / 1.092 GB, free: 2.652 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006628/0.7638, allocations: 0.6 MB / 1.092 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.7639, allocations: 9.969 kB / 1.092 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.732e-05/0.7639, allocations: 33.97 kB / 1.092 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.568e-05/0.764, allocations: 31.09 kB / 1.092 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004781/0.7644, allocations: 431.8 kB / 1.093 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.017e-05/0.7645, allocations: 6.062 kB / 1.093 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.521e-05/0.7645, allocations: 7.5 kB / 1.093 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000161/0.7647, allocations: 78.78 kB / 1.093 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.7647, allocations: 0 / 1.093 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.568e-06/0.7647, allocations: 0.6875 kB / 1.093 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.7647, allocations: 1.719 kB / 1.093 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001286/0.7648, allocations: 48.95 kB / 1.093 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005209/0.7654, allocations: 481.1 kB / 1.093 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00012/0.7655, allocations: 44.8 kB / 1.093 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.945e-05/0.7655, allocations: 23.55 kB / 1.093 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.686e-05/0.7656, allocations: 2.156 kB / 1.093 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.479e-05/0.7656, allocations: 36.42 kB / 1.094 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.7656, allocations: 4 kB / 1.094 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0002845/0.7659, allocations: 100.2 kB / 1.094 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.601e-05/0.7659, allocations: 52.16 kB / 1.094 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007464/0.7667, allocations: 0.5531 MB / 1.094 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.907e-06/0.7667, allocations: 25.7 kB / 1.094 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.7668, allocations: 177.4 kB / 1.094 GB, free: 0.6836 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.413e-05/0.7669, allocations: 10.94 kB / 1.094 GB, free: 0.6758 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.503e-05/0.7669, allocations: 17.3 kB / 1.094 GB, free: 0.6562 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.714e-05/0.767, allocations: 346.9 kB / 1.095 GB, free: 336 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.364e-05/0.767, allocations: 17.44 kB / 1.095 GB, free: 328 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.317e-05/0.7671, allocations: 14.59 kB / 1.095 GB, free: 324 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.604e-05/0.7672, allocations: 34.33 kB / 1.095 GB, free: 308 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.7672, allocations: 0 / 1.095 GB, free: 308 kB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001656/0.7674, allocations: 84.89 kB / 1.095 GB, free: 256 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.7674, allocations: 5.094 kB / 1.095 GB, free: 256 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.7674, allocations: 4 kB / 1.095 GB, free: 252 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.7674, allocations: 4.75 kB / 1.095 GB, free: 248 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.208e-05/0.7675, allocations: 7.516 kB / 1.095 GB, free: 248 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.7675, allocations: 1.594 kB / 1.095 GB, free: 248 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.267e-05/0.7676, allocations: 10.41 kB / 1.095 GB, free: 240 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.386e-06/0.7676, allocations: 2.016 kB / 1.095 GB, free: 240 kB / 0.8575 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 (3): * Single equations (assignments): 3 * 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.0001563/0.7678, allocations: 180.3 kB / 1.095 GB, free: 100 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.409e-05/0.7679, allocations: 27.97 kB / 1.095 GB, free: 84 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002569/0.7681, allocations: 107.5 kB / 1.095 GB, free: 12 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.7681, allocations: 48 / 1.095 GB, free: 12 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.7681, allocations: 8.984 kB / 1.095 GB, free: 4 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.7681, allocations: 0.7969 kB / 1.095 GB, free: 4 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004108/0.7686, allocations: 284.1 kB / 1.096 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.7686, allocations: 0.6562 kB / 1.096 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.498e-05/0.7686, allocations: 7.406 kB / 1.096 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.7686, allocations: 0.75 kB / 1.096 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.7687, allocations: 5.734 kB / 1.096 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.7687, allocations: 0 / 1.096 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.7687, allocations: 8.875 kB / 1.096 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002291/0.7689, allocations: 179.5 kB / 1.096 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001181/0.769, allocations: 122.2 kB / 1.096 GB, free: 15.49 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.607e-05/0.7691, allocations: 9.609 kB / 1.096 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.992e-05/0.7692, allocations: 1.781 kB / 1.096 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.961e-05/0.7692, allocations: 3.719 kB / 1.096 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-06/0.7692, allocations: 1.359 kB / 1.096 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0006244/0.7699, allocations: 422.8 kB / 1.096 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7699, allocations: 0 / 1.096 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002899/0.7702, allocations: 21.36 kB / 1.096 GB, free: 15.3 MB / 0.8731 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 (3): * Single equations (assignments): 3 * 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.001219/0.7714, allocations: 0.9689 MB / 1.097 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001669/0.7716, allocations: 37.59 kB / 1.097 GB, free: 14.51 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.7716, allocations: 0 / 1.097 GB, free: 14.51 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 5.943e-05/0.7716, allocations: 17.3 kB / 1.097 GB, free: 14.51 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004834/0.7721, allocations: 44.42 kB / 1.097 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004106/0.7763, allocations: 2.889 MB / 1.1 GB, free: 12.75 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004118/0.7767, allocations: 0.7846 MB / 1.101 GB, free: 12.04 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001505/0.7768, allocations: 50.19 kB / 1.101 GB, free: 12.03 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001536/0.777, allocations: 87.11 kB / 1.101 GB, free: 11.97 MB / 0.8731 GB Notification: Performance of SimCode: time 5.31e-07/0.777, allocations: 0 / 1.101 GB, free: 11.97 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02346/0.8005, allocations: 5.468 MB / 1.106 GB, free: 11.17 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.668/8.468, allocations: 1.125 kB / 1.106 GB, free: 11.17 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches