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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001443/0.001443, allocations: 111.6 kB / 17.08 MB, free: 6.004 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001515/0.001515, allocations: 188.3 kB / 20.02 MB, free: 3.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.454/1.454, allocations: 222.9 MB / 245.7 MB, free: 4.211 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.955/2.955, allocations: 490 MB / 0.7695 GB, free: 3.219 MB / 0.6075 GB " [Timeout remaining time 176] 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=2500,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=2500,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 71.89 kB / 1.104 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9124/0.9143, allocations: 164 MB / 1.264 GB, free: 7.324 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003012/0.9174, allocations: 1.767 MB / 1.266 GB, free: 6.105 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001283/0.9187, allocations: 0.9184 MB / 1.266 GB, free: 5.477 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.166e-05/0.9188, allocations: 5.562 kB / 1.266 GB, free: 5.473 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004886/0.9193, allocations: 184.5 kB / 1.267 GB, free: 5.398 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.000385/0.9197, allocations: 162 kB / 1.267 GB, free: 5.328 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004146/0.9201, allocations: 217.7 kB / 1.267 GB, free: 5.211 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002915/0.9204, allocations: 237.1 kB / 1.267 GB, free: 5.109 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001468/0.9205, allocations: 56.7 kB / 1.267 GB, free: 5.086 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001562/0.9207, allocations: 105 kB / 1.267 GB, free: 5.039 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002164/0.9209, allocations: 151.5 kB / 1.268 GB, free: 4.992 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.338e-05/0.921, allocations: 18.88 kB / 1.268 GB, free: 4.992 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001162/0.9211, allocations: 46.53 kB / 1.268 GB, free: 4.984 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001072/0.9212, allocations: 84.94 kB / 1.268 GB, free: 4.949 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 8.984e-05/0.9213, allocations: 117.2 kB / 1.268 GB, free: 4.859 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000442/0.9218, allocations: 359.5 kB / 1.268 GB, free: 4.719 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.9218, allocations: 0.9375 kB / 1.268 GB, free: 4.719 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.293e-06/0.9218, allocations: 0 / 1.268 GB, free: 4.719 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.9218, allocations: 0 / 1.268 GB, free: 4.719 MB / 0.9981 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.0006965/0.9225, allocations: 0.6162 MB / 1.269 GB, free: 4.176 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.9225, allocations: 9.281 kB / 1.269 GB, free: 4.176 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.516e-05/0.9226, allocations: 34.83 kB / 1.269 GB, free: 4.156 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004702/0.9231, allocations: 420.4 kB / 1.269 GB, free: 3.844 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.172e-05/0.9231, allocations: 6.375 kB / 1.269 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.489e-05/0.9231, allocations: 11.91 kB / 1.269 GB, free: 3.832 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001627/0.9233, allocations: 74.14 kB / 1.269 GB, free: 3.785 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.9233, allocations: 0.75 kB / 1.269 GB, free: 3.785 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.9233, allocations: 4.812 kB / 1.269 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.9233, allocations: 1.594 kB / 1.269 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001359/0.9235, allocations: 43.89 kB / 1.269 GB, free: 3.77 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005363/0.924, allocations: 481.7 kB / 1.27 GB, free: 3.414 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001215/0.9242, allocations: 45.44 kB / 1.27 GB, free: 3.383 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.143e-05/0.9242, allocations: 23.38 kB / 1.27 GB, free: 3.367 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.376e-05/0.9242, allocations: 1.625 kB / 1.27 GB, free: 3.367 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.689e-05/0.9243, allocations: 35.81 kB / 1.27 GB, free: 3.324 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.9243, allocations: 0.8125 kB / 1.27 GB, free: 3.324 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0002743/0.9245, allocations: 108.5 kB / 1.27 GB, free: 3.258 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.139e-05/0.9246, allocations: 52.44 kB / 1.27 GB, free: 3.195 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006488/0.9252, allocations: 0.5493 MB / 1.271 GB, free: 2.957 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 7.454e-06/0.9252, allocations: 29.7 kB / 1.271 GB, free: 2.922 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.9254, allocations: 177.1 kB / 1.271 GB, free: 2.773 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.854e-05/0.9254, allocations: 10.11 kB / 1.271 GB, free: 2.766 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.076e-05/0.9254, allocations: 26.12 kB / 1.271 GB, free: 2.738 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 6.605e-05/0.9255, allocations: 342.9 kB / 1.271 GB, free: 2.414 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.989e-05/0.9255, allocations: 9.766 kB / 1.271 GB, free: 2.414 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.255e-05/0.9256, allocations: 14.53 kB / 1.271 GB, free: 2.41 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.244e-05/0.9257, allocations: 42.25 kB / 1.271 GB, free: 2.387 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.9257, allocations: 0 / 1.271 GB, free: 2.387 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001583/0.9259, allocations: 91.06 kB / 1.271 GB, free: 2.332 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.9259, allocations: 5.25 kB / 1.271 GB, free: 2.332 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.9259, allocations: 0 / 1.271 GB, free: 2.332 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.9259, allocations: 4.469 kB / 1.271 GB, free: 2.328 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.183e-05/0.926, allocations: 5.938 kB / 1.271 GB, free: 2.328 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.926, allocations: 0.875 kB / 1.271 GB, free: 2.328 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.263e-05/0.9261, allocations: 9.219 kB / 1.271 GB, free: 2.324 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.101e-06/0.9261, allocations: 5.312 kB / 1.271 GB, free: 2.32 MB / 0.9981 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.0001219/0.9262, allocations: 186.8 kB / 1.271 GB, free: 2.176 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.158e-05/0.9263, allocations: 32.67 kB / 1.272 GB, free: 2.156 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001968/0.9265, allocations: 99.03 kB / 1.272 GB, free: 2.102 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.9265, allocations: 4.688 kB / 1.272 GB, free: 2.098 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.9265, allocations: 0.9688 kB / 1.272 GB, free: 2.098 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.9265, allocations: 0 / 1.272 GB, free: 2.098 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002656/0.9268, allocations: 282 kB / 1.272 GB, free: 1.871 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.9268, allocations: 4 kB / 1.272 GB, free: 1.867 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.862e-05/0.9268, allocations: 10.64 kB / 1.272 GB, free: 1.863 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.9268, allocations: 0.5625 kB / 1.272 GB, free: 1.863 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-06/0.9268, allocations: 1.344 kB / 1.272 GB, free: 1.863 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.9269, allocations: 5.219 kB / 1.272 GB, free: 1.859 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.9269, allocations: 0 / 1.272 GB, free: 1.859 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001804/0.927, allocations: 189.3 kB / 1.272 GB, free: 1.699 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.173e-05/0.9271, allocations: 113.7 kB / 1.272 GB, free: 1.586 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.02e-05/0.9272, allocations: 4.797 kB / 1.272 GB, free: 1.582 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.942e-05/0.9273, allocations: 6.688 kB / 1.272 GB, free: 1.578 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.056e-05/0.9273, allocations: 8.781 kB / 1.272 GB, free: 1.574 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.508e-06/0.9273, allocations: 0.6562 kB / 1.272 GB, free: 1.574 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004429/0.9278, allocations: 419.4 kB / 1.273 GB, free: 1.391 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9278, allocations: 0 / 1.273 GB, free: 1.391 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002683/0.928, allocations: 29.42 kB / 1.273 GB, free: 1.383 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.001206/0.9292, allocations: 357.3 kB / 1.273 GB, free: 1.207 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.000159/0.9294, allocations: 35.34 kB / 1.273 GB, free: 1.195 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.9294, allocations: 4.625 kB / 1.273 GB, free: 1.191 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 5.373e-05/0.9295, allocations: 20.8 kB / 1.273 GB, free: 1.184 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004507/0.9299, allocations: 43.11 kB / 1.273 GB, free: 1.168 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007635/0.9307, allocations: 0.5559 MB / 1.274 GB, free: 0.832 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002205/0.9309, allocations: 0.7853 MB / 1.274 GB, free: 120 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.453e-05/0.931, allocations: 28.75 kB / 1.274 GB, free: 108 kB / 0.9981 GB Notification: Performance of SimCode: time 2.2e-07/0.931, allocations: 0 / 1.274 GB, free: 108 kB / 0.9981 GB Notification: Performance of Templates: time 0.006915/0.9379, allocations: 3.571 MB / 1.278 GB, free: 15.65 MB / 1.014 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.810269922018051]