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: translateModel(Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samSta.1.|samSta.2.|samSta.3.|samSta.4.|samSta.5.|samSta.6.|samSta.7.|samSta.8.|samSta.9.|samSta.10.|samSta.11.|samSta.12.|samSta.13.|samSta.14.|samSta.15.|samSta.16.|samSta.17.|samSta.18.|samSta.19.|samSta.20.|samSta.21.",fileNamePrefix="Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart") translateModel(Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samSta.1.|samSta.2.|samSta.3.|samSta.4.|samSta.5.|samSta.6.|samSta.7.|samSta.8.|samSta.9.|samSta.10.|samSta.11.|samSta.12.|samSta.13.|samSta.14.|samSta.15.|samSta.16.|samSta.17.|samSta.18.|samSta.19.|samSta.20.|samSta.21.",fileNamePrefix="Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 103.8 kB / 16.27 MB, free: 6.398 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.001472/0.001472, allocations: 191.3 kB / 17.2 MB, free: 5.969 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.321/1.321, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.637/2.637, allocations: 469.4 MB / 0.7427 GB, free: 3.645 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00168/0.00168, allocations: 62.78 kB / 0.9088 GB, free: 14.12 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5131/0.5148, allocations: 159.1 MB / 1.064 GB, free: 15 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart): time 0.004207/0.519, allocations: 1.211 MB / 1.065 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0003796/0.5195, allocations: 51.81 kB / 1.065 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.257e-05/0.5195, allocations: 0 / 1.065 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 4.314e-05/0.5196, allocations: 0 / 1.065 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001728/0.5198, allocations: 11.92 kB / 1.065 GB, free: 13.71 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002449/0.52, allocations: 16 kB / 1.065 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001071/0.5202, allocations: 23.91 kB / 1.066 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 7.755e-05/0.5202, allocations: 0 / 1.066 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 4.912e-05/0.5203, allocations: 8 kB / 1.066 GB, free: 13.67 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001152/0.5204, allocations: 8.688 kB / 1.066 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.933e-05/0.5205, allocations: 0 / 1.066 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000127/0.5206, allocations: 7.984 kB / 1.066 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001384/0.5207, allocations: 48.44 kB / 1.066 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 7.993e-05/0.5208, allocations: 47.67 kB / 1.066 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001756/0.521, allocations: 67.94 kB / 1.066 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.289e-06/0.521, allocations: 0 / 1.066 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.433e-06/0.521, allocations: 0 / 1.066 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.402e-06/0.5211, allocations: 0 / 1.066 GB, free: 13.49 MB / 0.8419 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.0006769/0.5217, allocations: 430.8 kB / 1.066 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.37e-05/0.5218, allocations: 12.62 kB / 1.066 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001147/0.5219, allocations: 91.97 kB / 1.066 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002789/0.5222, allocations: 271.4 kB / 1.066 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.767e-05/0.5223, allocations: 154.7 kB / 1.067 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.772e-05/0.5224, allocations: 150.6 kB / 1.067 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.016e-05/0.5225, allocations: 101 kB / 1.067 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.471e-05/0.5225, allocations: 79.28 kB / 1.067 GB, free: 12.13 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.934e-05/0.5226, allocations: 150.6 kB / 1.067 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.738e-05/0.5227, allocations: 158.6 kB / 1.067 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.442e-05/0.5228, allocations: 154.5 kB / 1.067 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004798/0.5233, allocations: 0.49 MB / 1.068 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001238/0.5234, allocations: 169.1 kB / 1.068 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.71e-05/0.5235, allocations: 84.14 kB / 1.068 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.409e-05/0.5235, allocations: 79.27 kB / 1.068 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.78e-05/0.5236, allocations: 105.8 kB / 1.068 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=0): time 1.082e-06/0.5236, allocations: 0 / 1.068 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of matching and sorting (n=0): time 0.0001269/0.5237, allocations: 41.45 kB / 1.068 GB, free: 10.63 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.673e-05/0.5238, allocations: 130.7 kB / 1.068 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003326/0.5241, allocations: 231 kB / 1.069 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.466e-05/0.5242, allocations: 25.7 kB / 1.069 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.661e-05/0.5243, allocations: 108 kB / 1.069 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.276e-06/0.5243, allocations: 3.938 kB / 1.069 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.5244, allocations: 41.69 kB / 1.069 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0002219/0.5246, allocations: 326.8 kB / 1.069 GB, free: 9.738 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001253/0.5248, allocations: 59.91 kB / 1.069 GB, free: 9.68 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001148/0.5249, allocations: 55.95 kB / 1.069 GB, free: 9.625 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002861/0.5252, allocations: 134.1 kB / 1.069 GB, free: 9.492 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.5252, allocations: 7.938 kB / 1.069 GB, free: 9.484 MB / 0.8419 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004977/0.5257, allocations: 175.7 kB / 1.07 GB, free: 9.309 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.5257, allocations: 7.984 kB / 1.07 GB, free: 9.301 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.5257, allocations: 0 / 1.07 GB, free: 9.301 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.5258, allocations: 0 / 1.07 GB, free: 9.301 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.394e-06/0.5258, allocations: 0 / 1.07 GB, free: 9.301 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.851e-05/0.5258, allocations: 3.984 kB / 1.07 GB, free: 9.297 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.075e-05/0.5259, allocations: 19.69 kB / 1.07 GB, free: 9.277 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.086e-05/0.5259, allocations: 7.938 kB / 1.07 GB, free: 9.27 MB / 0.8419 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.0002312/0.5262, allocations: 209.1 kB / 1.07 GB, free: 9.055 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001223/0.5263, allocations: 120.7 kB / 1.07 GB, free: 8.93 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001142/0.5264, allocations: 117.5 kB / 1.07 GB, free: 8.809 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001259/0.5266, allocations: 180.2 kB / 1.07 GB, free: 8.625 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001085/0.5267, allocations: 180.2 kB / 1.07 GB, free: 8.441 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001284/0.5268, allocations: 180.3 kB / 1.071 GB, free: 8.258 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004144/0.5272, allocations: 441.1 kB / 1.071 GB, free: 7.77 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.479e-05/0.5273, allocations: 105 kB / 1.071 GB, free: 7.66 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.611e-05/0.5274, allocations: 105 kB / 1.071 GB, free: 7.551 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001233/0.5275, allocations: 188.2 kB / 1.071 GB, free: 7.359 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001392/0.5277, allocations: 176.3 kB / 1.071 GB, free: 7.18 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001373/0.5278, allocations: 184.2 kB / 1.072 GB, free: 6.992 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001245/0.528, allocations: 180.2 kB / 1.072 GB, free: 6.809 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003157/0.5283, allocations: 315.9 kB / 1.072 GB, free: 6.477 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001666/0.5285, allocations: 189.9 kB / 1.072 GB, free: 6.266 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001536/0.5286, allocations: 192.2 kB / 1.072 GB, free: 6.07 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001588/0.5288, allocations: 105 kB / 1.073 GB, free: 5.961 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/0.5289, allocations: 176.3 kB / 1.073 GB, free: 5.781 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.596e-05/0.529, allocations: 104.9 kB / 1.073 GB, free: 5.672 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002223/0.5292, allocations: 163.2 kB / 1.073 GB, free: 5.512 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.253e-06/0.5292, allocations: 0 / 1.073 GB, free: 5.512 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005574/0.5298, allocations: 20 kB / 1.073 GB, free: 5.492 MB / 0.8419 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.0003565/0.5302, allocations: 175.1 kB / 1.073 GB, free: 5.309 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000288/0.5305, allocations: 79.89 kB / 1.073 GB, free: 5.23 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.5305, allocations: 0 / 1.073 GB, free: 5.23 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 5.37e-06/0.5305, allocations: 0 / 1.073 GB, free: 5.23 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007911/0.5313, allocations: 467.6 kB / 1.074 GB, free: 4.77 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007992/0.5321, allocations: 332 kB / 1.074 GB, free: 4.414 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006794/0.5328, allocations: 0.708 MB / 1.075 GB, free: 3.68 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.099e-05/0.5329, allocations: 15.42 kB / 1.075 GB, free: 3.664 MB / 0.8419 GB Notification: Performance of SimCode: time 3.41e-07/0.5329, allocations: 0 / 1.075 GB, free: 3.664 MB / 0.8419 GB Notification: Performance of Templates: time 0.005183/0.5381, allocations: 1.122 MB / 1.076 GB, free: 2.543 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart.makefile (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 & ./Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart_res.mat","/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