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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0008133/0.0008133, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.005842/0.005842, allocations: 172.6 kB / 16.27 MB, free: 6.648 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.739/1.739, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.59/2.59, allocations: 462.6 MB / 0.7364 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003173/0.0003173, allocations: 15.06 kB / 0.9029 GB, free: 36.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.2512, allocations: 159.6 MB / 1.059 GB, free: 4.852 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth): time 0.001387/0.2527, allocations: 1.217 MB / 1.06 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009993/0.2537, allocations: 0.7285 MB / 1.061 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.448e-05/0.2537, allocations: 0 / 1.061 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.356e-05/0.2537, allocations: 0 / 1.061 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.03e-05/0.2538, allocations: 15.86 kB / 1.061 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003706/0.2542, allocations: 99.77 kB / 1.061 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.33e-05/0.2543, allocations: 71.83 kB / 1.061 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.719e-05/0.2543, allocations: 15.98 kB / 1.061 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.641e-05/0.2544, allocations: 27.86 kB / 1.061 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.421e-05/0.2545, allocations: 35.89 kB / 1.061 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.448e-05/0.2545, allocations: 4 kB / 1.061 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001494/0.2547, allocations: 87.84 kB / 1.061 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.047e-05/0.2547, allocations: 15.92 kB / 1.061 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.814e-05/0.2547, allocations: 53.56 kB / 1.061 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000178/0.2549, allocations: 143.8 kB / 1.061 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.2549, allocations: 0 / 1.061 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.352e-06/0.2549, allocations: 4 kB / 1.061 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.875e-06/0.2549, allocations: 0 / 1.061 GB, free: 2.32 MB / 0.8106 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.0004774/0.2554, allocations: 409 kB / 1.062 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.2555, allocations: 11.97 kB / 1.062 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.153e-05/0.2555, allocations: 34.75 kB / 1.062 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.431e-05/0.2555, allocations: 0.9375 kB / 1.062 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.559e-05/0.2556, allocations: 184.1 kB / 1.062 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.039e-05/0.2557, allocations: 8.375 kB / 1.062 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.403e-05/0.2557, allocations: 8.375 kB / 1.062 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001519/0.2558, allocations: 69.78 kB / 1.062 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.27e-06/0.2559, allocations: 0 / 1.062 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.038e-05/0.2559, allocations: 4 kB / 1.062 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.516e-06/0.2559, allocations: 4 kB / 1.062 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001301/0.256, allocations: 39.97 kB / 1.062 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000496/0.2565, allocations: 324.6 kB / 1.062 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001152/0.2566, allocations: 58.55 kB / 1.062 GB, free: 1.023 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.483e-05/0.2567, allocations: 32.97 kB / 1.062 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.489e-05/0.2568, allocations: 0 / 1.062 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00016/0.2569, allocations: 83.44 kB / 1.062 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.2569, allocations: 3.938 kB / 1.062 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003525/0.2573, allocations: 145.5 kB / 1.063 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.947e-05/0.2573, allocations: 55.41 kB / 1.063 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.447e-05/0.2574, allocations: 121.8 kB / 1.063 GB, free: 0.5469 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.2574, allocations: 29.7 kB / 1.063 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.813e-05/0.2575, allocations: 88.14 kB / 1.063 GB, free: 432 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.774e-05/0.2575, allocations: 19.75 kB / 1.063 GB, free: 412 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.781e-05/0.2575, allocations: 21.7 kB / 1.063 GB, free: 384 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.277e-05/0.2576, allocations: 318.8 kB / 1.063 GB, free: 56 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.722e-05/0.2577, allocations: 31.97 kB / 1.063 GB, free: 24 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.647e-05/0.2578, allocations: 46.64 kB / 1.063 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001535/0.258, allocations: 94.69 kB / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.258, allocations: 0 / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002311/0.2582, allocations: 125.4 kB / 1.063 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.073e-05/0.2582, allocations: 4 kB / 1.063 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.2583, allocations: 4 kB / 1.064 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.935e-06/0.2583, allocations: 0 / 1.064 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.135e-05/0.2584, allocations: 15.92 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.2584, allocations: 4 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.873e-05/0.2584, allocations: 4 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.2585, allocations: 8 kB / 1.064 GB, free: 15.7 MB / 0.8262 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.759e-05/0.2585, allocations: 125.8 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.51e-05/0.2586, allocations: 11.89 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.149e-05/0.2586, allocations: 12.38 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.2586, allocations: 0 / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.2586, allocations: 0 / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.2586, allocations: 4 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004042/0.259, allocations: 390.3 kB / 1.064 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.259, allocations: 0 / 1.064 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.66e-05/0.2591, allocations: 4 kB / 1.064 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.2591, allocations: 0 / 1.064 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.2591, allocations: 7.984 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.2591, allocations: 3.938 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.2591, allocations: 0 / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000259/0.2594, allocations: 219.4 kB / 1.064 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.324e-05/0.2594, allocations: 85 kB / 1.064 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.006e-05/0.2594, allocations: 4 kB / 1.064 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.061e-05/0.2595, allocations: 7.938 kB / 1.064 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.047e-05/0.2596, allocations: 11.97 kB / 1.064 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-06/0.2596, allocations: 8 kB / 1.064 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.729e-05/0.2596, allocations: 91.92 kB / 1.064 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2596, allocations: 0 / 1.064 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002547/0.2599, allocations: 36 kB / 1.065 GB, free: 14.6 MB / 0.8262 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.0006461/0.2605, allocations: 0.8167 MB / 1.065 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002081/0.2608, allocations: 80 kB / 1.065 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.552e-06/0.2608, allocations: 0 / 1.065 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.683e-05/0.2609, allocations: 39.92 kB / 1.065 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002166/0.2611, allocations: 7.938 kB / 1.065 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001344/0.2624, allocations: 1.513 MB / 1.067 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002085/0.2627, allocations: 0.6926 MB / 1.068 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.121e-05/0.2627, allocations: 7.984 kB / 1.068 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.562e-05/0.2627, allocations: 19.44 kB / 1.068 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.2627, allocations: 0 / 1.068 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3054/0.5682, allocations: 2.33 MB / 1.07 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003053/0.5685, allocations: 266.3 kB / 1.07 GB, free: 8.781 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.693/2.262, allocations: 0 / 1.07 GB, free: 8.781 MB / 0.8262 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=50 --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