Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.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.Windows.Validation.Haldi2008WindowsTIn,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTIn",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTIn",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.008613/0.008613, allocations: 96.09 kB / 15.73 MB, free: 6.043 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.001982/0.001983, allocations: 200.6 kB / 16.68 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.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.653/2.653, allocations: 437 MB / 0.7105 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 59.91 kB / 1.018 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3184, allocations: 151.6 MB / 1.166 GB, free: 7.301 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn): time 0.003229/0.3217, allocations: 1.498 MB / 1.168 GB, free: 5.785 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001457/0.3232, allocations: 0.7322 MB / 1.168 GB, free: 5.047 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.523e-05/0.3232, allocations: 0 / 1.168 GB, free: 5.047 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.574e-05/0.3233, allocations: 7.875 kB / 1.168 GB, free: 5.039 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.408e-05/0.3234, allocations: 7.922 kB / 1.168 GB, free: 5.031 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.000683/0.3241, allocations: 123.6 kB / 1.168 GB, free: 4.91 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001443/0.3242, allocations: 87.69 kB / 1.169 GB, free: 4.824 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001042/0.3243, allocations: 4 kB / 1.169 GB, free: 4.82 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001135/0.3245, allocations: 39.91 kB / 1.169 GB, free: 4.781 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.943e-05/0.3246, allocations: 39.89 kB / 1.169 GB, free: 4.742 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.345e-05/0.3246, allocations: 4 kB / 1.169 GB, free: 4.738 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002788/0.3249, allocations: 99.78 kB / 1.169 GB, free: 4.641 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.802e-05/0.3249, allocations: 11.98 kB / 1.169 GB, free: 4.629 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.556e-05/0.325, allocations: 35.84 kB / 1.169 GB, free: 4.594 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002969/0.3253, allocations: 143.8 kB / 1.169 GB, free: 4.453 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3253, allocations: 0 / 1.169 GB, free: 4.453 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3253, allocations: 0 / 1.169 GB, free: 4.453 MB / 0.92 GB Notification: Performance of Transformations before backend: time 8.045e-06/0.3253, allocations: 0 / 1.169 GB, free: 4.453 MB / 0.92 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.0008429/0.3262, allocations: 428.6 kB / 1.169 GB, free: 3.98 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/0.3262, allocations: 11.97 kB / 1.169 GB, free: 3.969 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.688e-05/0.3263, allocations: 46.75 kB / 1.169 GB, free: 3.914 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.594e-05/0.3263, allocations: 12.88 kB / 1.169 GB, free: 3.902 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001512/0.3265, allocations: 172.3 kB / 1.17 GB, free: 3.695 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.461e-05/0.3265, allocations: 384 / 1.17 GB, free: 3.695 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.482e-05/0.3266, allocations: 8.375 kB / 1.17 GB, free: 3.688 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002151/0.3268, allocations: 69.78 kB / 1.17 GB, free: 3.613 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.3268, allocations: 0 / 1.17 GB, free: 3.613 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.3268, allocations: 0 / 1.17 GB, free: 3.613 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.3268, allocations: 3.984 kB / 1.17 GB, free: 3.609 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001358/0.327, allocations: 43.91 kB / 1.17 GB, free: 3.566 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000679/0.3277, allocations: 312.8 kB / 1.17 GB, free: 3.211 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001293/0.3278, allocations: 50.55 kB / 1.17 GB, free: 3.152 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.978e-05/0.3279, allocations: 36.97 kB / 1.17 GB, free: 3.113 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.306e-05/0.3279, allocations: 8 kB / 1.17 GB, free: 3.105 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002114/0.3281, allocations: 75.31 kB / 1.17 GB, free: 3.02 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.3282, allocations: 0 / 1.17 GB, free: 3.02 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0003771/0.3285, allocations: 137.6 kB / 1.17 GB, free: 2.879 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/0.3286, allocations: 55.41 kB / 1.17 GB, free: 2.812 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.099e-05/0.3287, allocations: 121.8 kB / 1.17 GB, free: 2.684 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.829e-05/0.3287, allocations: 29.7 kB / 1.17 GB, free: 2.648 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.374e-05/0.3288, allocations: 92.17 kB / 1.171 GB, free: 2.555 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.033e-05/0.3288, allocations: 23.77 kB / 1.171 GB, free: 2.531 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.113e-05/0.3289, allocations: 33.64 kB / 1.171 GB, free: 2.492 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.329, allocations: 326.8 kB / 1.171 GB, free: 2.164 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.669e-05/0.3291, allocations: 19.98 kB / 1.171 GB, free: 2.145 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.79e-05/0.3292, allocations: 67.78 kB / 1.171 GB, free: 2.066 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001551/0.3293, allocations: 79.34 kB / 1.171 GB, free: 1.977 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3293, allocations: 0 / 1.171 GB, free: 1.977 MB / 0.92 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002643/0.3296, allocations: 117.6 kB / 1.171 GB, free: 1.855 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.3296, allocations: 4 kB / 1.171 GB, free: 1.852 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.3296, allocations: 0 / 1.171 GB, free: 1.852 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.3297, allocations: 4 kB / 1.171 GB, free: 1.848 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.575e-05/0.3298, allocations: 11.98 kB / 1.171 GB, free: 1.836 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.3298, allocations: 0 / 1.171 GB, free: 1.836 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.81e-05/0.3299, allocations: 4 kB / 1.171 GB, free: 1.832 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.698e-05/0.3299, allocations: 7.938 kB / 1.171 GB, free: 1.824 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 (win.curSeed,$PRE.win.curSeed,occ.y,win.p,$PRE.win.p,win.on,$PRE.win.on,win.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 0.0001011/0.33, allocations: 129.8 kB / 1.171 GB, free: 1.688 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.619e-05/0.33, allocations: 7.953 kB / 1.171 GB, free: 1.68 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.752e-05/0.33, allocations: 8.375 kB / 1.171 GB, free: 1.672 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.33, allocations: 0 / 1.171 GB, free: 1.672 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.3301, allocations: 4.062 kB / 1.171 GB, free: 1.668 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.3301, allocations: 0 / 1.171 GB, free: 1.668 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004658/0.3305, allocations: 382.4 kB / 1.172 GB, free: 1.238 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.3306, allocations: 0 / 1.172 GB, free: 1.238 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.119e-05/0.3306, allocations: 7.984 kB / 1.172 GB, free: 1.23 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.3306, allocations: 4 kB / 1.172 GB, free: 1.227 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.426e-05/0.3306, allocations: 4 kB / 1.172 GB, free: 1.223 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.3306, allocations: 3.938 kB / 1.172 GB, free: 1.219 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.3306, allocations: 0 / 1.172 GB, free: 1.219 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002973/0.3309, allocations: 211.4 kB / 1.172 GB, free: 0.9961 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.549e-05/0.331, allocations: 89 kB / 1.172 GB, free: 0.8906 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.886e-05/0.331, allocations: 0 / 1.172 GB, free: 0.8906 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.638e-05/0.3311, allocations: 11.94 kB / 1.172 GB, free: 0.8789 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.124e-05/0.3312, allocations: 11.92 kB / 1.172 GB, free: 0.8672 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.697e-06/0.3312, allocations: 0 / 1.172 GB, free: 0.8672 MB / 0.92 GB Notification: Performance of sorting global known variables: time 6.011e-05/0.3313, allocations: 99.42 kB / 1.172 GB, free: 0.7695 MB / 0.92 GB Notification: Performance of sort global known variables: time 9e-08/0.3313, allocations: 0 / 1.172 GB, free: 0.7695 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0003071/0.3316, allocations: 39.94 kB / 1.172 GB, free: 0.7305 MB / 0.92 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 (win.sampleTrigger,$whenCondition1,occ.y,win.on,win.p,win.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.0008097/0.3324, allocations: 0.8057 MB / 1.173 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002296/0.3326, allocations: 71.89 kB / 1.173 GB, free: 15.85 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.3327, allocations: 4.125 kB / 1.173 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 9.698e-05/0.3328, allocations: 39.91 kB / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002494/0.333, allocations: 11.92 kB / 1.173 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001712/0.3347, allocations: 1.494 MB / 1.175 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003009/0.3351, allocations: 0.6923 MB / 1.175 GB, free: 13.48 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.965e-05/0.3351, allocations: 4 kB / 1.175 GB, free: 13.47 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.24e-05/0.3352, allocations: 23.42 kB / 1.175 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of SimCode: time 4.11e-07/0.3352, allocations: 0 / 1.175 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02064/0.3558, allocations: 2.647 MB / 1.178 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.255/7.611, allocations: 6.688 kB / 1.178 GB, free: 10.92 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_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_Windows_Validation_Haldi2008WindowsTIn.fmu > Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTIn.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[553]=3600.000000 File[1236]=2249.280000 Error: Could not read variable win.occ in file Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.csv. Warning: Get data of variable win.occ from file Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.csv failed! Error: Could not read variable win.on in file Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.csv. Warning: Get data of variable win.on from file Buildings_10_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.csv failed! " Variables in the reference:time,win.TIn,win.occ,win.p,win.on Variables in the result:time,win.TIn,win.p,TIn.amplitude,TIn.f,TIn.offset