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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001448/0.001448, allocations: 99.16 kB / 15.05 MB, free: 1.105 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.001612/0.001612, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 223.2 MB / 239.9 MB, free: 5.234 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.43/2.43, allocations: 390.3 MB / 0.6653 GB, free: 2.922 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003832/0.0003832, allocations: 8 kB / 0.8145 GB, free: 14.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8634/0.8638, allocations: 142.3 MB / 0.9535 GB, free: 8.066 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth): time 0.002248/0.8661, allocations: 1.19 MB / 0.9547 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00125/0.8674, allocations: 0.6752 MB / 0.9553 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.413e-05/0.8674, allocations: 1.062 kB / 0.9553 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.953e-05/0.8675, allocations: 3.938 kB / 0.9553 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.832e-05/0.8675, allocations: 14.3 kB / 0.9553 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000522/0.8681, allocations: 94.33 kB / 0.9554 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.932e-05/0.8682, allocations: 43.28 kB / 0.9555 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.453e-05/0.8683, allocations: 4.188 kB / 0.9555 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.754e-05/0.8683, allocations: 37.31 kB / 0.9555 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.034e-05/0.8684, allocations: 39.8 kB / 0.9556 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.511e-05/0.8684, allocations: 3.094 kB / 0.9556 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001563/0.8686, allocations: 62.25 kB / 0.9556 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.11e-05/0.8686, allocations: 14.7 kB / 0.9556 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.664e-05/0.8687, allocations: 38.97 kB / 0.9557 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001624/0.8688, allocations: 95.86 kB / 0.9558 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.8689, allocations: 0 / 0.9558 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.114e-06/0.8689, allocations: 0 / 0.9558 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.077e-06/0.8689, allocations: 1.25 kB / 0.9558 GB, free: 6.312 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.0005785/0.8695, allocations: 417.1 kB / 0.9562 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.8695, allocations: 8.594 kB / 0.9562 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.381e-05/0.8696, allocations: 15.89 kB / 0.9562 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.124e-05/0.8697, allocations: 170.5 kB / 0.9563 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.068e-05/0.8697, allocations: 2.625 kB / 0.9563 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.239e-05/0.8697, allocations: 7.719 kB / 0.9564 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000176/0.8699, allocations: 69.88 kB / 0.9564 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.246e-06/0.8699, allocations: 5.312 kB / 0.9564 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.8699, allocations: 0 / 0.9564 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.87, allocations: 1.406 kB / 0.9564 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001362/0.8701, allocations: 50.38 kB / 0.9565 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005663/0.8707, allocations: 324.6 kB / 0.9568 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000119/0.8708, allocations: 52.36 kB / 0.9568 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.261e-05/0.8708, allocations: 0 / 0.9568 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001895/0.871, allocations: 83.62 kB / 0.9569 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.871, allocations: 1.438 kB / 0.9569 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003888/0.8714, allocations: 155.9 kB / 0.9571 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.974e-05/0.8715, allocations: 60.59 kB / 0.9571 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.126e-05/0.8715, allocations: 121.2 kB / 0.9572 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.416e-05/0.8716, allocations: 27.2 kB / 0.9573 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.043e-05/0.8716, allocations: 91.48 kB / 0.9574 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.496e-05/0.8716, allocations: 14.47 kB / 0.9574 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.881e-06/0.8716, allocations: 0 / 0.9574 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.757e-05/0.8717, allocations: 321.3 kB / 0.9577 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.506e-05/0.8718, allocations: 31.86 kB / 0.9577 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001057/0.8719, allocations: 57.97 kB / 0.9578 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.396e-05/0.872, allocations: 36.23 kB / 0.9578 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.872, allocations: 0 / 0.9578 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000219/0.8722, allocations: 117.9 kB / 0.9579 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.8723, allocations: 6 kB / 0.9579 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.8723, allocations: 3.984 kB / 0.9579 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.8723, allocations: 5.984 kB / 0.9579 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.508e-05/0.8724, allocations: 9.094 kB / 0.9579 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.8724, allocations: 1.062 kB / 0.9579 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.623e-05/0.8725, allocations: 21.92 kB / 0.958 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.646e-05/0.8725, allocations: 3.594 kB / 0.958 GB, free: 4.234 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,$PRE.win.on,win.on,$PRE.win.p,win.p,$PRE.win.curSeed,win.curSeed,$whenCondition1,win.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.535e-05/0.8726, allocations: 118.2 kB / 0.9581 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.426e-05/0.8726, allocations: 7.156 kB / 0.9581 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.818e-05/0.8726, allocations: 13.39 kB / 0.9581 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.8726, allocations: 4.984 kB / 0.9581 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.8726, allocations: 1.094 kB / 0.9581 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.8726, allocations: 0 / 0.9581 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003715/0.873, allocations: 384.6 kB / 0.9585 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.873, allocations: 0 / 0.9585 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.82e-05/0.8731, allocations: 5.219 kB / 0.9585 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.8731, allocations: 3.953 kB / 0.9585 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.8731, allocations: 5.125 kB / 0.9585 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.574e-06/0.8731, allocations: 3.984 kB / 0.9585 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.8731, allocations: 5.25 kB / 0.9585 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000253/0.8734, allocations: 213.9 kB / 0.9587 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.643e-05/0.8734, allocations: 83.17 kB / 0.9588 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.05e-05/0.8734, allocations: 4.984 kB / 0.9588 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.947e-05/0.8735, allocations: 12.33 kB / 0.9588 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.113e-05/0.8736, allocations: 11.28 kB / 0.9588 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.091e-05/0.8736, allocations: 6.172 kB / 0.9588 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.542e-05/0.8736, allocations: 99.64 kB / 0.9589 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8737, allocations: 1.219 kB / 0.9589 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003147/0.874, allocations: 36.38 kB / 0.9589 GB, free: 3.316 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003537/0.8743, allocations: 158.1 kB / 0.9591 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002382/0.8746, allocations: 78.44 kB / 0.9592 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.8746, allocations: 0 / 0.9592 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.759e-05/0.8747, allocations: 38.89 kB / 0.9592 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001854/0.8749, allocations: 11.16 kB / 0.9592 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00037/0.8753, allocations: 193.2 kB / 0.9594 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001412/0.8754, allocations: 0.6968 MB / 0.9601 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.817e-05/0.8755, allocations: 11.67 kB / 0.9601 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.566e-05/0.8755, allocations: 11.22 kB / 0.9601 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of SimCode: time 5.11e-07/0.8755, allocations: 0 / 0.9601 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of Templates: time 0.004175/0.8797, allocations: 1.328 MB / 0.9614 GB, free: 1.562 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.makefile (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 & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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","../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,occ.startTime,occ.startValue,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0