Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth,fileNamePrefix="Buildings_latest_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.004512/0.004512, allocations: 97.38 kB / 15.73 MB, free: 6.039 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.001189/0.001189, allocations: 204.6 kB / 16.68 MB, free: 5.961 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.566/2.566, allocations: 482.6 MB / 0.755 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001697/0.001697, allocations: 71.88 kB / 1.083 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2561, allocations: 162.3 MB / 1.242 GB, free: 9.812 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth): time 0.002211/0.2583, allocations: 1.492 MB / 1.243 GB, free: 8.309 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001062/0.2594, allocations: 0.7362 MB / 1.244 GB, free: 7.566 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.333e-05/0.2594, allocations: 0 / 1.244 GB, free: 7.566 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.652e-05/0.2595, allocations: 7.922 kB / 1.244 GB, free: 7.559 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.6e-05/0.2595, allocations: 11.88 kB / 1.244 GB, free: 7.547 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004493/0.26, allocations: 119.6 kB / 1.244 GB, free: 7.43 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001011/0.2601, allocations: 79.77 kB / 1.244 GB, free: 7.352 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 7.383e-05/0.2602, allocations: 15.97 kB / 1.244 GB, free: 7.336 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.014e-05/0.2602, allocations: 31.92 kB / 1.244 GB, free: 7.305 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.796e-05/0.2603, allocations: 47.81 kB / 1.244 GB, free: 7.258 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.593e-05/0.2603, allocations: 4 kB / 1.244 GB, free: 7.254 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001707/0.2605, allocations: 99.84 kB / 1.244 GB, free: 7.156 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.482e-05/0.2605, allocations: 15.92 kB / 1.244 GB, free: 7.141 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.464e-05/0.2606, allocations: 31.86 kB / 1.244 GB, free: 7.109 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002018/0.2608, allocations: 139.5 kB / 1.245 GB, free: 6.973 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.2608, allocations: 4 kB / 1.245 GB, free: 6.969 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.223e-06/0.2608, allocations: 0 / 1.245 GB, free: 6.969 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.476e-06/0.2608, allocations: 0 / 1.245 GB, free: 6.969 MB / 0.9981 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.0005403/0.2614, allocations: 420.7 kB / 1.245 GB, free: 6.504 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.2614, allocations: 12.03 kB / 1.245 GB, free: 6.492 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.498e-05/0.2614, allocations: 38.73 kB / 1.245 GB, free: 6.445 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.939e-05/0.2615, allocations: 8.891 kB / 1.245 GB, free: 6.438 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001232/0.2616, allocations: 180.2 kB / 1.245 GB, free: 6.223 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.55e-05/0.2616, allocations: 4.375 kB / 1.245 GB, free: 6.219 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.502e-05/0.2616, allocations: 8.375 kB / 1.245 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001579/0.2618, allocations: 69.78 kB / 1.245 GB, free: 6.137 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.422e-06/0.2618, allocations: 0 / 1.245 GB, free: 6.137 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.2618, allocations: 3.984 kB / 1.245 GB, free: 6.133 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.2618, allocations: 4 kB / 1.245 GB, free: 6.129 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001175/0.262, allocations: 35.98 kB / 1.245 GB, free: 6.094 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005284/0.2625, allocations: 324.6 kB / 1.246 GB, free: 5.727 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001087/0.2626, allocations: 42.56 kB / 1.246 GB, free: 5.676 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.029e-05/0.2627, allocations: 32.97 kB / 1.246 GB, free: 5.641 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.2627, allocations: 4 kB / 1.246 GB, free: 5.637 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001591/0.2629, allocations: 83.44 kB / 1.246 GB, free: 5.543 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 3.016e-06/0.2629, allocations: 0 / 1.246 GB, free: 5.543 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0003523/0.2633, allocations: 141.5 kB / 1.246 GB, free: 5.398 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.764e-05/0.2633, allocations: 55.39 kB / 1.246 GB, free: 5.332 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.743e-05/0.2634, allocations: 117.8 kB / 1.246 GB, free: 5.207 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/0.2634, allocations: 25.7 kB / 1.246 GB, free: 5.176 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.152e-05/0.2635, allocations: 100.1 kB / 1.246 GB, free: 5.074 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.527e-05/0.2635, allocations: 11.91 kB / 1.246 GB, free: 5.062 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.728e-05/0.2636, allocations: 33.7 kB / 1.246 GB, free: 5.023 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001193/0.2637, allocations: 318.8 kB / 1.247 GB, free: 4.703 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.925e-05/0.2638, allocations: 31.97 kB / 1.247 GB, free: 4.672 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.471e-05/0.2639, allocations: 43 kB / 1.247 GB, free: 4.621 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001621/0.264, allocations: 86.41 kB / 1.247 GB, free: 4.527 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.264, allocations: 0 / 1.247 GB, free: 4.527 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002193/0.2643, allocations: 109.5 kB / 1.247 GB, free: 4.414 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.023e-05/0.2643, allocations: 4 kB / 1.247 GB, free: 4.41 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.2643, allocations: 4 kB / 1.247 GB, free: 4.406 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.298e-06/0.2643, allocations: 0 / 1.247 GB, free: 4.406 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.35e-05/0.2644, allocations: 23.98 kB / 1.247 GB, free: 4.383 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.107e-06/0.2644, allocations: 0 / 1.247 GB, free: 4.383 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.688e-05/0.2645, allocations: 7.938 kB / 1.247 GB, free: 4.375 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.2645, allocations: 4 kB / 1.247 GB, free: 4.371 MB / 0.9981 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 8.166e-05/0.2646, allocations: 121.7 kB / 1.247 GB, free: 4.242 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.541e-05/0.2646, allocations: 7.953 kB / 1.247 GB, free: 4.234 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.406e-05/0.2646, allocations: 12.36 kB / 1.247 GB, free: 4.223 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.2646, allocations: 4 kB / 1.247 GB, free: 4.219 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.2646, allocations: 4 kB / 1.247 GB, free: 4.215 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.2646, allocations: 0 / 1.247 GB, free: 4.215 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004172/0.2651, allocations: 382.4 kB / 1.247 GB, free: 3.785 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2651, allocations: 0 / 1.247 GB, free: 3.785 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.552e-05/0.2651, allocations: 4 kB / 1.247 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.099e-06/0.2651, allocations: 3.984 kB / 1.247 GB, free: 3.777 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.028e-05/0.2651, allocations: 3.984 kB / 1.247 GB, free: 3.773 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.2651, allocations: 7.938 kB / 1.247 GB, free: 3.766 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.2652, allocations: 4 kB / 1.247 GB, free: 3.762 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002633/0.2654, allocations: 207.9 kB / 1.248 GB, free: 3.543 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.193e-05/0.2655, allocations: 85.06 kB / 1.248 GB, free: 3.441 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.845e-05/0.2655, allocations: 7.984 kB / 1.248 GB, free: 3.434 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.294e-05/0.2656, allocations: 11.94 kB / 1.248 GB, free: 3.422 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.971e-05/0.2656, allocations: 3.984 kB / 1.248 GB, free: 3.418 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.727e-06/0.2656, allocations: 4 kB / 1.248 GB, free: 3.414 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.481e-05/0.2657, allocations: 99.42 kB / 1.248 GB, free: 3.316 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2657, allocations: 3.938 kB / 1.248 GB, free: 3.312 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002509/0.266, allocations: 39.88 kB / 1.248 GB, free: 3.273 MB / 0.9981 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.0007261/0.2667, allocations: 0.8052 MB / 1.249 GB, free: 2.457 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.000208/0.2669, allocations: 71.89 kB / 1.249 GB, free: 2.387 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.2669, allocations: 0 / 1.249 GB, free: 2.387 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 9.082e-05/0.267, allocations: 35.92 kB / 1.249 GB, free: 2.352 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002167/0.2672, allocations: 12.06 kB / 1.249 GB, free: 2.34 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001436/0.2687, allocations: 1.496 MB / 1.25 GB, free: 0.7461 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000261/0.2689, allocations: 0.6924 MB / 1.251 GB, free: 28 kB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.219e-05/0.269, allocations: 11.92 kB / 1.251 GB, free: 16 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.4267/0.6957, allocations: 22.81 kB / 1.251 GB, free: 14.17 MB / 0.9981 GB Notification: Performance of SimCode: time 8.02e-07/0.6957, allocations: 0 / 1.251 GB, free: 14.17 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.737/5.433, allocations: 2.639 MB / 1.254 GB, free: 13.84 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.2/15.63, allocations: 3.938 kB / 1.254 GB, free: 13.84 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth_fmu --startTime=0 --stopTime=3600 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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