Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000849/0.000849, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 165.9 kB / 22.45 MB, free: 2.113 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8885/0.8885, allocations: 177.2 MB / 202.8 MB, free: 5.539 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.69/1.69, allocations: 377.8 MB / 0.6221 GB, free: 8.625 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 0.981 GB, free: 2.574 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.636e-05/1.783e-05, allocations: 6.281 kB / 0.981 GB, free: 2.566 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002185/0.002203, allocations: 1.789 MB / 0.9827 GB, free: 0.7695 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001153/0.003355, allocations: 1.091 MB / 0.9838 GB, free: 15.67 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.377e-05/0.003439, allocations: 3.938 kB / 0.9838 GB, free: 15.67 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.0003997/0.003839, allocations: 195.3 kB / 0.984 GB, free: 15.48 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 0.0003529/0.004192, allocations: 219.5 kB / 0.9842 GB, free: 15.27 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003152/0.004507, allocations: 223.1 kB / 0.9844 GB, free: 15.05 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0002292/0.004736, allocations: 271.3 kB / 0.9846 GB, free: 14.79 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.004852, allocations: 36.55 kB / 0.9847 GB, free: 14.75 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001734/0.005026, allocations: 135.6 kB / 0.9848 GB, free: 14.62 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001463/0.005172, allocations: 167.6 kB / 0.985 GB, free: 14.46 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.639e-05/0.005198, allocations: 20 kB / 0.985 GB, free: 14.44 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 7.957e-05/0.005278, allocations: 51.92 kB / 0.985 GB, free: 14.39 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 7.736e-05/0.005355, allocations: 91.69 kB / 0.9851 GB, free: 14.3 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 5.011e-05/0.005405, allocations: 59.78 kB / 0.9852 GB, free: 14.24 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.000282/0.005687, allocations: 374.7 kB / 0.9855 GB, free: 13.87 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.673e-06/0.005689, allocations: 0 / 0.9855 GB, free: 13.87 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.282e-06/0.00569, allocations: 0 / 0.9855 GB, free: 13.87 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.188e-06/0.005695, allocations: 0 / 0.9855 GB, free: 13.87 MB / 0.948 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.00056/0.006254, allocations: 0.5469 MB / 0.9861 GB, free: 13.29 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.006296, allocations: 16.02 kB / 0.9861 GB, free: 13.28 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.073e-05/0.006327, allocations: 38.75 kB / 0.9861 GB, free: 13.23 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001214/0.006449, allocations: 44.69 kB / 0.9862 GB, free: 13.19 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003975/0.006846, allocations: 375.8 kB / 0.9865 GB, free: 12.8 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.817e-06/0.006855, allocations: 384 / 0.9865 GB, free: 12.8 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.13e-05/0.006866, allocations: 8.375 kB / 0.9865 GB, free: 12.79 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001147/0.006981, allocations: 81.97 kB / 0.9866 GB, free: 12.7 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.006988, allocations: 0 / 0.9866 GB, free: 12.7 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.165e-06/0.006996, allocations: 0 / 0.9866 GB, free: 12.7 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.007001, allocations: 3.984 kB / 0.9866 GB, free: 12.7 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.323e-05/0.007074, allocations: 47.97 kB / 0.9867 GB, free: 12.65 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004092/0.007483, allocations: 427.6 kB / 0.9871 GB, free: 12.19 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 8.638e-05/0.00757, allocations: 46.5 kB / 0.9871 GB, free: 12.14 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.049e-05/0.0076, allocations: 24.91 kB / 0.9871 GB, free: 12.11 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.991e-05/0.00762, allocations: 4 kB / 0.9871 GB, free: 12.11 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.589e-05/0.007636, allocations: 30.56 kB / 0.9872 GB, free: 12.07 MB / 0.948 GB Notification: Performance of pre-optimization done (n=3): time 6.21e-07/0.007637, allocations: 3.938 kB / 0.9872 GB, free: 12.06 MB / 0.948 GB Notification: Performance of matching and sorting (n=3): time 0.0001865/0.007823, allocations: 109.5 kB / 0.9873 GB, free: 11.95 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.457e-05/0.007848, allocations: 51.41 kB / 0.9873 GB, free: 11.89 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004298/0.008278, allocations: 0.5718 MB / 0.9879 GB, free: 11.3 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 9.157e-06/0.008287, allocations: 29.75 kB / 0.9879 GB, free: 11.27 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 9.406e-05/0.008381, allocations: 191.9 kB / 0.9881 GB, free: 11.07 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.404e-05/0.008395, allocations: 3.953 kB / 0.9881 GB, free: 11.07 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.611e-05/0.008421, allocations: 17.7 kB / 0.9881 GB, free: 11.05 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.204e-05/0.008513, allocations: 346.8 kB / 0.9884 GB, free: 10.7 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.718e-05/0.00854, allocations: 11.98 kB / 0.9885 GB, free: 10.69 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.154e-05/0.008562, allocations: 15.98 kB / 0.9885 GB, free: 10.67 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.124e-05/0.008613, allocations: 36.84 kB / 0.9885 GB, free: 10.63 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.008614, allocations: 0 / 0.9885 GB, free: 10.63 MB / 0.948 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.346e-05/0.008708, allocations: 93.44 kB / 0.9886 GB, free: 10.54 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.008719, allocations: 4 kB / 0.9886 GB, free: 10.53 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.008723, allocations: 0 / 0.9886 GB, free: 10.53 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.008735, allocations: 4 kB / 0.9886 GB, free: 10.53 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.837e-05/0.008783, allocations: 7.938 kB / 0.9886 GB, free: 10.52 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.748e-06/0.008788, allocations: 3.938 kB / 0.9886 GB, free: 10.52 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.333e-05/0.008821, allocations: 7.984 kB / 0.9886 GB, free: 10.51 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.539e-06/0.008826, allocations: 4 kB / 0.9886 GB, free: 10.5 MB / 0.948 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.0001068/0.008932, allocations: 181.8 kB / 0.9888 GB, free: 10.32 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.725e-05/0.00897, allocations: 27.81 kB / 0.9888 GB, free: 10.29 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001321/0.009102, allocations: 100.4 kB / 0.9889 GB, free: 10.18 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.009105, allocations: 4 kB / 0.9889 GB, free: 10.18 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.009108, allocations: 0 / 0.9889 GB, free: 10.18 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.009112, allocations: 4.312 kB / 0.9889 GB, free: 10.18 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001795/0.009292, allocations: 244.5 kB / 0.9892 GB, free: 9.895 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.009292, allocations: 0 / 0.9892 GB, free: 9.895 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.032e-05/0.009313, allocations: 8 kB / 0.9892 GB, free: 9.887 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.009314, allocations: 4 kB / 0.9892 GB, free: 9.883 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-06/0.009321, allocations: 7.922 kB / 0.9892 GB, free: 9.875 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.009322, allocations: 0 / 0.9892 GB, free: 9.875 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.009323, allocations: 0 / 0.9892 GB, free: 9.875 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001128/0.009436, allocations: 191.3 kB / 0.9894 GB, free: 9.672 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.072e-05/0.009477, allocations: 35.8 kB / 0.9894 GB, free: 9.637 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.695e-05/0.009494, allocations: 4 kB / 0.9894 GB, free: 9.633 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.523e-05/0.009539, allocations: 3.984 kB / 0.9894 GB, free: 9.629 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.316e-05/0.009562, allocations: 3.938 kB / 0.9894 GB, free: 9.625 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-06/0.009566, allocations: 12 kB / 0.9894 GB, free: 9.613 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0002939/0.00986, allocations: 431.1 kB / 0.9898 GB, free: 9.195 MB / 0.948 GB Notification: Performance of sort global known variables: time 9e-08/0.00986, allocations: 3.938 kB / 0.9898 GB, free: 9.191 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001762/0.01004, allocations: 31.89 kB / 0.9899 GB, free: 9.16 MB / 0.948 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.0007904/0.01083, allocations: 0.9941 MB / 0.9908 GB, free: 8.293 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 9.015e-05/0.01092, allocations: 35.97 kB / 0.9909 GB, free: 8.258 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.01092, allocations: 0 / 0.9909 GB, free: 8.258 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 2.555e-05/0.01094, allocations: 15.92 kB / 0.9909 GB, free: 8.242 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002558/0.0112, allocations: 49.36 kB / 0.9909 GB, free: 8.195 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002179/0.01338, allocations: 2.98 MB / 0.9938 GB, free: 5.137 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001147/0.01349, allocations: 178.1 kB / 0.994 GB, free: 4.941 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 7.239e-05/0.01357, allocations: 51.42 kB / 0.9941 GB, free: 4.891 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.816e-05/0.01366, allocations: 100.5 kB / 0.9942 GB, free: 4.793 MB / 0.948 GB Notification: Performance of SimCode: time 5.11e-07/0.01366, allocations: 0 / 0.9942 GB, free: 4.793 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0174/0.03106, allocations: 6.488 MB / 1 GB, free: 14.41 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.152/7.183, allocations: 8.438 kB / 1.001 GB, free: 14.4 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.100885390304029]