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.001225/0.001225, allocations: 117 kB / 16.37 MB, free: 6.012 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.001268/0.001268, allocations: 192 kB / 17.31 MB, free: 5.613 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.202/1.202, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 1.995/1.995, allocations: 390.3 MB / 0.6655 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001202, allocations: 63.11 kB / 0.814 GB, free: 32.69 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.222/0.2233, allocations: 140.4 MB / 0.9511 GB, free: 8.059 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002971/0.2263, allocations: 1.773 MB / 0.9529 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001321/0.2276, allocations: 0.9278 MB / 0.9538 GB, free: 5.344 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.429e-05/0.2277, allocations: 0 / 0.9538 GB, free: 5.344 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.000488/0.2282, allocations: 178.8 kB / 0.9539 GB, free: 5.172 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003596/0.2286, allocations: 167.7 kB / 0.9541 GB, free: 5.008 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004276/0.229, allocations: 207.4 kB / 0.9543 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002623/0.2293, allocations: 239.5 kB / 0.9545 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001371/0.2294, allocations: 61.56 kB / 0.9546 GB, free: 4.512 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001419/0.2296, allocations: 99.59 kB / 0.9547 GB, free: 4.414 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000189/0.2298, allocations: 155.5 kB / 0.9548 GB, free: 4.262 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.508e-05/0.2298, allocations: 20 kB / 0.9549 GB, free: 4.242 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.515e-05/0.2299, allocations: 47.98 kB / 0.9549 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.23, allocations: 87.73 kB / 0.955 GB, free: 4.109 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 9.812e-05/0.2301, allocations: 115.2 kB / 0.9551 GB, free: 3.996 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000307/0.2304, allocations: 350.8 kB / 0.9554 GB, free: 3.652 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2304, allocations: 0 / 0.9554 GB, free: 3.652 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.122e-06/0.2304, allocations: 0 / 0.9554 GB, free: 3.652 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.039e-06/0.2304, allocations: 0 / 0.9554 GB, free: 3.652 MB / 0.7325 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.0007167/0.2312, allocations: 0.6107 MB / 0.956 GB, free: 2.992 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.154e-05/0.2312, allocations: 12.03 kB / 0.956 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.522e-05/0.2313, allocations: 28.56 kB / 0.9561 GB, free: 2.953 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004796/0.2317, allocations: 410.3 kB / 0.9565 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.2318, allocations: 8.375 kB / 0.9565 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.791e-05/0.2318, allocations: 16.11 kB / 0.9565 GB, free: 2.488 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001536/0.2319, allocations: 77.59 kB / 0.9566 GB, free: 2.406 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.673e-06/0.232, allocations: 3.938 kB / 0.9566 GB, free: 2.402 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.167e-06/0.232, allocations: 4 kB / 0.9566 GB, free: 2.398 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.232, allocations: 0 / 0.9566 GB, free: 2.398 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001109/0.2321, allocations: 51.91 kB / 0.9566 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005095/0.2326, allocations: 472.5 kB / 0.9571 GB, free: 1.836 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001118/0.2327, allocations: 54.5 kB / 0.9571 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.371e-05/0.2328, allocations: 20.91 kB / 0.9571 GB, free: 1.75 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.783e-05/0.2328, allocations: 0 / 0.9571 GB, free: 1.75 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.794e-05/0.2329, allocations: 30.56 kB / 0.9572 GB, free: 1.711 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.2329, allocations: 4 kB / 0.9572 GB, free: 1.707 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0002449/0.2331, allocations: 109.2 kB / 0.9573 GB, free: 1.594 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.399e-05/0.2331, allocations: 51.41 kB / 0.9573 GB, free: 1.531 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000531/0.2337, allocations: 0.5562 MB / 0.9579 GB, free: 0.9688 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.281e-05/0.2337, allocations: 29.7 kB / 0.9579 GB, free: 0.9336 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.2338, allocations: 168 kB / 0.9581 GB, free: 0.7656 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.899e-05/0.2338, allocations: 15.75 kB / 0.9581 GB, free: 0.75 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.816e-05/0.2339, allocations: 13.72 kB / 0.9581 GB, free: 0.7305 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.234, allocations: 350.7 kB / 0.9584 GB, free: 388 kB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.451e-05/0.234, allocations: 16 kB / 0.9584 GB, free: 372 kB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.179e-05/0.2341, allocations: 11.98 kB / 0.9584 GB, free: 360 kB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.618e-05/0.2342, allocations: 32.84 kB / 0.9585 GB, free: 324 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.2342, allocations: 4 kB / 0.9585 GB, free: 320 kB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001415/0.2343, allocations: 89.33 kB / 0.9586 GB, free: 224 kB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.032e-05/0.2344, allocations: 4 kB / 0.9586 GB, free: 220 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-06/0.2344, allocations: 0 / 0.9586 GB, free: 220 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.2344, allocations: 3.938 kB / 0.9586 GB, free: 216 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.793e-05/0.2344, allocations: 15.98 kB / 0.9586 GB, free: 200 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.2345, allocations: 0 / 0.9586 GB, free: 200 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.907e-05/0.2345, allocations: 4.016 kB / 0.9586 GB, free: 196 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.633e-06/0.2345, allocations: 7.938 kB / 0.9586 GB, free: 188 kB / 0.7325 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.0001275/0.2347, allocations: 179.8 kB / 0.9588 GB, free: 0 / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.866e-05/0.2347, allocations: 31.61 kB / 0.9588 GB, free: 15.97 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001955/0.2349, allocations: 100.5 kB / 0.9589 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.2349, allocations: 11.88 kB / 0.9589 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.786e-06/0.235, allocations: 4 kB / 0.9589 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.235, allocations: 0 / 0.9589 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002349/0.2352, allocations: 285.5 kB / 0.9592 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.2352, allocations: 0 / 0.9592 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.862e-05/0.2353, allocations: 8 kB / 0.9592 GB, free: 15.51 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.2353, allocations: 0 / 0.9592 GB, free: 15.51 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.281e-06/0.2353, allocations: 0 / 0.9592 GB, free: 15.51 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.524e-06/0.2353, allocations: 3.938 kB / 0.9592 GB, free: 15.5 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.2353, allocations: 0 / 0.9592 GB, free: 15.5 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001776/0.2355, allocations: 183.2 kB / 0.9594 GB, free: 15.31 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/0.2356, allocations: 116.8 kB / 0.9595 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.564e-05/0.2356, allocations: 0 / 0.9595 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.453e-05/0.2357, allocations: 7.922 kB / 0.9595 GB, free: 15.17 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.515e-05/0.2357, allocations: 4 kB / 0.9595 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-06/0.2357, allocations: 0 / 0.9595 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003808/0.2361, allocations: 423 kB / 0.9599 GB, free: 14.75 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2361, allocations: 0 / 0.9599 GB, free: 14.75 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002406/0.2364, allocations: 31.89 kB / 0.9599 GB, free: 14.72 MB / 0.7481 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.0006952/0.2371, allocations: 357.7 kB / 0.9603 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0001247/0.2372, allocations: 35.97 kB / 0.9603 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2372, allocations: 0 / 0.9603 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 4.947e-05/0.2373, allocations: 23.92 kB / 0.9603 GB, free: 14.44 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003401/0.2376, allocations: 38.48 kB / 0.9604 GB, free: 14.41 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000637/0.2383, allocations: 0.506 MB / 0.9609 GB, free: 13.87 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003151/0.2386, allocations: 0.7908 MB / 0.9616 GB, free: 13.05 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 8.905e-05/0.2387, allocations: 51.08 kB / 0.9617 GB, free: 13 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.932e-05/0.2388, allocations: 23.44 kB / 0.9617 GB, free: 12.98 MB / 0.7481 GB Notification: Performance of SimCode: time 2.11e-07/0.2388, allocations: 0 / 0.9617 GB, free: 12.98 MB / 0.7481 GB Notification: Performance of Templates: time 0.004872/0.2436, allocations: 2.45 MB / 0.9641 GB, free: 10.55 MB / 0.7481 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 -s cvode -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