Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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: 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_10_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_10_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.007975/0.007974, allocations: 98.17 kB / 15.73 MB, free: 6.012 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.001678/0.001678, allocations: 196.2 kB / 16.68 MB, free: 5.93 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.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.5/2.5, allocations: 437 MB / 0.7105 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 64.11 kB / 1.019 GB, free: 9.402 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9076/0.9088, allocations: 151.6 MB / 1.167 GB, free: 3.781 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth): time 0.002773/0.9117, allocations: 1.494 MB / 1.168 GB, free: 2.277 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001295/0.913, allocations: 0.7362 MB / 1.169 GB, free: 1.535 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.738e-05/0.913, allocations: 0 / 1.169 GB, free: 1.535 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.14e-05/0.9131, allocations: 3.938 kB / 1.169 GB, free: 1.531 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.158e-05/0.9132, allocations: 15.86 kB / 1.169 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005212/0.9137, allocations: 115.6 kB / 1.169 GB, free: 1.402 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001212/0.9138, allocations: 79.77 kB / 1.169 GB, free: 1.324 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 9.052e-05/0.9139, allocations: 11.98 kB / 1.169 GB, free: 1.312 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 8.169e-05/0.914, allocations: 39.84 kB / 1.169 GB, free: 1.273 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.21e-05/0.9141, allocations: 39.84 kB / 1.169 GB, free: 1.234 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.699e-05/0.9141, allocations: 4 kB / 1.169 GB, free: 1.23 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001913/0.9143, allocations: 99.84 kB / 1.169 GB, free: 1.133 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.114e-05/0.9143, allocations: 23.89 kB / 1.169 GB, free: 1.109 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.198e-05/0.9144, allocations: 31.86 kB / 1.169 GB, free: 1.078 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002344/0.9146, allocations: 135 kB / 1.169 GB, free: 0.9531 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.9147, allocations: 4 kB / 1.169 GB, free: 0.9492 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.683e-06/0.9147, allocations: 0 / 1.169 GB, free: 0.9492 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.971e-06/0.9147, allocations: 0 / 1.169 GB, free: 0.9492 MB / 0.8887 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.0006672/0.9153, allocations: 421.8 kB / 1.17 GB, free: 496 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.9154, allocations: 12.03 kB / 1.17 GB, free: 484 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.195e-05/0.9154, allocations: 4.891 kB / 1.17 GB, free: 480 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001308/0.9156, allocations: 176.3 kB / 1.17 GB, free: 264 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.681e-05/0.9156, allocations: 4.375 kB / 1.17 GB, free: 260 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.917e-05/0.9156, allocations: 12.31 kB / 1.17 GB, free: 248 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001893/0.9158, allocations: 77.95 kB / 1.17 GB, free: 164 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.9158, allocations: 0 / 1.17 GB, free: 164 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.27e-05/0.9159, allocations: 0 / 1.17 GB, free: 164 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.359e-06/0.9159, allocations: 0 / 1.17 GB, free: 164 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001255/0.916, allocations: 35.97 kB / 1.17 GB, free: 128 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006333/0.9166, allocations: 320.7 kB / 1.17 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001328/0.9168, allocations: 50.5 kB / 1.17 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.372e-05/0.9169, allocations: 40.89 kB / 1.17 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.9169, allocations: 0 / 1.17 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001884/0.9171, allocations: 79.36 kB / 1.171 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.452e-06/0.9171, allocations: 0 / 1.171 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0004112/0.9175, allocations: 149.6 kB / 1.171 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.9176, allocations: 55.41 kB / 1.171 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001105/0.9177, allocations: 117.8 kB / 1.171 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.101e-05/0.9177, allocations: 33.7 kB / 1.171 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.861e-05/0.9178, allocations: 88.09 kB / 1.171 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.923e-05/0.9178, allocations: 15.91 kB / 1.171 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.513e-05/0.9179, allocations: 33.7 kB / 1.171 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.918, allocations: 322.8 kB / 1.171 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.837e-05/0.9181, allocations: 23.98 kB / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.128e-05/0.9182, allocations: 50.55 kB / 1.171 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001575/0.9183, allocations: 70.5 kB / 1.171 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.9183, allocations: 4 kB / 1.171 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002417/0.9186, allocations: 113.5 kB / 1.172 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.9186, allocations: 8 kB / 1.172 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.9186, allocations: 4 kB / 1.172 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.9187, allocations: 0 / 1.172 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.339e-05/0.9187, allocations: 11.98 kB / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.9188, allocations: 8.062 kB / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.466e-05/0.9188, allocations: 7.938 kB / 1.172 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.82e-05/0.9189, allocations: 15.92 kB / 1.172 GB, free: 14.38 MB / 0.9044 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 0.0001067/0.919, allocations: 121.7 kB / 1.172 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.782e-05/0.919, allocations: 7.953 kB / 1.172 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.498e-05/0.919, allocations: 4.375 kB / 1.172 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.919, allocations: 0 / 1.172 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.919, allocations: 0 / 1.172 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.9191, allocations: 4 kB / 1.172 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004494/0.9195, allocations: 386.4 kB / 1.172 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.9195, allocations: 0 / 1.172 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.819e-05/0.9196, allocations: 7.984 kB / 1.172 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.9196, allocations: 0 / 1.172 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.9196, allocations: 0 / 1.172 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.9196, allocations: 0 / 1.172 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.9196, allocations: 3.938 kB / 1.172 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002805/0.9199, allocations: 215.5 kB / 1.172 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.894e-05/0.9199, allocations: 81.06 kB / 1.172 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.711e-05/0.92, allocations: 0 / 1.172 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.365e-05/0.92, allocations: 7.984 kB / 1.172 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.538e-05/0.9201, allocations: 11.94 kB / 1.172 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.9201, allocations: 3.938 kB / 1.172 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.004e-05/0.9202, allocations: 99.86 kB / 1.173 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.673e-06/0.9202, allocations: 4 kB / 1.173 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002881/0.9205, allocations: 43.86 kB / 1.173 GB, free: 13.3 MB / 0.9044 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.0003267/0.9208, allocations: 159.6 kB / 1.173 GB, free: 13.15 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002276/0.9211, allocations: 79.95 kB / 1.173 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.9211, allocations: 0 / 1.173 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 9.274e-05/0.9212, allocations: 35.97 kB / 1.173 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002468/0.9214, allocations: 4 kB / 1.173 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003921/0.9218, allocations: 188.2 kB / 1.173 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003901/0.9222, allocations: 0.6846 MB / 1.174 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.72e-05/0.9223, allocations: 12.05 kB / 1.174 GB, free: 12.1 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.634e-05/0.9223, allocations: 7.438 kB / 1.174 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of SimCode: time 2.7e-07/0.9223, allocations: 7.938 kB / 1.174 GB, free: 12.08 MB / 0.9044 GB Notification: Performance of Templates: time 0.003996/0.9263, allocations: 1.45 MB / 1.175 GB, free: 10.64 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.makefile (rm -f Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.sim & ./Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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