Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.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.Blinds.Validation.Haldi2008BlindsTOut,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.TOut|bli.occ|bli.pDown|bli.blindState",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut") translateModel(Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.TOut|bli.occ|bli.pDown|bli.blindState",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 101.7 kB / 16.35 MB, free: 6.289 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.001424/0.001424, allocations: 193.4 kB / 17.29 MB, free: 5.863 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.394/1.394, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.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.231/2.231, allocations: 390.3 MB / 0.6655 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 61.86 kB / 0.814 GB, free: 32.6 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2279/0.2292, allocations: 140.4 MB / 0.9511 GB, free: 8.074 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut): time 0.002612/0.2318, allocations: 1.493 MB / 0.9526 GB, free: 6.574 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001072/0.2329, allocations: 0.7206 MB / 0.9533 GB, free: 5.848 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.515e-05/0.233, allocations: 4 kB / 0.9533 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.029e-05/0.233, allocations: 7.922 kB / 0.9533 GB, free: 5.836 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.144e-05/0.2331, allocations: 11.86 kB / 0.9533 GB, free: 5.824 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004604/0.2335, allocations: 119.6 kB / 0.9534 GB, free: 5.707 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001021/0.2336, allocations: 79.72 kB / 0.9535 GB, free: 5.629 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.232e-05/0.2337, allocations: 4 kB / 0.9535 GB, free: 5.625 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 9.159e-05/0.2338, allocations: 31.91 kB / 0.9535 GB, free: 5.594 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.252e-05/0.2339, allocations: 39.83 kB / 0.9536 GB, free: 5.555 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.739e-05/0.2339, allocations: 4 kB / 0.9536 GB, free: 5.551 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001783/0.2341, allocations: 99.84 kB / 0.9537 GB, free: 5.453 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.501e-05/0.2341, allocations: 11.98 kB / 0.9537 GB, free: 5.441 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.915e-05/0.2342, allocations: 35.8 kB / 0.9537 GB, free: 5.406 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002214/0.2344, allocations: 139.6 kB / 0.9538 GB, free: 5.27 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2344, allocations: 0 / 0.9538 GB, free: 5.27 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.422e-06/0.2344, allocations: 0 / 0.9538 GB, free: 5.27 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.106e-06/0.2345, allocations: 0 / 0.9538 GB, free: 5.27 MB / 0.7325 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.0005967/0.2351, allocations: 438.6 kB / 0.9543 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.2351, allocations: 8.031 kB / 0.9543 GB, free: 4.773 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.719e-05/0.2351, allocations: 8.844 kB / 0.9543 GB, free: 4.766 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001129/0.2353, allocations: 180.2 kB / 0.9544 GB, free: 4.551 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.431e-05/0.2353, allocations: 16.36 kB / 0.9545 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.823e-05/0.2353, allocations: 4.375 kB / 0.9545 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001693/0.2355, allocations: 65.97 kB / 0.9545 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-06/0.2355, allocations: 0 / 0.9545 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.2355, allocations: 4 kB / 0.9545 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.2355, allocations: 0 / 0.9545 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001308/0.2357, allocations: 39.97 kB / 0.9546 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004203/0.2361, allocations: 304.6 kB / 0.9549 GB, free: 4.07 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001134/0.2362, allocations: 42.56 kB / 0.9549 GB, free: 4.02 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.216e-05/0.2363, allocations: 40.91 kB / 0.9549 GB, free: 3.977 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.845e-05/0.2363, allocations: 0 / 0.9549 GB, free: 3.977 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001718/0.2365, allocations: 83.38 kB / 0.955 GB, free: 3.883 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.2365, allocations: 3.938 kB / 0.955 GB, free: 3.879 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0003677/0.2369, allocations: 141.5 kB / 0.9552 GB, free: 3.734 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/0.2369, allocations: 55.41 kB / 0.9552 GB, free: 3.668 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.554e-05/0.237, allocations: 117.8 kB / 0.9553 GB, free: 3.543 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.832e-05/0.237, allocations: 33.69 kB / 0.9554 GB, free: 3.504 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.983e-05/0.2371, allocations: 88.14 kB / 0.9554 GB, free: 3.414 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.817e-05/0.2371, allocations: 19.75 kB / 0.9555 GB, free: 3.395 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.045e-05/0.2372, allocations: 25.7 kB / 0.9555 GB, free: 3.363 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001049/0.2373, allocations: 326.8 kB / 0.9558 GB, free: 3.035 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.571e-05/0.2374, allocations: 19.98 kB / 0.9558 GB, free: 3.016 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.24e-05/0.2374, allocations: 57.14 kB / 0.9559 GB, free: 2.941 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001467/0.2376, allocations: 97 kB / 0.956 GB, free: 2.828 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2376, allocations: 0 / 0.956 GB, free: 2.828 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002207/0.2378, allocations: 121.4 kB / 0.9561 GB, free: 2.703 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.2379, allocations: 4 kB / 0.9561 GB, free: 2.699 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.2379, allocations: 4 kB / 0.9561 GB, free: 2.695 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.063e-05/0.2379, allocations: 0 / 0.9561 GB, free: 2.695 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.998e-05/0.238, allocations: 15.98 kB / 0.9561 GB, free: 2.68 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.238, allocations: 0 / 0.9561 GB, free: 2.68 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.953e-05/0.238, allocations: 15.84 kB / 0.9561 GB, free: 2.664 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.136e-05/0.2381, allocations: 4 kB / 0.9561 GB, free: 2.66 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (bli.curSeed,$PRE.bli.curSeed,bli.blindState,$PRE.bli.blindState,bli.pDown,$PRE.bli.pDown,occ.y,bli.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.832e-05/0.2382, allocations: 133.4 kB / 0.9562 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.503e-05/0.2382, allocations: 3.984 kB / 0.9563 GB, free: 2.52 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.449e-05/0.2382, allocations: 12.38 kB / 0.9563 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.2382, allocations: 4 kB / 0.9563 GB, free: 2.5 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.2382, allocations: 0 / 0.9563 GB, free: 2.5 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.2382, allocations: 3.938 kB / 0.9563 GB, free: 2.496 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000436/0.2387, allocations: 386.3 kB / 0.9566 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.2387, allocations: 0 / 0.9566 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.912e-05/0.2387, allocations: 4 kB / 0.9566 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.2387, allocations: 3.984 kB / 0.9566 GB, free: 2.055 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.808e-06/0.2387, allocations: 0 / 0.9566 GB, free: 2.055 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.2388, allocations: 4 kB / 0.9566 GB, free: 2.051 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2388, allocations: 3.938 kB / 0.9567 GB, free: 2.047 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002759/0.239, allocations: 207.5 kB / 0.9569 GB, free: 1.828 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.507e-05/0.2391, allocations: 81.02 kB / 0.9569 GB, free: 1.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.77e-05/0.2391, allocations: 7.938 kB / 0.9569 GB, free: 1.723 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.474e-05/0.2392, allocations: 0 / 0.9569 GB, free: 1.723 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.929e-05/0.2392, allocations: 15.92 kB / 0.957 GB, free: 1.707 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.377e-06/0.2393, allocations: 7.938 kB / 0.957 GB, free: 1.699 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.287e-05/0.2393, allocations: 91.27 kB / 0.957 GB, free: 1.609 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2393, allocations: 0 / 0.957 GB, free: 1.609 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002723/0.2396, allocations: 39.98 kB / 0.9571 GB, free: 1.57 MB / 0.7325 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 (bli.sampleTrigger,$whenCondition1,occ.y,bli.blindState,bli.pDown,bli.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.0002745/0.2399, allocations: 159.3 kB / 0.9572 GB, free: 1.418 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002185/0.2401, allocations: 71.94 kB / 0.9573 GB, free: 1.348 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2401, allocations: 0 / 0.9573 GB, free: 1.348 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 9.474e-05/0.2402, allocations: 36.23 kB / 0.9573 GB, free: 1.312 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002431/0.2405, allocations: 12.08 kB / 0.9574 GB, free: 1.301 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003454/0.2408, allocations: 196.8 kB / 0.9575 GB, free: 1.078 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000219/0.2411, allocations: 0.6894 MB / 0.9582 GB, free: 372 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.115e-05/0.2411, allocations: 11.97 kB / 0.9582 GB, free: 360 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.158e-05/0.2411, allocations: 15.44 kB / 0.9582 GB, free: 344 kB / 0.7325 GB Notification: Performance of SimCode: time 2.4e-07/0.2411, allocations: 0 / 0.9582 GB, free: 344 kB / 0.7325 GB Notification: Performance of Templates: time 0.003669/0.2448, allocations: 1.438 MB / 0.9596 GB, free: 14.91 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.sim & ./Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTOut.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTOut.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,bli.TOut,bli.occ,bli.pDown,bli.blindState Variables in the result:TOut.amplitude,TOut.f,TOut.offset,TOut.phase,TOut.startTime,TOut.y,bli.A,bli.B,bli.TOut,bli.blindState,bli.occ,bli.pDown,bli.samplePeriod,bli.seed,bli.t0,occ.startTime,occ.startValue,occ.y,time