Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart,fileNamePrefix="Buildings_latest_Buildings_Controls_Predictors_BaseClasses_Examples_SampleStart",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart,fileNamePrefix="Buildings_latest_Buildings_Controls_Predictors_BaseClasses_Examples_SampleStart",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001611/0.001611, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001891/0.001891, allocations: 192.9 kB / 16.53 MB, free: 6.664 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.4/1.4, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.909/2.909, allocations: 469.4 MB / 0.742 GB, free: 7.691 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 63.78 kB / 0.9083 GB, free: 34.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4662/0.4676, allocations: 159.1 MB / 1.064 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart): time 0.00349/0.4712, allocations: 1.213 MB / 1.065 GB, free: 13.26 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0003158/0.4715, allocations: 51.83 kB / 1.065 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.872e-05/0.4716, allocations: 0 / 1.065 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.433e-05/0.4716, allocations: 3.984 kB / 1.065 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001344/0.4718, allocations: 11.94 kB / 1.065 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002111/0.472, allocations: 11.98 kB / 1.065 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.768e-05/0.4721, allocations: 15.92 kB / 1.065 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 7.027e-05/0.4722, allocations: 4 kB / 1.065 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.054e-05/0.4723, allocations: 4 kB / 1.065 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.993e-05/0.4724, allocations: 16.66 kB / 1.065 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.815e-05/0.4724, allocations: 0 / 1.065 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001006/0.4725, allocations: 12 kB / 1.065 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001094/0.4726, allocations: 48.44 kB / 1.065 GB, free: 13.08 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.096e-05/0.4727, allocations: 43.62 kB / 1.065 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001574/0.4728, allocations: 75.94 kB / 1.065 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.4729, allocations: 0 / 1.065 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.684e-06/0.4729, allocations: 0 / 1.065 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.222e-05/0.4729, allocations: 0 / 1.065 GB, free: 12.96 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0006/0.4735, allocations: 422.8 kB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.598e-05/0.4736, allocations: 8.031 kB / 1.066 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.61e-05/0.4736, allocations: 113.9 kB / 1.066 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.4737, allocations: 88.03 kB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002149/0.474, allocations: 275.4 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.997e-05/0.474, allocations: 154.5 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.651e-05/0.4741, allocations: 150.6 kB / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.028e-05/0.4742, allocations: 101 kB / 1.066 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.006e-05/0.4743, allocations: 75.28 kB / 1.066 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.444e-05/0.4743, allocations: 154.6 kB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-05/0.4744, allocations: 150.6 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.985e-05/0.4745, allocations: 162.5 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003955/0.4749, allocations: 0.4899 MB / 1.067 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001004/0.475, allocations: 177.1 kB / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.02e-05/0.475, allocations: 80.14 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.011e-05/0.4751, allocations: 75.28 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.42e-05/0.4751, allocations: 105.8 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=0): time 9.52e-07/0.4751, allocations: 3.938 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of matching and sorting (n=0): time 0.0001192/0.4753, allocations: 37.52 kB / 1.068 GB, free: 9.996 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.775e-05/0.4753, allocations: 130.7 kB / 1.068 GB, free: 9.855 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002715/0.4756, allocations: 231 kB / 1.068 GB, free: 9.621 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.685e-05/0.4756, allocations: 25.7 kB / 1.068 GB, free: 9.59 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.855e-05/0.4757, allocations: 108 kB / 1.068 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.246e-06/0.4757, allocations: 0 / 1.068 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.516e-05/0.4758, allocations: 45.69 kB / 1.068 GB, free: 9.43 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001271/0.476, allocations: 326.8 kB / 1.069 GB, free: 9.102 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.62e-05/0.4761, allocations: 59.95 kB / 1.069 GB, free: 9.043 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.444e-05/0.4761, allocations: 60.91 kB / 1.069 GB, free: 8.984 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001818/0.4763, allocations: 139.3 kB / 1.069 GB, free: 8.848 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.4763, allocations: 0 / 1.069 GB, free: 8.848 MB / 0.8262 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004021/0.4768, allocations: 173.5 kB / 1.069 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.327e-05/0.4768, allocations: 10.03 kB / 1.069 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.4768, allocations: 0 / 1.069 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.4768, allocations: 0 / 1.069 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.573e-06/0.4768, allocations: 0 / 1.069 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.4768, allocations: 0 / 1.069 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.759e-05/0.4769, allocations: 19.69 kB / 1.069 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.015e-05/0.4769, allocations: 11.92 kB / 1.069 GB, free: 8.633 MB / 0.8262 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 (1): * Single equations (assignments): 0 * Array equations: 1 * 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.0001442/0.4771, allocations: 209 kB / 1.069 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.4772, allocations: 118.5 kB / 1.069 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.636e-05/0.4773, allocations: 113.5 kB / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.533e-05/0.4774, allocations: 180.3 kB / 1.07 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-05/0.4775, allocations: 184.2 kB / 1.07 GB, free: 7.809 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.265e-05/0.4776, allocations: 180.3 kB / 1.07 GB, free: 7.625 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003239/0.4779, allocations: 445.1 kB / 1.07 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.257e-05/0.478, allocations: 101 kB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.489e-05/0.478, allocations: 105 kB / 1.071 GB, free: 6.918 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.523e-05/0.4781, allocations: 180.2 kB / 1.071 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.071e-05/0.4782, allocations: 188.2 kB / 1.071 GB, free: 6.543 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.633e-05/0.4783, allocations: 184.2 kB / 1.071 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.822e-05/0.4784, allocations: 176.3 kB / 1.071 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002165/0.4786, allocations: 319.8 kB / 1.072 GB, free: 5.84 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001348/0.4788, allocations: 189.9 kB / 1.072 GB, free: 5.629 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001319/0.4789, allocations: 188.2 kB / 1.072 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001133/0.479, allocations: 101 kB / 1.072 GB, free: 5.332 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.05e-05/0.4791, allocations: 184.2 kB / 1.072 GB, free: 5.145 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-05/0.4792, allocations: 105 kB / 1.072 GB, free: 5.035 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001625/0.4793, allocations: 155.2 kB / 1.073 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.4793, allocations: 0 / 1.073 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003415/0.4797, allocations: 16 kB / 1.073 GB, free: 4.867 MB / 0.8262 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 (0): * Single equations (assignments): 0 * 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.000708/0.4804, allocations: 0.8324 MB / 1.073 GB, free: 4.004 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001921/0.4806, allocations: 79.95 kB / 1.073 GB, free: 3.926 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.4806, allocations: 0 / 1.073 GB, free: 3.926 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 3.677e-06/0.4806, allocations: 4.062 kB / 1.073 GB, free: 3.922 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005051/0.4811, allocations: 455.7 kB / 1.074 GB, free: 3.473 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002758/0.4839, allocations: 2.125 MB / 1.076 GB, free: 1.273 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003763/0.4843, allocations: 0.7117 MB / 1.077 GB, free: 0.5352 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.928e-05/0.4843, allocations: 7.984 kB / 1.077 GB, free: 0.5273 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.192e-05/0.4844, allocations: 35.42 kB / 1.077 GB, free: 0.4961 MB / 0.8262 GB Notification: Performance of SimCode: time 7.02e-07/0.4844, allocations: 3.938 kB / 1.077 GB, free: 0.4922 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02687/0.5113, allocations: 2.743 MB / 1.079 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.171/8.682, allocations: 12.31 kB / 1.079 GB, free: 13.86 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart.pipe ; mkfifo Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart.pipe >> ../files/Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_Predictors_BaseClasses_Examples_SampleStart.fmu > Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Predictors_BaseClasses_Examples_SampleStart.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches