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: "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth,fileNamePrefix="Buildings_10_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.006243/0.006243, allocations: 94.31 kB / 15.73 MB, free: 6.051 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.00172/0.00172, allocations: 203.2 kB / 16.68 MB, free: 5.973 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.28/1.28, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.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.378/2.378, allocations: 437.1 MB / 0.7106 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001827/0.001827, allocations: 59.91 kB / 1.018 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2646, allocations: 151.6 MB / 1.166 GB, free: 7.398 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth): time 0.0026/0.2672, allocations: 1.501 MB / 1.168 GB, free: 5.875 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001219/0.2685, allocations: 0.7284 MB / 1.168 GB, free: 5.141 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.728e-05/0.2685, allocations: 4 kB / 1.168 GB, free: 5.137 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.558e-05/0.2685, allocations: 3.938 kB / 1.168 GB, free: 5.133 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.282e-05/0.2686, allocations: 15.84 kB / 1.168 GB, free: 5.117 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004935/0.2691, allocations: 115.6 kB / 1.168 GB, free: 5.004 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001123/0.2692, allocations: 75.75 kB / 1.169 GB, free: 4.93 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 8.182e-05/0.2693, allocations: 19.98 kB / 1.169 GB, free: 4.91 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.213e-05/0.2694, allocations: 35.86 kB / 1.169 GB, free: 4.875 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.518e-05/0.2695, allocations: 35.89 kB / 1.169 GB, free: 4.84 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.852e-05/0.2695, allocations: 11.94 kB / 1.169 GB, free: 4.828 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001865/0.2697, allocations: 87.91 kB / 1.169 GB, free: 4.742 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.519e-05/0.2697, allocations: 15.98 kB / 1.169 GB, free: 4.727 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.813e-05/0.2698, allocations: 35.84 kB / 1.169 GB, free: 4.691 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002266/0.27, allocations: 147.8 kB / 1.169 GB, free: 4.547 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.27, allocations: 3.984 kB / 1.169 GB, free: 4.543 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.775e-06/0.27, allocations: 4 kB / 1.169 GB, free: 4.539 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.278e-06/0.27, allocations: 3.938 kB / 1.169 GB, free: 4.535 MB / 0.92 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.0005993/0.2706, allocations: 420.7 kB / 1.169 GB, free: 4.07 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.173e-05/0.2707, allocations: 8.031 kB / 1.169 GB, free: 4.062 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.648e-05/0.2707, allocations: 34.75 kB / 1.169 GB, free: 4.02 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.341e-05/0.2708, allocations: 12.88 kB / 1.169 GB, free: 4.008 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001302/0.2709, allocations: 172.3 kB / 1.17 GB, free: 3.801 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.157e-05/0.2709, allocations: 4.375 kB / 1.17 GB, free: 3.797 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.589e-05/0.271, allocations: 8.375 kB / 1.17 GB, free: 3.789 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001697/0.2711, allocations: 73.72 kB / 1.17 GB, free: 3.711 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.2711, allocations: 0 / 1.17 GB, free: 3.711 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.2712, allocations: 4 kB / 1.17 GB, free: 3.707 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.2712, allocations: 0 / 1.17 GB, free: 3.707 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000125/0.2713, allocations: 35.97 kB / 1.17 GB, free: 3.672 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005615/0.2719, allocations: 316.8 kB / 1.17 GB, free: 3.312 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001254/0.272, allocations: 54.48 kB / 1.17 GB, free: 3.25 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.306e-05/0.2721, allocations: 32.97 kB / 1.17 GB, free: 3.215 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.628e-05/0.2721, allocations: 4 kB / 1.17 GB, free: 3.211 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001892/0.2723, allocations: 79.38 kB / 1.17 GB, free: 3.121 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.2723, allocations: 0 / 1.17 GB, free: 3.121 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0003776/0.2727, allocations: 133.6 kB / 1.17 GB, free: 2.984 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.313e-05/0.2728, allocations: 59.34 kB / 1.17 GB, free: 2.914 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.988e-05/0.2729, allocations: 125.8 kB / 1.17 GB, free: 2.781 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.2729, allocations: 25.7 kB / 1.17 GB, free: 2.75 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.473e-05/0.2729, allocations: 100.1 kB / 1.171 GB, free: 2.648 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.391e-05/0.273, allocations: 27.77 kB / 1.171 GB, free: 2.621 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.906e-05/0.273, allocations: 29.72 kB / 1.171 GB, free: 2.586 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.2732, allocations: 322.8 kB / 1.171 GB, free: 2.262 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.033e-05/0.2733, allocations: 23.98 kB / 1.171 GB, free: 2.238 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000104/0.2734, allocations: 50.55 kB / 1.171 GB, free: 2.18 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001567/0.2735, allocations: 70.5 kB / 1.171 GB, free: 2.102 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.2735, allocations: 3.984 kB / 1.171 GB, free: 2.098 MB / 0.92 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002412/0.2738, allocations: 109.6 kB / 1.171 GB, free: 1.984 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.2738, allocations: 8 kB / 1.171 GB, free: 1.977 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.2738, allocations: 0 / 1.171 GB, free: 1.977 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.2738, allocations: 3.984 kB / 1.171 GB, free: 1.973 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.59e-05/0.2739, allocations: 11.98 kB / 1.171 GB, free: 1.961 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.2739, allocations: 8.062 kB / 1.171 GB, free: 1.953 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.283e-05/0.274, allocations: 11.98 kB / 1.171 GB, free: 1.941 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.084e-05/0.274, allocations: 0 / 1.171 GB, free: 1.941 MB / 0.92 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 9.367e-05/0.2741, allocations: 125.7 kB / 1.171 GB, free: 1.809 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.509e-05/0.2741, allocations: 3.953 kB / 1.171 GB, free: 1.805 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.528e-05/0.2742, allocations: 12.38 kB / 1.171 GB, free: 1.793 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.2742, allocations: 3.984 kB / 1.171 GB, free: 1.789 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.2742, allocations: 0 / 1.171 GB, free: 1.789 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.2742, allocations: 4 kB / 1.171 GB, free: 1.785 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004576/0.2747, allocations: 378.4 kB / 1.172 GB, free: 1.359 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2747, allocations: 0 / 1.172 GB, free: 1.359 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.767e-05/0.2747, allocations: 7.938 kB / 1.172 GB, free: 1.352 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.2747, allocations: 4 kB / 1.172 GB, free: 1.348 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.608e-05/0.2748, allocations: 8 kB / 1.172 GB, free: 1.34 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.2748, allocations: 7.875 kB / 1.172 GB, free: 1.332 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.2748, allocations: 4.453 kB / 1.172 GB, free: 1.328 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002844/0.2751, allocations: 207.5 kB / 1.172 GB, free: 1.109 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.966e-05/0.2751, allocations: 85 kB / 1.172 GB, free: 1.008 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.617e-05/0.2751, allocations: 0 / 1.172 GB, free: 1.008 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.027e-05/0.2752, allocations: 15.92 kB / 1.172 GB, free: 0.9922 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.127e-05/0.2753, allocations: 4 kB / 1.172 GB, free: 0.9883 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.639e-06/0.2753, allocations: 3.984 kB / 1.172 GB, free: 0.9844 MB / 0.92 GB Notification: Performance of sorting global known variables: time 5.942e-05/0.2753, allocations: 95.28 kB / 1.172 GB, free: 0.8906 MB / 0.92 GB Notification: Performance of sort global known variables: time 1e-07/0.2754, allocations: 0 / 1.172 GB, free: 0.8906 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002768/0.2756, allocations: 39.92 kB / 1.172 GB, free: 0.8516 MB / 0.92 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.0008098/0.2764, allocations: 0.808 MB / 1.173 GB, free: 36 kB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002393/0.2767, allocations: 67.91 kB / 1.173 GB, free: 15.97 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.2767, allocations: 0 / 1.173 GB, free: 15.97 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 9.979e-05/0.2768, allocations: 35.97 kB / 1.173 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002338/0.2771, allocations: 13.81 kB / 1.173 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001592/0.2787, allocations: 1.488 MB / 1.175 GB, free: 14.34 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002952/0.279, allocations: 0.6885 MB / 1.175 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.578e-05/0.279, allocations: 8 kB / 1.175 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.638e-05/0.2791, allocations: 23.42 kB / 1.175 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of SimCode: time 2.2e-07/0.2791, allocations: 0 / 1.175 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.011/1.29, allocations: 2.65 MB / 1.178 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.14/17.43, allocations: 6 kB / 1.178 GB, free: 11.09 MB / 0.9356 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat --tempDir=temp_Buildings_10_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth_fmu --startTime=0 --stopTime=3600 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.fmu > 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/jenkins1/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,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