Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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: translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001103, allocations: 108 kB / 15.6 MB, free: 132 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.001139/0.001139, allocations: 194.9 kB / 16.53 MB, free: 6.391 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.424/1.424, allocations: 222.9 MB / 240.2 MB, free: 4.41 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.452/2.452, allocations: 390.2 MB / 0.6647 GB, free: 408 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 63.89 kB / 0.8125 GB, free: 14.45 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7932/0.7946, allocations: 140.4 MB / 0.9496 GB, free: 9.184 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth): time 0.002398/0.797, allocations: 1.498 MB / 0.951 GB, free: 8 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001038/0.7981, allocations: 0.7255 MB / 0.9517 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.005e-05/0.7981, allocations: 0 / 0.9517 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.614e-05/0.7982, allocations: 9.094 kB / 0.9518 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.879e-05/0.7982, allocations: 20.88 kB / 0.9518 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005095/0.7987, allocations: 117.4 kB / 0.9519 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.001e-05/0.7988, allocations: 79.56 kB / 0.952 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.903e-05/0.7989, allocations: 13.33 kB / 0.952 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.398e-05/0.799, allocations: 33.92 kB / 0.952 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.96e-05/0.7991, allocations: 43.25 kB / 0.9521 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.069e-05/0.7991, allocations: 11.22 kB / 0.9521 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001804/0.7993, allocations: 94.22 kB / 0.9522 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.368e-05/0.7994, allocations: 14.83 kB / 0.9522 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.779e-05/0.7994, allocations: 30.69 kB / 0.9522 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002003/0.7996, allocations: 140 kB / 0.9523 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.7996, allocations: 0 / 0.9523 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.923e-06/0.7996, allocations: 1.375 kB / 0.9523 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.08e-06/0.7996, allocations: 0 / 0.9523 GB, free: 7.047 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.0005667/0.8002, allocations: 435.7 kB / 0.9527 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.8003, allocations: 9.906 kB / 0.9528 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.982e-05/0.8003, allocations: 3.75 kB / 0.9528 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.317e-05/0.8004, allocations: 168.6 kB / 0.9529 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.539e-05/0.8004, allocations: 2.938 kB / 0.9529 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.051e-05/0.8004, allocations: 7.094 kB / 0.9529 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001689/0.8006, allocations: 72.33 kB / 0.953 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.8006, allocations: 9.328 kB / 0.953 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.8007, allocations: 0 / 0.953 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.8007, allocations: 1.469 kB / 0.953 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001215/0.8008, allocations: 36.36 kB / 0.953 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005106/0.8013, allocations: 325.6 kB / 0.9534 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001262/0.8014, allocations: 44.28 kB / 0.9534 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.618e-05/0.8015, allocations: 35.56 kB / 0.9534 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.8016, allocations: 5.188 kB / 0.9534 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001849/0.8017, allocations: 77.31 kB / 0.9535 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 2.124e-06/0.8018, allocations: 3.984 kB / 0.9535 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003946/0.8022, allocations: 132.8 kB / 0.9536 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.127e-05/0.8022, allocations: 64.86 kB / 0.9537 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.934e-05/0.8023, allocations: 117 kB / 0.9538 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.576e-05/0.8023, allocations: 26.77 kB / 0.9538 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.974e-05/0.8024, allocations: 98.84 kB / 0.9539 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.191e-05/0.8024, allocations: 15.22 kB / 0.9539 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.936e-05/0.8024, allocations: 29.39 kB / 0.954 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.826e-05/0.8025, allocations: 324.9 kB / 0.9543 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.533e-05/0.8026, allocations: 30.94 kB / 0.9543 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.582e-05/0.8027, allocations: 44.16 kB / 0.9544 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001463/0.8029, allocations: 74.39 kB / 0.9544 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.8029, allocations: 7.875 kB / 0.9544 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002042/0.8031, allocations: 112.4 kB / 0.9545 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.8031, allocations: 6.469 kB / 0.9545 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.8031, allocations: 0 / 0.9545 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.8031, allocations: 1.375 kB / 0.9545 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.875e-05/0.8032, allocations: 13.08 kB / 0.9546 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.8032, allocations: 1.125 kB / 0.9546 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.166e-05/0.8033, allocations: 11.5 kB / 0.9546 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.323e-05/0.8033, allocations: 3.75 kB / 0.9546 GB, free: 4.898 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 7.244e-05/0.8034, allocations: 126 kB / 0.9547 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.678e-05/0.8034, allocations: 6.625 kB / 0.9547 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.422e-05/0.8034, allocations: 17.67 kB / 0.9547 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.8035, allocations: 1.25 kB / 0.9547 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.8035, allocations: 4 kB / 0.9547 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.8035, allocations: 1.438 kB / 0.9547 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000347/0.8038, allocations: 378.2 kB / 0.9551 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.8038, allocations: 4 kB / 0.9551 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.895e-05/0.8039, allocations: 7.812 kB / 0.9551 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.8039, allocations: 0.7812 kB / 0.9551 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.8039, allocations: 5.359 kB / 0.9551 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.8039, allocations: 0 / 0.9551 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.8039, allocations: 7.875 kB / 0.9551 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002374/0.8042, allocations: 198.4 kB / 0.9553 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.485e-05/0.8042, allocations: 87.58 kB / 0.9554 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.982e-05/0.8042, allocations: 5.391 kB / 0.9554 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.304e-05/0.8043, allocations: 9.594 kB / 0.9554 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.004e-05/0.8044, allocations: 11.55 kB / 0.9554 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.276e-06/0.8044, allocations: 2.094 kB / 0.9554 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.248e-05/0.8044, allocations: 92.52 kB / 0.9555 GB, free: 4 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8044, allocations: 1 kB / 0.9555 GB, free: 4 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002903/0.8047, allocations: 35.25 kB / 0.9555 GB, free: 3.992 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.0003235/0.8051, allocations: 174.1 kB / 0.9557 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002412/0.8053, allocations: 77.53 kB / 0.9558 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.8053, allocations: 0 / 0.9558 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001036/0.8054, allocations: 37.05 kB / 0.9558 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002408/0.8057, allocations: 13.16 kB / 0.9558 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003559/0.806, allocations: 175.3 kB / 0.956 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001167/0.8062, allocations: 0.6918 MB / 0.9567 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.469e-05/0.8062, allocations: 7.344 kB / 0.9567 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.486e-05/0.8062, allocations: 10.59 kB / 0.9567 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.8062, allocations: 0 / 0.9567 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of Templates: time 0.003875/0.8101, allocations: 1.461 MB / 0.9581 GB, free: 2.176 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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,occ.startTime,occ.startValue,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0