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.000787/0.000787, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0008144/0.0008144, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.9016/0.9016, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.651/1.651, allocations: 377.8 MB / 0.6221 GB, free: 8.676 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.693e-06/1.693e-06, allocations: 0 / 0.9809 GB, free: 2.617 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.117e-05/2.286e-05, allocations: 6.219 kB / 0.9809 GB, free: 2.609 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003389/0.003412, allocations: 1.789 MB / 0.9827 GB, free: 0.8125 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001723/0.005134, allocations: 1.091 MB / 0.9838 GB, free: 15.71 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001198/0.005254, allocations: 4 kB / 0.9838 GB, free: 15.71 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.0005733/0.005827, allocations: 191 kB / 0.9839 GB, free: 15.53 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 0.0005542/0.006382, allocations: 226.6 kB / 0.9842 GB, free: 15.31 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004803/0.006862, allocations: 225.3 kB / 0.9844 GB, free: 15.09 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0002972/0.007159, allocations: 267.3 kB / 0.9846 GB, free: 14.83 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001197/0.007279, allocations: 36.56 kB / 0.9847 GB, free: 14.8 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001937/0.007473, allocations: 139.7 kB / 0.9848 GB, free: 14.66 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001514/0.007624, allocations: 147.7 kB / 0.9849 GB, free: 14.52 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.695e-05/0.007651, allocations: 24 kB / 0.985 GB, free: 14.49 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 8.294e-05/0.007734, allocations: 59.91 kB / 0.985 GB, free: 14.43 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 7.355e-05/0.007807, allocations: 95.69 kB / 0.9851 GB, free: 14.34 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 4.993e-05/0.007857, allocations: 59.72 kB / 0.9852 GB, free: 14.28 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002992/0.008157, allocations: 366.8 kB / 0.9855 GB, free: 13.92 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.00816, allocations: 0 / 0.9855 GB, free: 13.92 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.262e-06/0.008161, allocations: 0 / 0.9855 GB, free: 13.92 MB / 0.948 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.008166, allocations: 0 / 0.9855 GB, free: 13.92 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.0005711/0.008737, allocations: 0.5586 MB / 0.9861 GB, free: 13.33 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.008774, allocations: 8.031 kB / 0.9861 GB, free: 13.32 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.424e-05/0.008808, allocations: 42.75 kB / 0.9861 GB, free: 13.27 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001341/0.008942, allocations: 48.62 kB / 0.9862 GB, free: 13.23 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004374/0.009379, allocations: 364 kB / 0.9865 GB, free: 12.85 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.087e-06/0.009389, allocations: 4.375 kB / 0.9865 GB, free: 12.84 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.054e-05/0.009399, allocations: 8.375 kB / 0.9865 GB, free: 12.84 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001178/0.009517, allocations: 77.91 kB / 0.9866 GB, free: 12.75 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.213e-06/0.009524, allocations: 3.984 kB / 0.9866 GB, free: 12.75 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.009535, allocations: 8 kB / 0.9866 GB, free: 12.74 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-06/0.009539, allocations: 0 / 0.9866 GB, free: 12.74 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.475e-05/0.009614, allocations: 51.91 kB / 0.9867 GB, free: 12.69 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004023/0.01002, allocations: 423.7 kB / 0.9871 GB, free: 12.23 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 8.888e-05/0.0101, allocations: 50.5 kB / 0.9871 GB, free: 12.18 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.828e-05/0.01013, allocations: 16.91 kB / 0.9871 GB, free: 12.16 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.079e-05/0.01015, allocations: 0 / 0.9871 GB, free: 12.16 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.961e-05/0.01017, allocations: 38.56 kB / 0.9872 GB, free: 12.11 MB / 0.948 GB Notification: Performance of pre-optimization done (n=3): time 7.72e-07/0.01017, allocations: 3.938 kB / 0.9872 GB, free: 12.11 MB / 0.948 GB Notification: Performance of matching and sorting (n=3): time 0.0001851/0.01036, allocations: 93.48 kB / 0.9873 GB, free: 12.01 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.884e-05/0.01039, allocations: 63.34 kB / 0.9873 GB, free: 11.93 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004257/0.01081, allocations: 0.5796 MB / 0.9879 GB, free: 11.34 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 9.608e-06/0.01082, allocations: 25.7 kB / 0.9879 GB, free: 11.31 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 9.504e-05/0.01092, allocations: 183.9 kB / 0.9881 GB, free: 11.12 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.563e-05/0.01093, allocations: 7.953 kB / 0.9881 GB, free: 11.12 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.52e-05/0.01096, allocations: 13.72 kB / 0.9881 GB, free: 11.1 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.083e-05/0.01105, allocations: 350.8 kB / 0.9884 GB, free: 10.75 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.649e-05/0.01108, allocations: 4 kB / 0.9884 GB, free: 10.74 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.083e-05/0.0111, allocations: 15.98 kB / 0.9885 GB, free: 10.73 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.312e-05/0.01115, allocations: 36.84 kB / 0.9885 GB, free: 10.69 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.01115, allocations: 0 / 0.9885 GB, free: 10.69 MB / 0.948 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.908e-05/0.01125, allocations: 101.4 kB / 0.9886 GB, free: 10.58 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.132e-05/0.01126, allocations: 4.109 kB / 0.9886 GB, free: 10.58 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.01127, allocations: 3.938 kB / 0.9886 GB, free: 10.57 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.028e-05/0.01128, allocations: 0 / 0.9886 GB, free: 10.57 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.074e-05/0.01133, allocations: 11.98 kB / 0.9886 GB, free: 10.56 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.01133, allocations: 3.938 kB / 0.9886 GB, free: 10.56 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.156e-05/0.01136, allocations: 0 / 0.9886 GB, free: 10.56 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.01137, allocations: 4 kB / 0.9886 GB, free: 10.55 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.0001021/0.01147, allocations: 185.8 kB / 0.9888 GB, free: 10.36 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.045e-05/0.0115, allocations: 31.81 kB / 0.9888 GB, free: 10.33 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001348/0.01164, allocations: 96.75 kB / 0.9889 GB, free: 10.23 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.01164, allocations: 0 / 0.9889 GB, free: 10.23 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.788e-06/0.01164, allocations: 48 / 0.9889 GB, free: 10.23 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.01165, allocations: 7.922 kB / 0.9889 GB, free: 10.22 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000182/0.01183, allocations: 248.5 kB / 0.9892 GB, free: 9.938 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.01183, allocations: 4 kB / 0.9892 GB, free: 9.934 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.59e-05/0.01186, allocations: 11.92 kB / 0.9892 GB, free: 9.922 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.01186, allocations: 4 kB / 0.9892 GB, free: 9.918 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.53e-06/0.01187, allocations: 0 / 0.9892 GB, free: 9.918 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.01187, allocations: 4 kB / 0.9892 GB, free: 9.914 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.01187, allocations: 0 / 0.9892 GB, free: 9.914 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001162/0.01198, allocations: 183.3 kB / 0.9894 GB, free: 9.719 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.319e-05/0.01203, allocations: 43.8 kB / 0.9894 GB, free: 9.676 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.676e-05/0.01204, allocations: 0 / 0.9894 GB, free: 9.676 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.587e-05/0.01209, allocations: 4 kB / 0.9894 GB, free: 9.672 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.476e-05/0.01212, allocations: 3.938 kB / 0.9894 GB, free: 9.668 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.01212, allocations: 3.984 kB / 0.9894 GB, free: 9.664 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0003043/0.01242, allocations: 439.1 kB / 0.9898 GB, free: 9.238 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.01242, allocations: 0 / 0.9898 GB, free: 9.238 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001851/0.01261, allocations: 31.88 kB / 0.9899 GB, free: 9.207 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.00088/0.01349, allocations: 1.007 MB / 0.9908 GB, free: 8.328 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 9.772e-05/0.01359, allocations: 23.98 kB / 0.9909 GB, free: 8.305 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.01359, allocations: 0 / 0.9909 GB, free: 8.305 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 2.805e-05/0.01362, allocations: 23.92 kB / 0.9909 GB, free: 8.281 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002712/0.01389, allocations: 44.94 kB / 0.9909 GB, free: 8.242 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002493/0.01638, allocations: 2.967 MB / 0.9938 GB, free: 5.191 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001194/0.0165, allocations: 186.1 kB / 0.994 GB, free: 4.988 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 8.683e-05/0.01659, allocations: 51.25 kB / 0.9941 GB, free: 4.938 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001063/0.01669, allocations: 108.4 kB / 0.9942 GB, free: 4.832 MB / 0.948 GB Notification: Performance of SimCode: time 9.62e-07/0.01669, allocations: 0 / 0.9942 GB, free: 4.832 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02037/0.03706, allocations: 6.493 MB / 1 GB, free: 14.45 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.051/7.089, allocations: 2.625 kB / 1 GB, free: 14.45 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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv --start-time 0 --stop-time 86400 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 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.csv","/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] "Error: Could not read variable linPieTwo.u in file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv. Warning: Get data of variable linPieTwo.u from file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.097802496515214]