Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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.Zhang2012WindowsNorth,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth",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.004147/0.004147, allocations: 99.11 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.001168/0.001168, allocations: 195.3 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.317/1.317, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.594/2.594, allocations: 482.6 MB / 0.755 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001694/0.001694, allocations: 63.89 kB / 1.083 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.2618, allocations: 162.3 MB / 1.242 GB, free: 9.844 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.002353/0.2642, allocations: 1.489 MB / 1.243 GB, free: 8.34 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001187/0.2654, allocations: 0.74 MB / 1.244 GB, free: 7.594 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.493e-05/0.2655, allocations: 0 / 1.244 GB, free: 7.594 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.83e-05/0.2655, allocations: 3.938 kB / 1.244 GB, free: 7.59 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.19e-05/0.2656, allocations: 15.86 kB / 1.244 GB, free: 7.574 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004986/0.2661, allocations: 115.6 kB / 1.244 GB, free: 7.461 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001062/0.2662, allocations: 75.77 kB / 1.244 GB, free: 7.387 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.034e-05/0.2663, allocations: 23.95 kB / 1.244 GB, free: 7.363 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.367e-05/0.2664, allocations: 31.92 kB / 1.244 GB, free: 7.332 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.478e-05/0.2664, allocations: 39.83 kB / 1.244 GB, free: 7.293 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.751e-05/0.2665, allocations: 4 kB / 1.244 GB, free: 7.289 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001818/0.2666, allocations: 99.84 kB / 1.244 GB, free: 7.191 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.605e-05/0.2667, allocations: 19.92 kB / 1.244 GB, free: 7.172 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.736e-05/0.2667, allocations: 27.86 kB / 1.244 GB, free: 7.145 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002151/0.267, allocations: 139.5 kB / 1.245 GB, free: 7.008 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.267, allocations: 3.984 kB / 1.245 GB, free: 7.004 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.152e-06/0.267, allocations: 4 kB / 1.245 GB, free: 7 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.519e-06/0.267, allocations: 0 / 1.245 GB, free: 7 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.0005647/0.2676, allocations: 420.7 kB / 1.245 GB, free: 6.535 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.2676, allocations: 8.031 kB / 1.245 GB, free: 6.527 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.546e-05/0.2676, allocations: 46.73 kB / 1.245 GB, free: 6.473 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.306e-05/0.2677, allocations: 8.891 kB / 1.245 GB, free: 6.465 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001201/0.2678, allocations: 180.2 kB / 1.245 GB, free: 6.25 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.608e-05/0.2678, allocations: 384 / 1.245 GB, free: 6.25 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.683e-05/0.2678, allocations: 8.375 kB / 1.245 GB, free: 6.242 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001651/0.268, allocations: 73.78 kB / 1.245 GB, free: 6.164 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-06/0.268, allocations: 0 / 1.245 GB, free: 6.164 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.268, allocations: 0 / 1.245 GB, free: 6.164 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.268, allocations: 0 / 1.245 GB, free: 6.164 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001219/0.2682, allocations: 35.97 kB / 1.245 GB, free: 6.129 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005228/0.2687, allocations: 324.7 kB / 1.246 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001166/0.2688, allocations: 46.55 kB / 1.246 GB, free: 5.707 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.039e-05/0.2689, allocations: 32.97 kB / 1.246 GB, free: 5.672 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.592e-05/0.2689, allocations: 0 / 1.246 GB, free: 5.672 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001712/0.2691, allocations: 87.44 kB / 1.246 GB, free: 5.574 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.203e-06/0.2691, allocations: 0 / 1.246 GB, free: 5.574 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0003561/0.2695, allocations: 133.5 kB / 1.246 GB, free: 5.438 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.873e-05/0.2695, allocations: 55.41 kB / 1.246 GB, free: 5.371 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.38e-05/0.2696, allocations: 129.8 kB / 1.246 GB, free: 5.234 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.2697, allocations: 25.7 kB / 1.246 GB, free: 5.203 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.05e-05/0.2697, allocations: 92.09 kB / 1.246 GB, free: 5.109 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.752e-05/0.2697, allocations: 15.89 kB / 1.246 GB, free: 5.094 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.62e-05/0.2698, allocations: 29.72 kB / 1.246 GB, free: 5.059 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000121/0.2699, allocations: 326.8 kB / 1.247 GB, free: 4.73 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.621e-05/0.27, allocations: 23.98 kB / 1.247 GB, free: 4.707 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.697e-05/0.2701, allocations: 46.55 kB / 1.247 GB, free: 4.652 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001598/0.2703, allocations: 86.41 kB / 1.247 GB, free: 4.559 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2703, allocations: 0 / 1.247 GB, free: 4.559 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002282/0.2705, allocations: 113.9 kB / 1.247 GB, free: 4.441 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/0.2705, allocations: 5.406 kB / 1.247 GB, free: 4.438 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.2705, allocations: 0 / 1.247 GB, free: 4.438 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.2705, allocations: 7.984 kB / 1.247 GB, free: 4.43 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.914e-05/0.2706, allocations: 8 kB / 1.247 GB, free: 4.422 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.2706, allocations: 8.078 kB / 1.247 GB, free: 4.414 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.213e-05/0.2707, allocations: 15.92 kB / 1.247 GB, free: 4.398 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.343e-05/0.2707, allocations: 7.984 kB / 1.247 GB, free: 4.391 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.554e-05/0.2708, allocations: 117.8 kB / 1.247 GB, free: 4.266 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.55e-05/0.2708, allocations: 7.953 kB / 1.247 GB, free: 4.258 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.078e-05/0.2709, allocations: 8.375 kB / 1.247 GB, free: 4.25 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.2709, allocations: 7.984 kB / 1.247 GB, free: 4.242 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.2709, allocations: 0 / 1.247 GB, free: 4.242 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.2709, allocations: 4 kB / 1.247 GB, free: 4.238 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004233/0.2713, allocations: 378.4 kB / 1.247 GB, free: 3.812 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2713, allocations: 0 / 1.247 GB, free: 3.812 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.696e-05/0.2714, allocations: 4 kB / 1.247 GB, free: 3.809 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.2714, allocations: 0 / 1.247 GB, free: 3.809 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.607e-06/0.2714, allocations: 0 / 1.247 GB, free: 3.809 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.14e-06/0.2714, allocations: 7.938 kB / 1.247 GB, free: 3.801 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.2714, allocations: 3.984 kB / 1.247 GB, free: 3.797 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002634/0.2717, allocations: 211.5 kB / 1.248 GB, free: 3.574 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.766e-05/0.2717, allocations: 85.06 kB / 1.248 GB, free: 3.473 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.608e-05/0.2717, allocations: 3.938 kB / 1.248 GB, free: 3.469 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.221e-05/0.2718, allocations: 7.922 kB / 1.248 GB, free: 3.461 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.207e-05/0.2719, allocations: 8 kB / 1.248 GB, free: 3.453 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.097e-05/0.2719, allocations: 7.984 kB / 1.248 GB, free: 3.445 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.359e-05/0.2719, allocations: 91.94 kB / 1.248 GB, free: 3.355 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.272, allocations: 3.938 kB / 1.248 GB, free: 3.352 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002568/0.2722, allocations: 43.86 kB / 1.248 GB, free: 3.309 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.0007413/0.273, allocations: 0.8041 MB / 1.249 GB, free: 2.496 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002146/0.2732, allocations: 71.89 kB / 1.249 GB, free: 2.426 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.492e-06/0.2732, allocations: 4 kB / 1.249 GB, free: 2.422 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 9.313e-05/0.2733, allocations: 39.91 kB / 1.249 GB, free: 2.383 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002224/0.2735, allocations: 7.938 kB / 1.249 GB, free: 2.375 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00146/0.275, allocations: 1.496 MB / 1.25 GB, free: 0.7812 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002556/0.2753, allocations: 0.6905 MB / 1.251 GB, free: 68 kB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.433e-05/0.2753, allocations: 11.98 kB / 1.251 GB, free: 56 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.145e-05/0.2753, allocations: 19.42 kB / 1.251 GB, free: 36 kB / 0.9981 GB Notification: Performance of SimCode: time 3e-07/0.2754, allocations: 0 / 1.251 GB, free: 36 kB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.727/6.003, allocations: 2.65 MB / 1.254 GB, free: 14.27 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.25/16.26, allocations: 4.5 kB / 1.254 GB, free: 14.27 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth_fmu --startTime=0 --stopTime=3600 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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