Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001594/0.001594, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001418/0.001418, allocations: 200 kB / 16.79 MB, free: 6.828 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.401/1.401, allocations: 222.9 MB / 240.5 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.763/2.763, allocations: 461.8 MB / 0.7348 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 72.84 kB / 0.899 GB, free: 37.03 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3037/0.305, allocations: 157.4 MB / 1.053 GB, free: 8.277 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003586/0.3087, allocations: 1.829 MB / 1.055 GB, free: 6.434 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001584/0.3103, allocations: 0.9122 MB / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/0.3104, allocations: 7.938 kB / 1.055 GB, free: 5.508 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000592/0.311, allocations: 170 kB / 1.056 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003715/0.3114, allocations: 148.8 kB / 1.056 GB, free: 5.199 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004652/0.3119, allocations: 182.2 kB / 1.056 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000293/0.3122, allocations: 227.5 kB / 1.056 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001418/0.3123, allocations: 49.66 kB / 1.056 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001645/0.3125, allocations: 83.67 kB / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002022/0.3127, allocations: 147.5 kB / 1.056 GB, free: 4.527 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.597e-05/0.3128, allocations: 4 kB / 1.056 GB, free: 4.523 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.909e-05/0.3129, allocations: 28 kB / 1.056 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.313, allocations: 75.75 kB / 1.057 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001009/0.3131, allocations: 111.2 kB / 1.057 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003024/0.3134, allocations: 299.6 kB / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3134, allocations: 0 / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.81e-07/0.3134, allocations: 0 / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.051e-06/0.3134, allocations: 0 / 1.057 GB, free: 4.02 MB / 0.8106 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.0008423/0.3143, allocations: 0.6008 MB / 1.057 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.3143, allocations: 8.031 kB / 1.057 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.257e-05/0.3144, allocations: 32.56 kB / 1.058 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005369/0.3149, allocations: 414.2 kB / 1.058 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.315, allocations: 12.31 kB / 1.058 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.703e-05/0.315, allocations: 12.12 kB / 1.058 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001703/0.3152, allocations: 73.67 kB / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.3152, allocations: 0 / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.3152, allocations: 0 / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.3152, allocations: 4 kB / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001273/0.3153, allocations: 47.91 kB / 1.058 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006077/0.316, allocations: 488.5 kB / 1.059 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001359/0.3161, allocations: 46.56 kB / 1.059 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.782e-05/0.3162, allocations: 20.91 kB / 1.059 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.545e-05/0.3162, allocations: 0 / 1.059 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.64e-05/0.3162, allocations: 34.5 kB / 1.059 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.3162, allocations: 4 kB / 1.059 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.000304/0.3166, allocations: 113.2 kB / 1.059 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.258e-05/0.3166, allocations: 51.41 kB / 1.059 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006147/0.3172, allocations: 0.5484 MB / 1.059 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.3172, allocations: 29.7 kB / 1.059 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001306/0.3174, allocations: 172 kB / 1.06 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.455e-05/0.3174, allocations: 15.75 kB / 1.06 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.207e-05/0.3175, allocations: 13.7 kB / 1.06 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001442/0.3176, allocations: 350.8 kB / 1.06 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.172e-05/0.3177, allocations: 11.98 kB / 1.06 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.496e-05/0.3177, allocations: 12 kB / 1.06 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.114e-05/0.3178, allocations: 44.77 kB / 1.06 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.3178, allocations: 0 / 1.06 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001713/0.318, allocations: 89.3 kB / 1.06 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.318, allocations: 4 kB / 1.06 GB, free: 0.582 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.3181, allocations: 4 kB / 1.06 GB, free: 0.5781 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.3181, allocations: 3.938 kB / 1.06 GB, free: 0.5742 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.78e-05/0.3182, allocations: 4 kB / 1.06 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.3182, allocations: 4 kB / 1.06 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.572e-05/0.3182, allocations: 3.984 kB / 1.06 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.743e-06/0.3183, allocations: 0 / 1.06 GB, free: 0.5625 MB / 0.8106 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.0001529/0.3184, allocations: 182.3 kB / 1.06 GB, free: 384 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.456e-05/0.3185, allocations: 31.62 kB / 1.06 GB, free: 352 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002159/0.3187, allocations: 100.2 kB / 1.06 GB, free: 240 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.3187, allocations: 3.938 kB / 1.06 GB, free: 236 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.3187, allocations: 112 / 1.06 GB, free: 236 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.3187, allocations: 8.312 kB / 1.06 GB, free: 228 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002855/0.319, allocations: 285.5 kB / 1.061 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.319, allocations: 0 / 1.061 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.128e-05/0.3191, allocations: 7.984 kB / 1.061 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.3191, allocations: 4 kB / 1.061 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.815e-06/0.3191, allocations: 0 / 1.061 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.3191, allocations: 3.938 kB / 1.061 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.3191, allocations: 7.984 kB / 1.061 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002035/0.3193, allocations: 187.1 kB / 1.061 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.7e-05/0.3194, allocations: 112.8 kB / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.265e-05/0.3195, allocations: 4 kB / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.92e-05/0.3196, allocations: 3.938 kB / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.798e-05/0.3196, allocations: 8 kB / 1.061 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-06/0.3196, allocations: 7.984 kB / 1.061 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004195/0.3201, allocations: 419.1 kB / 1.061 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.41e-07/0.3201, allocations: 0 / 1.061 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002616/0.3203, allocations: 27.91 kB / 1.061 GB, free: 15.09 MB / 0.8262 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.0008229/0.3212, allocations: 361.4 kB / 1.062 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001529/0.3213, allocations: 35.92 kB / 1.062 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3213, allocations: 0 / 1.062 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.581e-05/0.3214, allocations: 19.98 kB / 1.062 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004109/0.3218, allocations: 43.44 kB / 1.062 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000867/0.3227, allocations: 0.6031 MB / 1.062 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003679/0.3231, allocations: 0.7912 MB / 1.063 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.124e-05/0.3232, allocations: 23.44 kB / 1.063 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.3232, allocations: 0 / 1.063 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of Templates: time 0.006117/0.3293, allocations: 3.533 MB / 1.067 GB, free: 9.762 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches