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.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.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_9_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_9_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.007565/0.007565, allocations: 100.4 kB / 15.87 MB, free: 6.324 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.00154/0.00154, allocations: 193.6 kB / 16.79 MB, free: 6.254 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.388/1.388, allocations: 222.9 MB / 240.5 MB, free: 4.445 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.502/2.502, allocations: 390.2 MB / 0.6649 GB, free: 0.6445 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 63.91 kB / 0.8125 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7279/0.7294, allocations: 140.3 MB / 0.9496 GB, free: 9.168 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003013/0.7324, allocations: 1.826 MB / 0.9514 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001331/0.7338, allocations: 0.9098 MB / 0.9523 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.22e-05/0.7339, allocations: 1.406 kB / 0.9523 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000524/0.7344, allocations: 160.8 kB / 0.9524 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003111/0.7347, allocations: 158.3 kB / 0.9526 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003949/0.7351, allocations: 191.6 kB / 0.9527 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002475/0.7354, allocations: 220.2 kB / 0.953 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001487/0.7356, allocations: 54.05 kB / 0.953 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001511/0.7357, allocations: 85.36 kB / 0.9531 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000192/0.7359, allocations: 139.3 kB / 0.9532 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.625e-05/0.736, allocations: 7.625 kB / 0.9532 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.883e-05/0.7361, allocations: 30.84 kB / 0.9533 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001038/0.7362, allocations: 84.16 kB / 0.9533 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.412e-05/0.7363, allocations: 104.7 kB / 0.9534 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002582/0.7365, allocations: 292.9 kB / 0.9537 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.7365, allocations: 1.75 kB / 0.9537 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.22e-07/0.7365, allocations: 0 / 0.9537 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.012e-06/0.7366, allocations: 4 kB / 0.9537 GB, free: 6.105 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0007318/0.7373, allocations: 0.5981 MB / 0.9543 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.7373, allocations: 9.75 kB / 0.9543 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.941e-05/0.7374, allocations: 34.95 kB / 0.9543 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004623/0.7379, allocations: 418.1 kB / 0.9547 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.909e-06/0.7379, allocations: 3.375 kB / 0.9548 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.668e-05/0.7379, allocations: 11.03 kB / 0.9548 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001612/0.7381, allocations: 72.5 kB / 0.9548 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.7381, allocations: 4 kB / 0.9548 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/0.7381, allocations: 5.125 kB / 0.9548 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.7381, allocations: 1 kB / 0.9548 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001251/0.7383, allocations: 45.03 kB / 0.9549 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005431/0.7388, allocations: 482.9 kB / 0.9553 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001255/0.739, allocations: 48.67 kB / 0.9554 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.155e-05/0.739, allocations: 24.16 kB / 0.9554 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.911e-05/0.739, allocations: 9.234 kB / 0.9554 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.009e-05/0.7391, allocations: 35.72 kB / 0.9555 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.342e-06/0.7391, allocations: 0 / 0.9555 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0002951/0.7394, allocations: 111.2 kB / 0.9556 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.416e-05/0.7394, allocations: 52.84 kB / 0.9556 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00058/0.74, allocations: 0.5487 MB / 0.9561 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.648e-06/0.74, allocations: 26.89 kB / 0.9562 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.7401, allocations: 174 kB / 0.9563 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.804e-05/0.7402, allocations: 8.984 kB / 0.9563 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.907e-05/0.7402, allocations: 17.44 kB / 0.9564 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.427e-05/0.7403, allocations: 344.4 kB / 0.9567 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.892e-05/0.7403, allocations: 15.02 kB / 0.9567 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.862e-05/0.7404, allocations: 20.33 kB / 0.9567 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.949e-05/0.7405, allocations: 34.34 kB / 0.9568 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.7405, allocations: 0 / 0.9568 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001497/0.7406, allocations: 87.73 kB / 0.9568 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.7406, allocations: 5.438 kB / 0.9568 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.7407, allocations: 0 / 0.9568 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.7407, allocations: 3.938 kB / 0.9569 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.766e-05/0.7408, allocations: 9.625 kB / 0.9569 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.7408, allocations: 1.375 kB / 0.9569 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.169e-05/0.7408, allocations: 5.328 kB / 0.9569 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.756e-06/0.7409, allocations: 1.797 kB / 0.9569 GB, free: 3.449 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 (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.0001392/0.741, allocations: 179.6 kB / 0.957 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.697e-05/0.7411, allocations: 29.25 kB / 0.9571 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002251/0.7413, allocations: 103.9 kB / 0.9572 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.7413, allocations: 9.875 kB / 0.9572 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.7413, allocations: 0 / 0.9572 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.7413, allocations: 0 / 0.9572 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002302/0.7416, allocations: 286.7 kB / 0.9575 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.7416, allocations: 0 / 0.9575 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.755e-05/0.7416, allocations: 10.05 kB / 0.9575 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.7416, allocations: 0 / 0.9575 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.7416, allocations: 1.438 kB / 0.9575 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.7416, allocations: 7.922 kB / 0.9575 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.7417, allocations: 5.406 kB / 0.9575 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001758/0.7418, allocations: 190.9 kB / 0.9577 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 7.749e-05/0.7419, allocations: 115.3 kB / 0.9578 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.278e-05/0.742, allocations: 0 / 0.9578 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.575e-05/0.7421, allocations: 5.281 kB / 0.9578 GB, free: 2.609 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.634e-05/0.7421, allocations: 6.172 kB / 0.9578 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.63e-06/0.7421, allocations: 5.469 kB / 0.9578 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0003871/0.7425, allocations: 412.5 kB / 0.9582 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7425, allocations: 4 kB / 0.9582 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002662/0.7428, allocations: 29.91 kB / 0.9582 GB, free: 2.375 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 (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.0008037/0.7436, allocations: 352.1 kB / 0.9585 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001517/0.7438, allocations: 43.16 kB / 0.9586 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.7438, allocations: 3.938 kB / 0.9586 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.851e-05/0.7438, allocations: 9.625 kB / 0.9586 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004447/0.7443, allocations: 49.3 kB / 0.9586 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008411/0.7451, allocations: 0.6087 MB / 0.9592 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002347/0.7454, allocations: 0.787 MB / 0.96 GB, free: 0.9531 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.413e-05/0.7454, allocations: 24.91 kB / 0.96 GB, free: 0.9414 MB / 0.7169 GB Notification: Performance of SimCode: time 3.91e-07/0.7455, allocations: 1.062 kB / 0.96 GB, free: 0.9414 MB / 0.7169 GB Notification: Performance of Templates: time 0.006331/0.7518, allocations: 3.534 MB / 0.9635 GB, free: 15.12 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (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 & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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