Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Haldi2008BlindsTOut,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTOut",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTOut",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.001559/0.001558, 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.001724/0.001724, allocations: 194.6 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.352/1.352, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.41/2.41, allocations: 390.3 MB / 0.6647 GB, free: 444 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002382/0.002382, allocations: 67.91 kB / 0.8126 GB, free: 14.38 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.604/0.6064, allocations: 140.4 MB / 0.9497 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut): time 0.002548/0.609, allocations: 1.478 MB / 0.9512 GB, free: 7.961 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001057/0.61, allocations: 0.7291 MB / 0.9519 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.258e-05/0.6101, allocations: 5.062 kB / 0.9519 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.647e-05/0.6101, allocations: 19.8 kB / 0.9519 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.839e-05/0.6102, allocations: 9.219 kB / 0.9519 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004602/0.6107, allocations: 120.9 kB / 0.952 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.648e-05/0.6108, allocations: 61.66 kB / 0.9521 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.615e-05/0.6109, allocations: 13.67 kB / 0.9521 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.113e-05/0.6109, allocations: 36.97 kB / 0.9521 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.407e-05/0.611, allocations: 39.03 kB / 0.9522 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.945e-05/0.611, allocations: 5.062 kB / 0.9522 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001679/0.6112, allocations: 97.59 kB / 0.9523 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.204e-05/0.6112, allocations: 14.42 kB / 0.9523 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.962e-05/0.6113, allocations: 32.45 kB / 0.9523 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001881/0.6115, allocations: 128.3 kB / 0.9524 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.6115, allocations: 0 / 0.9524 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.974e-06/0.6115, allocations: 3.984 kB / 0.9524 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.929e-06/0.6115, allocations: 0 / 0.9524 GB, free: 7.02 MB / 0.7169 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.0004981/0.612, allocations: 453.1 kB / 0.9529 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.612, allocations: 9.938 kB / 0.9529 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.084e-05/0.6121, allocations: 31.53 kB / 0.9529 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.371e-05/0.6121, allocations: 5.25 kB / 0.9529 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.252e-05/0.6122, allocations: 180.2 kB / 0.9531 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.574e-05/0.6122, allocations: 5.969 kB / 0.9531 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.678e-05/0.6123, allocations: 4.906 kB / 0.9531 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001858/0.6124, allocations: 71.5 kB / 0.9532 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.375e-06/0.6125, allocations: 4 kB / 0.9532 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.6125, allocations: 5.344 kB / 0.9532 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.6125, allocations: 1.375 kB / 0.9532 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001332/0.6126, allocations: 44.59 kB / 0.9532 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003972/0.613, allocations: 296.1 kB / 0.9535 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001216/0.6132, allocations: 52.56 kB / 0.9535 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.391e-05/0.6133, allocations: 31.88 kB / 0.9536 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.938e-05/0.6133, allocations: 1.406 kB / 0.9536 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001813/0.6135, allocations: 80.97 kB / 0.9537 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.6135, allocations: 0 / 0.9537 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003607/0.6138, allocations: 143.8 kB / 0.9538 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.492e-05/0.6139, allocations: 52.91 kB / 0.9538 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.454e-05/0.614, allocations: 120.8 kB / 0.954 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.146e-05/0.614, allocations: 34.84 kB / 0.954 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.046e-05/0.614, allocations: 87.2 kB / 0.9541 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.635e-05/0.614, allocations: 13.94 kB / 0.9541 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.968e-05/0.6141, allocations: 29.89 kB / 0.9541 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.576e-05/0.6141, allocations: 324.8 kB / 0.9544 GB, free: 5 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.097e-05/0.6142, allocations: 24.42 kB / 0.9544 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.725e-05/0.6143, allocations: 58.14 kB / 0.9545 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001452/0.6144, allocations: 92.38 kB / 0.9546 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.6144, allocations: 1.094 kB / 0.9546 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002043/0.6147, allocations: 112.4 kB / 0.9547 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.6147, allocations: 13.56 kB / 0.9547 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.6147, allocations: 1.062 kB / 0.9547 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.6147, allocations: 2.375 kB / 0.9547 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-05/0.6148, allocations: 17.64 kB / 0.9547 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.6148, allocations: 2.188 kB / 0.9547 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.125e-05/0.6149, allocations: 8.844 kB / 0.9547 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/0.6149, allocations: 7.094 kB / 0.9548 GB, free: 4.758 MB / 0.7169 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 6.167e-05/0.615, allocations: 123.1 kB / 0.9549 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.713e-05/0.615, allocations: 15.58 kB / 0.9549 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.317e-05/0.615, allocations: 9.594 kB / 0.9549 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.615, allocations: 1.25 kB / 0.9549 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.615, allocations: 0 / 0.9549 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.615, allocations: 1.031 kB / 0.9549 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003571/0.6154, allocations: 385.4 kB / 0.9553 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.6154, allocations: 0 / 0.9553 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.132e-05/0.6154, allocations: 8.219 kB / 0.9553 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.6155, allocations: 7.984 kB / 0.9553 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.6155, allocations: 5.156 kB / 0.9553 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.604e-06/0.6155, allocations: 5.094 kB / 0.9553 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.6155, allocations: 0 / 0.9553 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002419/0.6157, allocations: 204 kB / 0.9555 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.182e-05/0.6158, allocations: 87.77 kB / 0.9556 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.056e-05/0.6158, allocations: 1.406 kB / 0.9556 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.217e-05/0.6159, allocations: 14.53 kB / 0.9556 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.203e-05/0.6159, allocations: 10.77 kB / 0.9556 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.027e-06/0.6159, allocations: 1.406 kB / 0.9556 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.752e-05/0.616, allocations: 92.36 kB / 0.9557 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.616, allocations: 1.156 kB / 0.9557 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003151/0.6163, allocations: 39.77 kB / 0.9557 GB, free: 3.836 MB / 0.7169 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.0006421/0.617, allocations: 0.7954 MB / 0.9565 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002238/0.6172, allocations: 68.64 kB / 0.9566 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.6172, allocations: 9.562 kB / 0.9566 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001012/0.6173, allocations: 39.7 kB / 0.9566 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002666/0.6176, allocations: 13.73 kB / 0.9566 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001236/0.6188, allocations: 1.5 MB / 0.9581 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.213e-05/0.6189, allocations: 0.6938 MB / 0.9588 GB, free: 0.9219 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.142e-05/0.619, allocations: 3.219 kB / 0.9588 GB, free: 0.9219 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.6e-05/0.619, allocations: 19.31 kB / 0.9588 GB, free: 0.9062 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.619, allocations: 0 / 0.9588 GB, free: 0.9062 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0182/0.6372, allocations: 2.595 MB / 0.9613 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.463/8.1, allocations: 9.5 kB / 0.9613 GB, free: 15.52 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_9_Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTOut.fmu > Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTOut.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.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.TOut in file Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut_res.csv. Warning: Get data of variable bli.TOut from file Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut_res.csv failed! Error: Could not read variable bli.occ in file Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut_res.csv. Warning: Get data of variable bli.occ from file Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut_res.csv failed! " Variables in the reference:time,bli.TOut,bli.occ,bli.pDown,bli.blindState Variables in the result:time,TOut.y,bli.blindState,bli.pDown,TOut.amplitude,TOut.f