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.00146/0.00146, allocations: 117.5 kB / 16.37 MB, free: 6.016 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.001573/0.001573, allocations: 189.7 kB / 17.3 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.311/1.311, allocations: 222.9 MB / 241 MB, free: 15.19 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 2.285/2.285, allocations: 390.3 MB / 0.6655 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 61.56 kB / 0.814 GB, free: 32.69 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2442/0.2455, allocations: 140.4 MB / 0.9511 GB, free: 8.082 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.00323/0.2487, allocations: 1.784 MB / 0.9529 GB, free: 6.293 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001502/0.2502, allocations: 0.9162 MB / 0.9538 GB, free: 5.371 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000116/0.2504, allocations: 7.938 kB / 0.9538 GB, free: 5.363 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0005343/0.2509, allocations: 176.2 kB / 0.9539 GB, free: 5.195 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0004008/0.2513, allocations: 171.7 kB / 0.9541 GB, free: 5.027 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004641/0.2518, allocations: 203.4 kB / 0.9543 GB, free: 4.832 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003003/0.2521, allocations: 239.5 kB / 0.9545 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001438/0.2523, allocations: 65.56 kB / 0.9546 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001553/0.2524, allocations: 107.6 kB / 0.9547 GB, free: 4.426 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001953/0.2526, allocations: 151.5 kB / 0.9548 GB, free: 4.277 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.616e-05/0.2527, allocations: 20 kB / 0.9549 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 9.348e-05/0.2528, allocations: 55.97 kB / 0.9549 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 9.531e-05/0.2529, allocations: 83.75 kB / 0.955 GB, free: 4.121 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001052/0.253, allocations: 111.2 kB / 0.9551 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000331/0.2533, allocations: 358.8 kB / 0.9554 GB, free: 3.66 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2533, allocations: 4 kB / 0.9554 GB, free: 3.656 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.533e-06/0.2533, allocations: 0 / 0.9554 GB, free: 3.656 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.276e-06/0.2534, allocations: 0 / 0.9554 GB, free: 3.656 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.000764/0.2541, allocations: 0.603 MB / 0.956 GB, free: 3.004 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.197e-05/0.2542, allocations: 8.031 kB / 0.956 GB, free: 2.996 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.846e-05/0.2542, allocations: 32.56 kB / 0.9561 GB, free: 2.965 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005265/0.2548, allocations: 418.3 kB / 0.9565 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.034e-05/0.2548, allocations: 384 / 0.9565 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.538e-05/0.2548, allocations: 16.05 kB / 0.9565 GB, free: 2.5 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001621/0.255, allocations: 77.66 kB / 0.9566 GB, free: 2.418 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.255, allocations: 0 / 0.9566 GB, free: 2.418 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.255, allocations: 7.938 kB / 0.9566 GB, free: 2.41 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.255, allocations: 0 / 0.9566 GB, free: 2.41 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001198/0.2551, allocations: 43.97 kB / 0.9566 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005664/0.2557, allocations: 484.5 kB / 0.9571 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001158/0.2558, allocations: 42.56 kB / 0.9571 GB, free: 1.793 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.332e-05/0.2559, allocations: 20.91 kB / 0.9571 GB, free: 1.77 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.771e-05/0.2559, allocations: 0 / 0.9571 GB, free: 1.77 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/0.256, allocations: 46.5 kB / 0.9572 GB, free: 1.715 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 8.71e-07/0.256, allocations: 0 / 0.9572 GB, free: 1.715 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0002692/0.2562, allocations: 97.23 kB / 0.9573 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.032e-05/0.2563, allocations: 51.41 kB / 0.9573 GB, free: 1.551 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006117/0.2569, allocations: 0.5601 MB / 0.9579 GB, free: 0.9844 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.31e-05/0.2569, allocations: 25.7 kB / 0.9579 GB, free: 0.9531 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.257, allocations: 172 kB / 0.9581 GB, free: 0.7812 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.937e-05/0.2571, allocations: 15.75 kB / 0.9581 GB, free: 0.7656 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.269e-05/0.2571, allocations: 17.72 kB / 0.9581 GB, free: 0.7422 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001217/0.2572, allocations: 342.8 kB / 0.9584 GB, free: 408 kB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.758e-05/0.2573, allocations: 12 kB / 0.9584 GB, free: 396 kB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.034e-05/0.2573, allocations: 15.98 kB / 0.9584 GB, free: 380 kB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.354e-05/0.2574, allocations: 36.78 kB / 0.9585 GB, free: 340 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.2574, allocations: 0 / 0.9585 GB, free: 340 kB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001536/0.2576, allocations: 85.39 kB / 0.9586 GB, free: 248 kB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.2576, allocations: 8 kB / 0.9586 GB, free: 240 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.2576, allocations: 0 / 0.9586 GB, free: 240 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.2577, allocations: 3.938 kB / 0.9586 GB, free: 236 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.319e-05/0.2577, allocations: 11.98 kB / 0.9586 GB, free: 224 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.2578, allocations: 0 / 0.9586 GB, free: 224 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.499e-05/0.2578, allocations: 7.906 kB / 0.9586 GB, free: 216 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-06/0.2578, allocations: 112 / 0.9586 GB, free: 216 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.0001418/0.258, allocations: 181.7 kB / 0.9588 GB, free: 24 kB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.943e-05/0.2581, allocations: 35.73 kB / 0.9588 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002168/0.2583, allocations: 104.5 kB / 0.9589 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.2583, allocations: 3.938 kB / 0.9589 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.2583, allocations: 0 / 0.9589 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.033e-06/0.2583, allocations: 3.938 kB / 0.9589 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002671/0.2586, allocations: 285.5 kB / 0.9592 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.2586, allocations: 0 / 0.9592 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.964e-05/0.2586, allocations: 8 kB / 0.9592 GB, free: 15.53 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.2587, allocations: 0 / 0.9592 GB, free: 15.53 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.104e-06/0.2587, allocations: 0 / 0.9592 GB, free: 15.53 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.13e-06/0.2587, allocations: 15.92 kB / 0.9592 GB, free: 15.51 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2587, allocations: 0 / 0.9592 GB, free: 15.51 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002025/0.2589, allocations: 187.1 kB / 0.9594 GB, free: 15.31 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001124/0.259, allocations: 108.8 kB / 0.9595 GB, free: 15.19 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3e-05/0.259, allocations: 3.984 kB / 0.9595 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.377e-05/0.2591, allocations: 7.938 kB / 0.9595 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.685e-05/0.2592, allocations: 0 / 0.9595 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-06/0.2592, allocations: 4 kB / 0.9595 GB, free: 15.17 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0004159/0.2596, allocations: 423.1 kB / 0.9599 GB, free: 14.76 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2596, allocations: 0 / 0.9599 GB, free: 14.76 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002657/0.2599, allocations: 27.91 kB / 0.9599 GB, free: 14.73 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.000789/0.2607, allocations: 356.5 kB / 0.9603 GB, free: 14.51 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0001575/0.2609, allocations: 31.91 kB / 0.9603 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2609, allocations: 0 / 0.9603 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 5.156e-05/0.2609, allocations: 19.98 kB / 0.9603 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003977/0.2613, allocations: 46.61 kB / 0.9604 GB, free: 14.42 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007169/0.2621, allocations: 0.5061 MB / 0.9608 GB, free: 13.88 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003485/0.2624, allocations: 0.7829 MB / 0.9616 GB, free: 13.07 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 9.942e-05/0.2625, allocations: 55.08 kB / 0.9617 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.451e-05/0.2626, allocations: 19.44 kB / 0.9617 GB, free: 13 MB / 0.7481 GB Notification: Performance of SimCode: time 2.6e-07/0.2626, allocations: 4 kB / 0.9617 GB, free: 13 MB / 0.7481 GB Notification: Performance of Templates: time 0.005525/0.2681, allocations: 2.462 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 gbode -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