Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.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.Haldi2008WindowsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TIn|win.occ|win.p|win.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn") translateModel(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TIn|win.occ|win.p|win.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 101.7 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.001377/0.001377, allocations: 177.3 kB / 15.94 MB, free: 220 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.416/1.416, allocations: 223.2 MB / 239.9 MB, free: 5.469 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.496/2.496, allocations: 390.3 MB / 0.6653 GB, free: 2.953 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005688/0.000569, allocations: 8 kB / 0.8145 GB, free: 14.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8277/0.8283, allocations: 142.3 MB / 0.9535 GB, free: 8.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn): time 0.001431/0.8298, allocations: 1.194 MB / 0.9547 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009561/0.8307, allocations: 0.6752 MB / 0.9553 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.621e-05/0.8308, allocations: 0 / 0.9553 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.44e-05/0.8308, allocations: 0 / 0.9553 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.948e-05/0.8309, allocations: 18.91 kB / 0.9554 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004643/0.8313, allocations: 94.38 kB / 0.9554 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.476e-05/0.8314, allocations: 46.78 kB / 0.9555 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.232e-05/0.8315, allocations: 9.531 kB / 0.9555 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.693e-05/0.8316, allocations: 36.33 kB / 0.9555 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.995e-05/0.8317, allocations: 28.44 kB / 0.9556 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.445e-05/0.8317, allocations: 3.25 kB / 0.9556 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001451/0.8319, allocations: 74.7 kB / 0.9556 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.931e-05/0.8319, allocations: 14.14 kB / 0.9556 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.3e-05/0.8319, allocations: 34.98 kB / 0.9557 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000142/0.8321, allocations: 107.2 kB / 0.9558 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.8321, allocations: 1.156 kB / 0.9558 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.764e-06/0.8321, allocations: 0 / 0.9558 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.538e-06/0.8321, allocations: 0 / 0.9558 GB, free: 6.336 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.0005048/0.8326, allocations: 411.2 kB / 0.9562 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.8327, allocations: 8.469 kB / 0.9562 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.021e-05/0.8327, allocations: 15.48 kB / 0.9562 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.731e-05/0.8328, allocations: 162.9 kB / 0.9564 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.705e-05/0.8328, allocations: 7.031 kB / 0.9564 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.651e-05/0.8329, allocations: 7.984 kB / 0.9564 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001661/0.833, allocations: 66 kB / 0.9564 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.833, allocations: 3.984 kB / 0.9564 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.8331, allocations: 5.281 kB / 0.9564 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.8331, allocations: 0.9375 kB / 0.9564 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001272/0.8332, allocations: 49.81 kB / 0.9565 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005603/0.8338, allocations: 319.4 kB / 0.9568 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001185/0.8339, allocations: 55.25 kB / 0.9568 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.904e-05/0.8339, allocations: 1.094 kB / 0.9568 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001777/0.8341, allocations: 84.02 kB / 0.9569 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.753e-06/0.8341, allocations: 0 / 0.9569 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003911/0.8345, allocations: 152.4 kB / 0.9571 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.516e-05/0.8346, allocations: 56.88 kB / 0.9571 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.497e-05/0.8346, allocations: 125.5 kB / 0.9572 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.34e-05/0.8347, allocations: 29.7 kB / 0.9573 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.624e-05/0.8347, allocations: 91.27 kB / 0.9574 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.742e-05/0.8347, allocations: 22.42 kB / 0.9574 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.833e-06/0.8347, allocations: 1.344 kB / 0.9574 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.37e-05/0.8348, allocations: 316.3 kB / 0.9577 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.94e-05/0.8349, allocations: 29.53 kB / 0.9577 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.241e-05/0.835, allocations: 63.23 kB / 0.9578 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.251e-05/0.8351, allocations: 35.2 kB / 0.9578 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.8351, allocations: 0 / 0.9578 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000231/0.8353, allocations: 119.2 kB / 0.9579 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.8353, allocations: 9.5 kB / 0.9579 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.8353, allocations: 3.969 kB / 0.9579 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.8354, allocations: 3.953 kB / 0.9579 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.883e-05/0.8355, allocations: 15.39 kB / 0.9579 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.8355, allocations: 3.156 kB / 0.958 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.913e-05/0.8356, allocations: 12.23 kB / 0.958 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.56e-05/0.8356, allocations: 3.875 kB / 0.958 GB, free: 4.262 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.win.curSeed,win.curSeed,occ.y,$PRE.win.on,win.on,$PRE.win.p,win.p,$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 7.529e-05/0.8357, allocations: 123.2 kB / 0.9581 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.387e-05/0.8357, allocations: 6.812 kB / 0.9581 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.62e-05/0.8357, allocations: 9.844 kB / 0.9581 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.8357, allocations: 5.391 kB / 0.9581 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.8357, allocations: 0 / 0.9581 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.8357, allocations: 3.984 kB / 0.9581 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003583/0.8361, allocations: 392 kB / 0.9585 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.8361, allocations: 0 / 0.9585 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.859e-05/0.8362, allocations: 5.625 kB / 0.9585 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.125e-06/0.8362, allocations: 4.016 kB / 0.9585 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.8362, allocations: 5.281 kB / 0.9585 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.8362, allocations: 0 / 0.9585 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.8362, allocations: 1.344 kB / 0.9585 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002402/0.8364, allocations: 218.3 kB / 0.9587 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.182e-05/0.8365, allocations: 83.33 kB / 0.9588 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.072e-05/0.8365, allocations: 5.141 kB / 0.9588 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.978e-05/0.8366, allocations: 7.297 kB / 0.9588 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.066e-05/0.8366, allocations: 2.953 kB / 0.9588 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.155e-05/0.8367, allocations: 10.56 kB / 0.9588 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.561e-05/0.8367, allocations: 100.4 kB / 0.9589 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8367, allocations: 0 / 0.9589 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003157/0.837, allocations: 43.58 kB / 0.9589 GB, free: 3.336 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,occ.y,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.0003178/0.8373, allocations: 153 kB / 0.9591 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002364/0.8376, allocations: 82.92 kB / 0.9592 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.8376, allocations: 0 / 0.9592 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000112/0.8377, allocations: 39.52 kB / 0.9592 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001721/0.8379, allocations: 2.031 kB / 0.9592 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003344/0.8382, allocations: 197.6 kB / 0.9594 GB, free: 3 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001072/0.8384, allocations: 0.6949 MB / 0.9601 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.611e-05/0.8384, allocations: 3.375 kB / 0.9601 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.431e-05/0.8384, allocations: 13.34 kB / 0.9601 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.8384, allocations: 5.969 kB / 0.9601 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of Templates: time 0.003707/0.8421, allocations: 1.342 MB / 0.9614 GB, free: 1.578 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTIn.csv","../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,win.TIn,win.occ,win.p,win.on Variables in the result:TIn.amplitude,TIn.f,TIn.offset,TIn.phase,TIn.startTime,occ.startTime,occ.startValue,occ.y,time,win.A,win.B,win.TIn,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0