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 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: 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.007491/0.007491, allocations: 101.8 kB / 15.73 MB, free: 6.441 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.001362/0.001362, allocations: 196.3 kB / 16.67 MB, free: 6.352 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.496/1.496, allocations: 222.9 MB / 240.4 MB, free: 4.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.903/2.903, allocations: 472.6 MB / 0.7452 GB, free: 4.574 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 63.91 kB / 1.069 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3143/0.3156, allocations: 159.9 MB / 1.226 GB, free: 9.199 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003052/0.3187, allocations: 1.772 MB / 1.227 GB, free: 7.418 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001404/0.3201, allocations: 0.9276 MB / 1.228 GB, free: 6.484 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.747e-05/0.3202, allocations: 3.938 kB / 1.228 GB, free: 6.48 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0005374/0.3207, allocations: 185.7 kB / 1.228 GB, free: 6.301 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0004214/0.3211, allocations: 172.8 kB / 1.229 GB, free: 6.133 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004464/0.3216, allocations: 206.5 kB / 1.229 GB, free: 5.934 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002821/0.3219, allocations: 239.5 kB / 1.229 GB, free: 5.699 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001599/0.322, allocations: 53.62 kB / 1.229 GB, free: 5.648 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001664/0.3222, allocations: 99.66 kB / 1.229 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002096/0.3224, allocations: 163.5 kB / 1.229 GB, free: 5.391 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.392e-05/0.3225, allocations: 23.94 kB / 1.229 GB, free: 5.367 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001097/0.3226, allocations: 43.98 kB / 1.229 GB, free: 5.324 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001012/0.3227, allocations: 83.75 kB / 1.229 GB, free: 5.242 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 9.97e-05/0.3228, allocations: 111.2 kB / 1.23 GB, free: 5.133 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004001/0.3232, allocations: 366.5 kB / 1.23 GB, free: 4.773 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.3232, allocations: 0 / 1.23 GB, free: 4.773 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.924e-06/0.3232, allocations: 0 / 1.23 GB, free: 4.773 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.683e-06/0.3233, allocations: 0 / 1.23 GB, free: 4.773 MB / 0.9825 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.0007819/0.324, allocations: 0.6145 MB / 1.23 GB, free: 4.109 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.3241, allocations: 12.03 kB / 1.23 GB, free: 4.098 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.295e-05/0.3242, allocations: 36.69 kB / 1.231 GB, free: 4.062 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005121/0.3247, allocations: 418.6 kB / 1.231 GB, free: 3.613 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.907e-06/0.3247, allocations: 4.375 kB / 1.231 GB, free: 3.609 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.815e-05/0.3247, allocations: 8.125 kB / 1.231 GB, free: 3.602 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001621/0.3249, allocations: 69.67 kB / 1.231 GB, free: 3.527 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.3249, allocations: 3.938 kB / 1.231 GB, free: 3.523 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.374e-05/0.3249, allocations: 8 kB / 1.231 GB, free: 3.516 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.3249, allocations: 0 / 1.231 GB, free: 3.516 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001575/0.3251, allocations: 47.97 kB / 1.231 GB, free: 3.469 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005797/0.3257, allocations: 480.5 kB / 1.232 GB, free: 2.949 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001273/0.3258, allocations: 50.5 kB / 1.232 GB, free: 2.891 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.349e-05/0.3259, allocations: 24.89 kB / 1.232 GB, free: 2.863 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.918e-05/0.3259, allocations: 0 / 1.232 GB, free: 2.863 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.132e-05/0.3259, allocations: 38.56 kB / 1.232 GB, free: 2.816 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 8.52e-07/0.3259, allocations: 0 / 1.232 GB, free: 2.816 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0003112/0.3262, allocations: 105.4 kB / 1.232 GB, free: 2.707 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.924e-05/0.3263, allocations: 51.41 kB / 1.232 GB, free: 2.645 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000653/0.327, allocations: 0.5562 MB / 1.232 GB, free: 2.078 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.742e-05/0.327, allocations: 29.7 kB / 1.232 GB, free: 2.043 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/0.3271, allocations: 168.1 kB / 1.233 GB, free: 1.875 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.531e-05/0.3272, allocations: 23.78 kB / 1.233 GB, free: 1.852 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.638e-05/0.3272, allocations: 13.7 kB / 1.233 GB, free: 1.832 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001447/0.3273, allocations: 342.8 kB / 1.233 GB, free: 1.488 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.263e-05/0.3274, allocations: 15.98 kB / 1.233 GB, free: 1.473 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.953e-05/0.3275, allocations: 11.98 kB / 1.233 GB, free: 1.461 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.042e-05/0.3275, allocations: 36.84 kB / 1.233 GB, free: 1.422 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3276, allocations: 0 / 1.233 GB, free: 1.422 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001675/0.3277, allocations: 93.48 kB / 1.233 GB, free: 1.324 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.3278, allocations: 4 kB / 1.233 GB, free: 1.32 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.3278, allocations: 4 kB / 1.233 GB, free: 1.316 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.3278, allocations: 3.938 kB / 1.233 GB, free: 1.312 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.912e-05/0.3279, allocations: 7.938 kB / 1.233 GB, free: 1.305 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.3279, allocations: 7.938 kB / 1.233 GB, free: 1.297 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.193e-05/0.3279, allocations: 4.094 kB / 1.233 GB, free: 1.293 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.328, allocations: 3.938 kB / 1.233 GB, free: 1.289 MB / 0.9825 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.0001671/0.3281, allocations: 181.8 kB / 1.233 GB, free: 1.102 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.12e-05/0.3282, allocations: 27.81 kB / 1.233 GB, free: 1.074 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002118/0.3284, allocations: 100.2 kB / 1.233 GB, free: 0.9688 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.3284, allocations: 3.938 kB / 1.233 GB, free: 0.9648 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.3284, allocations: 4 kB / 1.233 GB, free: 0.9609 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.3284, allocations: 0 / 1.233 GB, free: 0.9609 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002791/0.3287, allocations: 281.5 kB / 1.234 GB, free: 0.6367 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.3287, allocations: 0 / 1.234 GB, free: 0.6367 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-05/0.3288, allocations: 11.98 kB / 1.234 GB, free: 0.625 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.3288, allocations: 7.938 kB / 1.234 GB, free: 0.6172 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.754e-06/0.3288, allocations: 0 / 1.234 GB, free: 0.6172 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.3288, allocations: 3.938 kB / 1.234 GB, free: 0.6133 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3288, allocations: 3.984 kB / 1.234 GB, free: 0.6094 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002236/0.3291, allocations: 183.7 kB / 1.234 GB, free: 424 kB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.137e-05/0.3291, allocations: 120.9 kB / 1.234 GB, free: 284 kB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.79e-05/0.3292, allocations: 0 / 1.234 GB, free: 284 kB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.089e-05/0.3293, allocations: 7.938 kB / 1.234 GB, free: 276 kB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.761e-05/0.3293, allocations: 4.047 kB / 1.234 GB, free: 272 kB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.534e-06/0.3293, allocations: 7.969 kB / 1.234 GB, free: 264 kB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004842/0.3298, allocations: 419.1 kB / 1.234 GB, free: 15.85 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.41e-07/0.3298, allocations: 0 / 1.234 GB, free: 15.85 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000259/0.3301, allocations: 27.94 kB / 1.234 GB, free: 15.82 MB / 0.9981 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.0007824/0.3309, allocations: 359 kB / 1.235 GB, free: 15.6 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001461/0.331, allocations: 31.92 kB / 1.235 GB, free: 15.57 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.331, allocations: 0 / 1.235 GB, free: 15.57 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 5.237e-05/0.3311, allocations: 19.98 kB / 1.235 GB, free: 15.55 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003869/0.3315, allocations: 49.03 kB / 1.235 GB, free: 15.5 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006747/0.3322, allocations: 0.5093 MB / 1.235 GB, free: 14.96 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003239/0.3325, allocations: 0.787 MB / 1.236 GB, free: 14.15 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 9.612e-05/0.3326, allocations: 46.88 kB / 1.236 GB, free: 14.1 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.195e-05/0.3327, allocations: 27.36 kB / 1.236 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of SimCode: time 2.6e-07/0.3327, allocations: 0 / 1.236 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of Templates: time 0.005383/0.3381, allocations: 2.484 MB / 1.239 GB, free: 11.63 MB / 0.9981 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/jenkins/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