Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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.Zhang2012WindowsNorth,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth",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.001284/0.001284, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001284/0.001284, allocations: 189.4 kB / 16.25 MB, free: 6.637 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.237/1.237, allocations: 222.9 MB / 239.9 MB, free: 4.5 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.076/2.076, allocations: 390.2 MB / 0.6644 GB, free: 0.543 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 63.91 kB / 0.8122 GB, free: 14.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4792/0.4804, allocations: 140.4 MB / 0.9492 GB, free: 9.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.002043/0.4825, allocations: 1.557 MB / 0.9508 GB, free: 7.918 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008358/0.4833, allocations: 0.7184 MB / 0.9515 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.184e-05/0.4833, allocations: 5.219 kB / 0.9515 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.027e-05/0.4834, allocations: 3.938 kB / 0.9515 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.178e-05/0.4834, allocations: 9.516 kB / 0.9515 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004086/0.4838, allocations: 106.5 kB / 0.9516 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.123e-05/0.4839, allocations: 78.45 kB / 0.9516 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.884e-05/0.484, allocations: 21.41 kB / 0.9517 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.946e-05/0.4841, allocations: 38.23 kB / 0.9517 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.86e-05/0.4841, allocations: 38.89 kB / 0.9517 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.64e-05/0.4842, allocations: 6.75 kB / 0.9517 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001445/0.4843, allocations: 94.19 kB / 0.9518 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.776e-05/0.4843, allocations: 14.28 kB / 0.9519 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.496e-05/0.4844, allocations: 36.73 kB / 0.9519 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001709/0.4846, allocations: 144.6 kB / 0.952 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.4846, allocations: 0 / 0.952 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.212e-06/0.4846, allocations: 0 / 0.952 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.459e-06/0.4846, allocations: 4 kB / 0.952 GB, free: 6.98 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.0004386/0.485, allocations: 420.2 kB / 0.9524 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.068e-05/0.4851, allocations: 9.875 kB / 0.9524 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.798e-05/0.4851, allocations: 39.98 kB / 0.9525 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.976e-05/0.4851, allocations: 5.344 kB / 0.9525 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.61e-05/0.4852, allocations: 167 kB / 0.9526 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.985e-05/0.4852, allocations: 3.156 kB / 0.9526 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.428e-05/0.4852, allocations: 7.656 kB / 0.9526 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001454/0.4854, allocations: 76.03 kB / 0.9527 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.712e-06/0.4854, allocations: 1.344 kB / 0.9527 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.4854, allocations: 0 / 0.9527 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.4854, allocations: 1.281 kB / 0.9527 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001145/0.4855, allocations: 35.66 kB / 0.9528 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004488/0.486, allocations: 330.3 kB / 0.9531 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001039/0.4861, allocations: 52.78 kB / 0.9531 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.785e-05/0.4862, allocations: 32 kB / 0.9532 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.708e-05/0.4862, allocations: 0 / 0.9532 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001384/0.4864, allocations: 77.44 kB / 0.9532 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.4864, allocations: 1.344 kB / 0.9532 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003209/0.4867, allocations: 140.3 kB / 0.9534 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.377e-05/0.4867, allocations: 56.06 kB / 0.9534 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.999e-05/0.4868, allocations: 122 kB / 0.9535 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.073e-05/0.4868, allocations: 25.7 kB / 0.9536 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.555e-05/0.4868, allocations: 90.83 kB / 0.9536 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.578e-05/0.4869, allocations: 27.27 kB / 0.9537 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.858e-05/0.4869, allocations: 29.92 kB / 0.9537 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.333e-05/0.4869, allocations: 321.2 kB / 0.954 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.072e-05/0.487, allocations: 30.08 kB / 0.954 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.499e-05/0.4871, allocations: 48.33 kB / 0.9541 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001293/0.4872, allocations: 78.11 kB / 0.9542 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.4872, allocations: 0 / 0.9542 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001915/0.4874, allocations: 104.9 kB / 0.9543 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.019e-05/0.4875, allocations: 4.844 kB / 0.9543 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.4875, allocations: 5.453 kB / 0.9543 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.698e-06/0.4875, allocations: 1.344 kB / 0.9543 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.393e-05/0.4876, allocations: 13.28 kB / 0.9543 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.85e-06/0.4876, allocations: 4 kB / 0.9543 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.193e-05/0.4876, allocations: 12.17 kB / 0.9543 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.215e-05/0.4877, allocations: 3.406 kB / 0.9543 GB, free: 4.801 MB / 0.7169 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 5.299e-05/0.4877, allocations: 122.3 kB / 0.9544 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.547e-05/0.4877, allocations: 7.375 kB / 0.9544 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.137e-05/0.4878, allocations: 13.39 kB / 0.9544 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.4878, allocations: 1.375 kB / 0.9544 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.4878, allocations: 4 kB / 0.9544 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.4878, allocations: 1.406 kB / 0.9544 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003122/0.4881, allocations: 387 kB / 0.9548 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.4881, allocations: 0 / 0.9548 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.711e-05/0.4882, allocations: 2.844 kB / 0.9548 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.4882, allocations: 5.25 kB / 0.9548 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.758e-06/0.4882, allocations: 1.594 kB / 0.9548 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.4882, allocations: 7.922 kB / 0.9548 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.4882, allocations: 4 kB / 0.9548 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002068/0.4884, allocations: 206.3 kB / 0.955 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.648e-05/0.4884, allocations: 82.2 kB / 0.9551 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.879e-05/0.4885, allocations: 5.562 kB / 0.9551 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.643e-05/0.4885, allocations: 10.58 kB / 0.9551 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.77e-05/0.4886, allocations: 2.781 kB / 0.9551 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/0.4886, allocations: 6.516 kB / 0.9551 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.837e-05/0.4886, allocations: 96.64 kB / 0.9552 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4886, allocations: 0 / 0.9552 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002564/0.4889, allocations: 36.12 kB / 0.9553 GB, free: 3.891 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 (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.0005222/0.4894, allocations: 0.8177 MB / 0.9561 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002019/0.4896, allocations: 73.34 kB / 0.9561 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.4896, allocations: 0 / 0.9561 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.352e-05/0.4897, allocations: 36.31 kB / 0.9562 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002242/0.49, allocations: 8.156 kB / 0.9562 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001084/0.491, allocations: 1.493 MB / 0.9576 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.173e-05/0.4911, allocations: 0.6863 MB / 0.9583 GB, free: 1.008 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.326e-05/0.4912, allocations: 8.141 kB / 0.9583 GB, free: 1.004 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.507e-05/0.4912, allocations: 18.12 kB / 0.9583 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.4912, allocations: 0 / 0.9583 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4652/0.9564, allocations: 2.489 MB / 0.9608 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001811/0.9566, allocations: 259.7 kB / 0.961 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.61/2.567, allocations: 5 kB / 0.961 GB, free: 15.45 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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