Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Zhang2012BlindsSolarAltitude,fileNamePrefix="Buildings_11_Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarAltitude",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude,fileNamePrefix="Buildings_11_Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarAltitude",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.007904/0.007904, allocations: 97.67 kB / 15.73 MB, free: 5.988 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.002007/0.002007, allocations: 192.2 kB / 16.67 MB, free: 5.918 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.491/1.491, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.857/2.857, allocations: 469.8 MB / 0.7425 GB, free: 7.312 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001954/0.001954, allocations: 71.83 kB / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3643/0.3663, allocations: 159.1 MB / 1.22 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude): time 0.002658/0.369, allocations: 1.511 MB / 1.222 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001346/0.3703, allocations: 0.7517 MB / 1.222 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.861e-05/0.3704, allocations: 0 / 1.222 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.877e-05/0.3704, allocations: 3.938 kB / 1.222 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.617e-05/0.3705, allocations: 11.86 kB / 1.222 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005292/0.3711, allocations: 127.6 kB / 1.222 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001376/0.3712, allocations: 91.75 kB / 1.223 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 8.929e-05/0.3713, allocations: 15.98 kB / 1.223 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.598e-05/0.3714, allocations: 47.8 kB / 1.223 GB, free: 11.74 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.931e-05/0.3715, allocations: 43.81 kB / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.375e-05/0.3715, allocations: 8 kB / 1.223 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001972/0.3717, allocations: 95.91 kB / 1.223 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.694e-05/0.3718, allocations: 23.92 kB / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.468e-05/0.3718, allocations: 31.86 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002641/0.3721, allocations: 167.4 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.3721, allocations: 3.984 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.313e-06/0.3721, allocations: 0 / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.12e-06/0.3721, allocations: 0 / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000667/0.3728, allocations: 462.3 kB / 1.223 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.3729, allocations: 8.031 kB / 1.223 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.016e-05/0.3729, allocations: 34.75 kB / 1.223 GB, free: 10.81 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.303e-05/0.3729, allocations: 16.83 kB / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001497/0.3731, allocations: 172.3 kB / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.211e-05/0.3731, allocations: 12.31 kB / 1.224 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.105e-05/0.3732, allocations: 4.375 kB / 1.224 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002295/0.3734, allocations: 93.75 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.216e-06/0.3734, allocations: 0 / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.3734, allocations: 4 kB / 1.224 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.3735, allocations: 0 / 1.224 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001599/0.3736, allocations: 43.97 kB / 1.224 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005661/0.3742, allocations: 336.6 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001672/0.3744, allocations: 58.56 kB / 1.224 GB, free: 9.984 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001132/0.3745, allocations: 44.83 kB / 1.224 GB, free: 9.938 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.715e-05/0.3745, allocations: 0 / 1.224 GB, free: 9.938 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002421/0.3748, allocations: 103.3 kB / 1.224 GB, free: 9.824 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=9): time 1.413e-06/0.3748, allocations: 4 kB / 1.224 GB, free: 9.82 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9): time 0.0005071/0.3753, allocations: 181.5 kB / 1.225 GB, free: 9.637 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.702e-05/0.3754, allocations: 55.41 kB / 1.225 GB, free: 9.57 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001269/0.3755, allocations: 133.7 kB / 1.225 GB, free: 9.434 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.3755, allocations: 29.7 kB / 1.225 GB, free: 9.398 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.523e-05/0.3756, allocations: 100.3 kB / 1.225 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.885e-05/0.3756, allocations: 23.78 kB / 1.225 GB, free: 9.27 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.616e-05/0.3757, allocations: 33.7 kB / 1.225 GB, free: 9.23 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001386/0.3758, allocations: 322.8 kB / 1.225 GB, free: 8.906 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.496e-05/0.3759, allocations: 31.97 kB / 1.225 GB, free: 8.875 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001205/0.376, allocations: 76.67 kB / 1.225 GB, free: 8.781 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002034/0.3763, allocations: 105.9 kB / 1.225 GB, free: 8.656 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3763, allocations: 4 kB / 1.225 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002756/0.3765, allocations: 137.6 kB / 1.226 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.3766, allocations: 4 kB / 1.226 GB, free: 8.508 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.597e-06/0.3766, allocations: 7.984 kB / 1.226 GB, free: 8.5 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.3766, allocations: 4 kB / 1.226 GB, free: 8.496 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.202e-05/0.3767, allocations: 15.92 kB / 1.226 GB, free: 8.48 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.3767, allocations: 4 kB / 1.226 GB, free: 8.477 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.619e-05/0.3768, allocations: 12.11 kB / 1.226 GB, free: 8.465 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.369e-05/0.3768, allocations: 4 kB / 1.226 GB, free: 8.461 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 (bli.curSeed,$PRE.bli.curSeed,bli.pDown,$PRE.bli.pDown,bli.pUp,$PRE.bli.pUp,bli.isOpen,$PRE.bli.isOpen,bli.blindState,$PRE.bli.blindState,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 (15): * Single equations (assignments): 15 * 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.0001174/0.3769, allocations: 140.6 kB / 1.226 GB, free: 8.316 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.074e-05/0.377, allocations: 7.953 kB / 1.226 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.216e-05/0.377, allocations: 12.38 kB / 1.226 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.377, allocations: 0 / 1.226 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.377, allocations: 0 / 1.226 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.377, allocations: 0 / 1.226 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000589/0.3776, allocations: 438.8 kB / 1.226 GB, free: 7.805 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3776, allocations: 0 / 1.226 GB, free: 7.805 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.163e-05/0.3777, allocations: 7.984 kB / 1.226 GB, free: 7.797 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.3777, allocations: 0 / 1.226 GB, free: 7.797 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.3777, allocations: 4 kB / 1.226 GB, free: 7.793 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.3777, allocations: 7.984 kB / 1.226 GB, free: 7.785 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3777, allocations: 3.938 kB / 1.226 GB, free: 7.781 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003716/0.3781, allocations: 243.4 kB / 1.226 GB, free: 7.527 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.049e-05/0.3782, allocations: 89.05 kB / 1.226 GB, free: 7.422 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.377e-05/0.3782, allocations: 0 / 1.226 GB, free: 7.422 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.3783, allocations: 12 kB / 1.226 GB, free: 7.41 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.23e-05/0.3783, allocations: 11.92 kB / 1.226 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-05/0.3784, allocations: 0 / 1.226 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.885e-05/0.3784, allocations: 95.27 kB / 1.227 GB, free: 7.305 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3784, allocations: 7.938 kB / 1.227 GB, free: 7.297 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003201/0.3788, allocations: 51.86 kB / 1.227 GB, free: 7.246 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (bli.sampleTrigger,$whenCondition1,occ.y,bli.blindState,bli.pUp,bli.pDown,bli.isOpen,bli.curSeed) * Number of discrete states: 1 (bli.isOpen) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0009775/0.3797, allocations: 0.8437 MB / 1.227 GB, free: 6.391 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002812/0.38, allocations: 87.89 kB / 1.228 GB, free: 6.305 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.3801, allocations: 4 kB / 1.228 GB, free: 6.301 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001274/0.3802, allocations: 47.91 kB / 1.228 GB, free: 6.254 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003201/0.3805, allocations: 24.11 kB / 1.228 GB, free: 6.234 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001843/0.3824, allocations: 1.596 MB / 1.229 GB, free: 4.527 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003171/0.3827, allocations: 0.6924 MB / 1.23 GB, free: 3.809 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.083e-05/0.3827, allocations: 8 kB / 1.23 GB, free: 3.801 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.19e-05/0.3828, allocations: 23.42 kB / 1.23 GB, free: 3.781 MB / 0.9825 GB Notification: Performance of SimCode: time 2.5e-07/0.3828, allocations: 0 / 1.23 GB, free: 3.781 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02586/0.4087, allocations: 2.976 MB / 1.233 GB, free: 0.9609 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.258/8.667, allocations: 13.58 kB / 1.233 GB, free: 0.9492 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe ; mkfifo Buildings_11_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe ; head -c 1048576 < Buildings_11_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe >> ../files/Buildings_11_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_11_Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarAltitude.fmu > Buildings_11_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarAltitude.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.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.solarAltitude in file Buildings_11_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude_res.csv. Warning: Get data of variable bli.solarAltitude from file Buildings_11_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude_res.csv failed! Error: Could not read variable bli.occ in file Buildings_11_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude_res.csv. Warning: Get data of variable bli.occ from file Buildings_11_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude_res.csv failed! " Variables in the reference:time,bli.solarAltitude,bli.occ,bli.pUp,bli.blindState Variables in the result:time,SA.y,bli.blindState,bli.pDown,bli.pUp,SA.amplitude