Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTIn",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTIn",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.005565/0.005565, allocations: 97.05 kB / 15.73 MB, free: 5.547 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.001145/0.001145, allocations: 190 kB / 16.67 MB, free: 5.48 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.307/1.307, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.419/2.419, allocations: 437 MB / 0.7105 GB, free: 4.43 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 64.08 kB / 1.018 GB, free: 9.992 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7455/0.7468, allocations: 151.6 MB / 1.166 GB, free: 3.867 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn): time 0.002639/0.7495, allocations: 1.49 MB / 1.168 GB, free: 2.367 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001235/0.7507, allocations: 0.7167 MB / 1.168 GB, free: 1.645 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.167e-05/0.7508, allocations: 0 / 1.168 GB, free: 1.645 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.068e-05/0.7508, allocations: 15.86 kB / 1.168 GB, free: 1.629 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.604e-05/0.7509, allocations: 11.88 kB / 1.168 GB, free: 1.617 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005466/0.7515, allocations: 119.6 kB / 1.168 GB, free: 1.5 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001132/0.7516, allocations: 67.78 kB / 1.168 GB, free: 1.434 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 8.531e-05/0.7517, allocations: 12 kB / 1.168 GB, free: 1.422 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 8.655e-05/0.7518, allocations: 39.83 kB / 1.169 GB, free: 1.383 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.238e-05/0.7519, allocations: 39.84 kB / 1.169 GB, free: 1.344 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.822e-05/0.7519, allocations: 4 kB / 1.169 GB, free: 1.34 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001947/0.7521, allocations: 91.91 kB / 1.169 GB, free: 1.25 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.559e-05/0.7521, allocations: 11.98 kB / 1.169 GB, free: 1.238 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.572e-05/0.7522, allocations: 35.75 kB / 1.169 GB, free: 1.203 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002327/0.7524, allocations: 135.3 kB / 1.169 GB, free: 1.074 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.7524, allocations: 0 / 1.169 GB, free: 1.074 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.403e-06/0.7524, allocations: 0 / 1.169 GB, free: 1.074 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.027e-05/0.7524, allocations: 0 / 1.169 GB, free: 1.074 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006085/0.7531, allocations: 450.4 kB / 1.169 GB, free: 0.5742 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.7531, allocations: 8.922 kB / 1.169 GB, free: 0.5664 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.451e-05/0.7532, allocations: 42.73 kB / 1.169 GB, free: 0.5156 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.605e-05/0.7532, allocations: 4.891 kB / 1.169 GB, free: 0.5117 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001154/0.7533, allocations: 180.2 kB / 1.169 GB, free: 304 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.636e-05/0.7534, allocations: 4.375 kB / 1.17 GB, free: 300 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.719e-05/0.7534, allocations: 12.31 kB / 1.17 GB, free: 288 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001866/0.7536, allocations: 73.77 kB / 1.17 GB, free: 208 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.7536, allocations: 4 kB / 1.17 GB, free: 204 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.7536, allocations: 3.938 kB / 1.17 GB, free: 200 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.7536, allocations: 0 / 1.17 GB, free: 200 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000132/0.7537, allocations: 35.97 kB / 1.17 GB, free: 164 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004612/0.7542, allocations: 296.9 kB / 1.17 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001263/0.7544, allocations: 54.5 kB / 1.17 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.574e-05/0.7545, allocations: 32.95 kB / 1.17 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.091e-05/0.7545, allocations: 7.938 kB / 1.17 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001982/0.7547, allocations: 79.34 kB / 1.17 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.7547, allocations: 0 / 1.17 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0003923/0.7551, allocations: 141.5 kB / 1.17 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.041e-05/0.7551, allocations: 55.41 kB / 1.17 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.561e-05/0.7552, allocations: 121.8 kB / 1.17 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.554e-05/0.7553, allocations: 29.7 kB / 1.17 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.889e-05/0.7553, allocations: 92.09 kB / 1.17 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.971e-05/0.7553, allocations: 15.89 kB / 1.171 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.037e-05/0.7554, allocations: 21.72 kB / 1.171 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 9.327e-05/0.7555, allocations: 326.8 kB / 1.171 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.059e-05/0.7556, allocations: 23.98 kB / 1.171 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.024e-05/0.7557, allocations: 57.58 kB / 1.171 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001564/0.7558, allocations: 97 kB / 1.171 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.7558, allocations: 0 / 1.171 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002198/0.7561, allocations: 113.5 kB / 1.171 GB, free: 14.46 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.7561, allocations: 8 kB / 1.171 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.7561, allocations: 4.156 kB / 1.171 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.7561, allocations: 0 / 1.171 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.215e-05/0.7562, allocations: 15.98 kB / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.441e-06/0.7562, allocations: 0 / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.358e-05/0.7563, allocations: 11.94 kB / 1.171 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.748e-06/0.7563, allocations: 4 kB / 1.171 GB, free: 14.41 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (bli.curSeed,$PRE.bli.curSeed,bli.blindState,$PRE.bli.blindState,bli.pDown,$PRE.bli.pDown,occ.y,bli.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 8.786e-05/0.7564, allocations: 132.2 kB / 1.171 GB, free: 14.28 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.683e-05/0.7564, allocations: 7.953 kB / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.703e-05/0.7564, allocations: 12.38 kB / 1.171 GB, free: 14.26 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.7565, allocations: 3.938 kB / 1.171 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.7565, allocations: 0 / 1.171 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.7565, allocations: 0 / 1.171 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004261/0.7569, allocations: 378.4 kB / 1.172 GB, free: 13.83 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.7569, allocations: 0 / 1.172 GB, free: 13.83 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.485e-05/0.757, allocations: 11.92 kB / 1.172 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.757, allocations: 0 / 1.172 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/0.757, allocations: 4 kB / 1.172 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.757, allocations: 7.938 kB / 1.172 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.757, allocations: 0 / 1.172 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002714/0.7573, allocations: 215.5 kB / 1.172 GB, free: 13.58 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.695e-05/0.7573, allocations: 89 kB / 1.172 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.577e-05/0.7574, allocations: 0 / 1.172 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.237e-05/0.7575, allocations: 11.92 kB / 1.172 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.976e-05/0.7575, allocations: 0 / 1.172 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.28e-05/0.7575, allocations: 16 kB / 1.172 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.677e-05/0.7576, allocations: 95.42 kB / 1.172 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7576, allocations: 0 / 1.172 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003051/0.7579, allocations: 39.92 kB / 1.172 GB, free: 13.31 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (bli.sampleTrigger,$whenCondition1,occ.y,bli.blindState,bli.pDown,bli.curSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0007016/0.7586, allocations: 0.7991 MB / 1.173 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002198/0.7588, allocations: 67.89 kB / 1.173 GB, free: 12.44 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.7588, allocations: 0 / 1.173 GB, free: 12.44 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 9.754e-05/0.7589, allocations: 40.17 kB / 1.173 GB, free: 12.4 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002792/0.7592, allocations: 23.86 kB / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001443/0.7607, allocations: 1.51 MB / 1.175 GB, free: 10.75 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002141/0.7609, allocations: 0.6846 MB / 1.175 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.041e-05/0.7609, allocations: 7.984 kB / 1.175 GB, free: 10.03 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.433e-05/0.761, allocations: 19.44 kB / 1.175 GB, free: 10.01 MB / 0.9044 GB Notification: Performance of SimCode: time 2.81e-07/0.761, allocations: 3.938 kB / 1.175 GB, free: 10.01 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01689/0.7779, allocations: 2.637 MB / 1.178 GB, free: 7.496 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.833/8.611, allocations: 9.453 kB / 1.178 GB, free: 7.488 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_10_Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTIn.fmu > Buildings_10_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTIn.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[551]=3600.000000 File[1236]=2249.280000 Error: Could not read variable bli.TIn in file Buildings_10_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn_res.csv. Warning: Get data of variable bli.TIn from file Buildings_10_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn_res.csv failed! Error: Could not read variable bli.occ in file Buildings_10_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn_res.csv. Warning: Get data of variable bli.occ from file Buildings_10_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn_res.csv failed! " Variables in the reference:time,bli.TIn,bli.occ,bli.pDown,bli.blindState Variables in the result:time,TIn.y,bli.blindState,bli.pDown,TIn.amplitude,TIn.f