Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.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.Windows.Validation.Zhang2012WindowsEast,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast",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.008297/0.008297, allocations: 105.8 kB / 15.74 MB, free: 5.996 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.00195/0.001951, allocations: 194.5 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.432/1.432, allocations: 222.9 MB / 240.4 MB, free: 15.18 MB / 206.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.204/2.204, allocations: 390.3 MB / 0.6648 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001097/0.001097, allocations: 67.89 kB / 0.9504 GB, free: 8.215 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8692/0.8703, allocations: 140.4 MB / 1.087 GB, free: 5.305 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast): time 0.002764/0.8731, allocations: 1.5 MB / 1.089 GB, free: 4.27 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001318/0.8744, allocations: 0.729 MB / 1.09 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.672e-05/0.8745, allocations: 1.281 kB / 1.09 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.541e-05/0.8746, allocations: 5.25 kB / 1.09 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.179e-05/0.8746, allocations: 10.64 kB / 1.09 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005945/0.8752, allocations: 125.4 kB / 1.09 GB, free: 3.699 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001329/0.8754, allocations: 79.89 kB / 1.09 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001072/0.8755, allocations: 12.11 kB / 1.09 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001025/0.8756, allocations: 35.16 kB / 1.09 GB, free: 3.641 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.954e-05/0.8757, allocations: 37.88 kB / 1.09 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.368e-05/0.8757, allocations: 6.781 kB / 1.09 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002259/0.8759, allocations: 93.27 kB / 1.09 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.079e-05/0.876, allocations: 19.09 kB / 1.09 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.096e-05/0.876, allocations: 28.61 kB / 1.09 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002962/0.8763, allocations: 152.2 kB / 1.09 GB, free: 3.512 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.8764, allocations: 0 / 1.09 GB, free: 3.512 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.694e-06/0.8764, allocations: 0 / 1.09 GB, free: 3.512 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.244e-06/0.8764, allocations: 1.312 kB / 1.09 GB, free: 3.512 MB / 0.8575 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.0005801/0.877, allocations: 421.3 kB / 1.091 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.877, allocations: 10.17 kB / 1.091 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.799e-05/0.8771, allocations: 33.28 kB / 1.091 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.25e-05/0.8771, allocations: 9.25 kB / 1.091 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001023/0.8772, allocations: 178.3 kB / 1.091 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.905e-05/0.8772, allocations: 6.375 kB / 1.091 GB, free: 2.836 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.76e-05/0.8773, allocations: 4.094 kB / 1.091 GB, free: 2.836 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001886/0.8775, allocations: 72.14 kB / 1.091 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.8775, allocations: 1 kB / 1.091 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/0.8775, allocations: 4.797 kB / 1.091 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.501e-06/0.8775, allocations: 1.094 kB / 1.091 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001448/0.8777, allocations: 35.61 kB / 1.091 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006255/0.8783, allocations: 322.5 kB / 1.091 GB, free: 2.477 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001409/0.8785, allocations: 54.36 kB / 1.091 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.428e-05/0.8786, allocations: 31.33 kB / 1.091 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.845e-05/0.8786, allocations: 1.859 kB / 1.091 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002254/0.8788, allocations: 81.36 kB / 1.091 GB, free: 2.359 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.853e-06/0.8788, allocations: 0 / 1.091 GB, free: 2.359 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004769/0.8793, allocations: 141 kB / 1.092 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.967e-05/0.8794, allocations: 54.17 kB / 1.092 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/0.8795, allocations: 119.5 kB / 1.092 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.8795, allocations: 31.91 kB / 1.092 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.958e-05/0.8796, allocations: 99.91 kB / 1.092 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.401e-05/0.8796, allocations: 19.69 kB / 1.092 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.589e-05/0.8797, allocations: 24.8 kB / 1.092 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.156e-05/0.8798, allocations: 326.8 kB / 1.092 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.982e-05/0.8799, allocations: 27.89 kB / 1.092 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001089/0.88, allocations: 46.47 kB / 1.092 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001765/0.8802, allocations: 76.56 kB / 1.092 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.8802, allocations: 0 / 1.092 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002657/0.8804, allocations: 108.3 kB / 1.092 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.8805, allocations: 5.844 kB / 1.092 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.8805, allocations: 1.297 kB / 1.092 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.992e-05/0.8805, allocations: 5.562 kB / 1.092 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001065/0.8806, allocations: 10.8 kB / 1.092 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.358e-06/0.8806, allocations: 2.562 kB / 1.092 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.805e-05/0.8807, allocations: 13.66 kB / 1.092 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.582e-05/0.8807, allocations: 3.141 kB / 1.092 GB, free: 1.48 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (win.occ,win.curSeed,$PRE.win.curSeed,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 9.027e-05/0.8808, allocations: 127.1 kB / 1.093 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.3e-05/0.8809, allocations: 8.109 kB / 1.093 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.939e-05/0.8809, allocations: 11.36 kB / 1.093 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.8809, allocations: 1.062 kB / 1.093 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.8809, allocations: 0 / 1.093 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.8809, allocations: 0.7969 kB / 1.093 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004956/0.8815, allocations: 379.1 kB / 1.093 GB, free: 1 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.8815, allocations: 0 / 1.093 GB, free: 1 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.741e-05/0.8815, allocations: 9.547 kB / 1.093 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.8815, allocations: 1.188 kB / 1.093 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.488e-05/0.8816, allocations: 2.078 kB / 1.093 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.147e-06/0.8816, allocations: 9.094 kB / 1.093 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.8816, allocations: 0.5156 kB / 1.093 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003222/0.8819, allocations: 215 kB / 1.093 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.25e-05/0.8819, allocations: 83.94 kB / 1.093 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.005e-05/0.882, allocations: 1.797 kB / 1.093 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.672e-05/0.8821, allocations: 8.625 kB / 1.093 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.61e-05/0.8821, allocations: 8.828 kB / 1.093 GB, free: 0.7188 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.13e-05/0.8821, allocations: 6.844 kB / 1.093 GB, free: 0.7148 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.788e-05/0.8822, allocations: 91.67 kB / 1.093 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.8822, allocations: 0.75 kB / 1.093 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003299/0.8825, allocations: 42.58 kB / 1.093 GB, free: 0.625 MB / 0.8575 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,win.occ,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.0009121/0.8834, allocations: 0.8125 MB / 1.094 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002757/0.8837, allocations: 72.91 kB / 1.094 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.8837, allocations: 0 / 1.094 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001122/0.8839, allocations: 33.34 kB / 1.094 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002698/0.8841, allocations: 12.86 kB / 1.094 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0019/0.886, allocations: 1.492 MB / 1.096 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003737/0.8864, allocations: 0.6907 MB / 1.096 GB, free: 13.85 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.256e-05/0.8865, allocations: 8.859 kB / 1.096 GB, free: 13.85 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.728e-05/0.8865, allocations: 21.36 kB / 1.097 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of SimCode: time 2.11e-07/0.8866, allocations: 0 / 1.097 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02141/0.908, allocations: 2.673 MB / 1.099 GB, free: 13.34 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.948/8.856, allocations: 12.94 kB / 1.099 GB, free: 13.33 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,win.TOut,win.occ,win.p,win.on Variables in the result:TOut.amplitude,TOut.f,TOut.offset,TOut.phase,TOut.startTime,TOut.y,occ.startTime,occ.startValue,occ.y,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed