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: "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth",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.001241/0.001241, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001266/0.001266, allocations: 190.9 kB / 16.25 MB, free: 6.629 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.202/1.202, allocations: 222.9 MB / 239.9 MB, free: 4.527 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.084/2.084, allocations: 390.2 MB / 0.6644 GB, free: 0.5156 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 63.89 kB / 0.8122 GB, free: 14.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4748/0.476, allocations: 140.4 MB / 0.9492 GB, free: 9.051 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth): time 0.00215/0.4782, allocations: 1.555 MB / 0.9508 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009213/0.4791, allocations: 0.7184 MB / 0.9515 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.62e-05/0.4792, allocations: 0 / 0.9515 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.59e-05/0.4792, allocations: 0 / 0.9515 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.816e-05/0.4793, allocations: 14.2 kB / 0.9515 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004434/0.4797, allocations: 110 kB / 0.9516 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.083e-05/0.4798, allocations: 78.67 kB / 0.9516 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.552e-05/0.4799, allocations: 18.58 kB / 0.9517 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.006e-05/0.48, allocations: 37.95 kB / 0.9517 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.834e-05/0.48, allocations: 34.19 kB / 0.9517 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.544e-05/0.4801, allocations: 7.281 kB / 0.9517 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001505/0.4802, allocations: 97.66 kB / 0.9518 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.811e-05/0.4802, allocations: 18.38 kB / 0.9519 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.433e-05/0.4803, allocations: 33.02 kB / 0.9519 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001702/0.4805, allocations: 140.2 kB / 0.952 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.297e-06/0.4805, allocations: 7.875 kB / 0.952 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.082e-06/0.4805, allocations: 0 / 0.952 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.05e-06/0.4805, allocations: 1.406 kB / 0.952 GB, free: 6.895 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.0004476/0.4809, allocations: 422.5 kB / 0.9524 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.255e-05/0.481, allocations: 9.625 kB / 0.9524 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.806e-05/0.481, allocations: 41.09 kB / 0.9525 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.096e-05/0.481, allocations: 3.562 kB / 0.9525 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.873e-05/0.4811, allocations: 172.1 kB / 0.9526 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.986e-05/0.4811, allocations: 10.84 kB / 0.9527 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.44e-05/0.4812, allocations: 4.906 kB / 0.9527 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001508/0.4813, allocations: 67.5 kB / 0.9527 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.822e-06/0.4813, allocations: 0 / 0.9527 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.4813, allocations: 5 kB / 0.9527 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.4813, allocations: 1.062 kB / 0.9527 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001151/0.4815, allocations: 41.05 kB / 0.9528 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004548/0.4819, allocations: 325.5 kB / 0.9531 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001037/0.482, allocations: 44.31 kB / 0.9531 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.025e-05/0.4821, allocations: 35.67 kB / 0.9532 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.494e-05/0.4821, allocations: 1.156 kB / 0.9532 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001526/0.4823, allocations: 81.91 kB / 0.9532 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.4823, allocations: 0 / 0.9532 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003332/0.4826, allocations: 140.7 kB / 0.9534 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.265e-05/0.4827, allocations: 52.62 kB / 0.9534 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.213e-05/0.4827, allocations: 129.3 kB / 0.9535 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.193e-05/0.4828, allocations: 31.42 kB / 0.9536 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.582e-05/0.4828, allocations: 89.73 kB / 0.9537 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.525e-05/0.4828, allocations: 14.88 kB / 0.9537 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.96e-05/0.4829, allocations: 25.42 kB / 0.9537 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.35e-05/0.4829, allocations: 325.8 kB / 0.954 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.358e-05/0.483, allocations: 25.55 kB / 0.954 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.872e-05/0.4831, allocations: 52.95 kB / 0.9541 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001266/0.4832, allocations: 69.25 kB / 0.9541 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.4832, allocations: 1.375 kB / 0.9541 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001955/0.4834, allocations: 117.1 kB / 0.9543 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.4834, allocations: 5.219 kB / 0.9543 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.4834, allocations: 4.062 kB / 0.9543 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.4834, allocations: 1.219 kB / 0.9543 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.719e-05/0.4835, allocations: 17.36 kB / 0.9543 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.169e-06/0.4836, allocations: 1.578 kB / 0.9543 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.107e-05/0.4836, allocations: 6.969 kB / 0.9543 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.149e-05/0.4836, allocations: 8.141 kB / 0.9543 GB, free: 4.707 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.616e-05/0.4837, allocations: 125.9 kB / 0.9544 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.605e-05/0.4837, allocations: 11.22 kB / 0.9544 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.005e-05/0.4837, allocations: 9.562 kB / 0.9544 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.4837, allocations: 1.125 kB / 0.9544 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.4838, allocations: 1.156 kB / 0.9544 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.245e-06/0.4838, allocations: 0 / 0.9544 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003229/0.4841, allocations: 386.7 kB / 0.9548 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.4841, allocations: 0 / 0.9548 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.802e-05/0.4841, allocations: 7.891 kB / 0.9548 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.4841, allocations: 1.062 kB / 0.9548 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.4842, allocations: 13.12 kB / 0.9548 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.4842, allocations: 3.938 kB / 0.9548 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.4842, allocations: 0 / 0.9548 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002109/0.4844, allocations: 214.6 kB / 0.955 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.523e-05/0.4844, allocations: 82.3 kB / 0.9551 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.722e-05/0.4844, allocations: 1.281 kB / 0.9551 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.556e-05/0.4845, allocations: 6.531 kB / 0.9551 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.035e-05/0.4846, allocations: 10.83 kB / 0.9551 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.4846, allocations: 6.25 kB / 0.9551 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.897e-05/0.4846, allocations: 92.52 kB / 0.9552 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.4846, allocations: 0 / 0.9552 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002702/0.4849, allocations: 41.36 kB / 0.9553 GB, free: 3.785 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.0005329/0.4854, allocations: 0.8005 MB / 0.9561 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000207/0.4856, allocations: 73.67 kB / 0.9561 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.4857, allocations: 3.938 kB / 0.9561 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.31e-05/0.4857, allocations: 40.69 kB / 0.9562 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000231/0.486, allocations: 16.14 kB / 0.9562 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001108/0.4871, allocations: 1.478 MB / 0.9576 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.303e-05/0.4872, allocations: 0.6879 MB / 0.9583 GB, free: 0.9141 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.653e-05/0.4872, allocations: 7.609 kB / 0.9583 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.637e-05/0.4873, allocations: 23.14 kB / 0.9583 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.4873, allocations: 0 / 0.9583 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01344/0.5007, allocations: 2.485 MB / 0.9608 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002254/0.501, allocations: 261.2 kB / 0.961 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.498/1.999, allocations: 0 / 0.961 GB, free: 15.36 MB / 0.7325 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.fmu > 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/jenkins1/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,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