Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: translateModel(Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.TIn|bli.occ|bli.pDown|bli.blindState",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn") translateModel(Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.TIn|bli.occ|bli.pDown|bli.blindState",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001604/0.001604, allocations: 101.4 kB / 16.35 MB, free: 5.875 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.001865/0.001865, allocations: 198.8 kB / 17.3 MB, free: 5.516 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.342/1.342, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.461/2.461, allocations: 442.6 MB / 0.7165 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 68.27 kB / 0.8773 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2511, allocations: 153 MB / 1.027 GB, free: 2.031 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn): time 0.002458/0.2536, allocations: 1.489 MB / 1.028 GB, free: 0.5352 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001074/0.2547, allocations: 0.7321 MB / 1.029 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.407e-05/0.2548, allocations: 0 / 1.029 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.834e-05/0.2548, allocations: 3.938 kB / 1.029 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.94e-05/0.2549, allocations: 15.86 kB / 1.029 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004783/0.2554, allocations: 123.5 kB / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.99e-05/0.2555, allocations: 67.78 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.817e-05/0.2556, allocations: 11.98 kB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.549e-05/0.2556, allocations: 35.91 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.821e-05/0.2557, allocations: 35.84 kB / 1.029 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.555e-05/0.2557, allocations: 4 kB / 1.029 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001645/0.2559, allocations: 91.84 kB / 1.029 GB, free: 15.42 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.428e-05/0.2559, allocations: 23.92 kB / 1.029 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.166e-05/0.256, allocations: 27.86 kB / 1.029 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001956/0.2562, allocations: 135.6 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2562, allocations: 4 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.332e-06/0.2562, allocations: 0 / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.037e-06/0.2562, allocations: 0 / 1.029 GB, free: 15.23 MB / 0.8106 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.0005238/0.2567, allocations: 442.6 kB / 1.03 GB, free: 14.74 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.2568, allocations: 8.031 kB / 1.03 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.803e-05/0.2568, allocations: 8.844 kB / 1.03 GB, free: 14.72 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.872e-05/0.2569, allocations: 184.2 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.423e-05/0.257, allocations: 8.359 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.675e-05/0.257, allocations: 8.375 kB / 1.03 GB, free: 14.49 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00017/0.2571, allocations: 69.77 kB / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.2572, allocations: 0 / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.2572, allocations: 0 / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.2572, allocations: 4 kB / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001302/0.2573, allocations: 39.91 kB / 1.03 GB, free: 14.37 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004195/0.2578, allocations: 296.8 kB / 1.03 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001155/0.2579, allocations: 42.56 kB / 1.031 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.44e-05/0.258, allocations: 40.95 kB / 1.031 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.808e-05/0.258, allocations: 0 / 1.031 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001594/0.2582, allocations: 87.38 kB / 1.031 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.372e-06/0.2582, allocations: 0 / 1.031 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003701/0.2585, allocations: 137.5 kB / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.942e-05/0.2586, allocations: 55.41 kB / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.877e-05/0.2587, allocations: 117.8 kB / 1.031 GB, free: 13.51 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.697e-05/0.2587, allocations: 33.7 kB / 1.031 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.338e-05/0.2588, allocations: 92.05 kB / 1.031 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.919e-05/0.2588, allocations: 19.83 kB / 1.031 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.976e-05/0.2588, allocations: 21.72 kB / 1.031 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.637e-05/0.2589, allocations: 326.8 kB / 1.031 GB, free: 13 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.141e-05/0.259, allocations: 19.98 kB / 1.031 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.656e-05/0.2591, allocations: 69.08 kB / 1.031 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001466/0.2592, allocations: 93 kB / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2593, allocations: 0 / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002114/0.2595, allocations: 121.4 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.135e-05/0.2595, allocations: 4 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.2595, allocations: 4 kB / 1.032 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.096e-05/0.2595, allocations: 0 / 1.032 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.234e-05/0.2596, allocations: 11.98 kB / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.2596, allocations: 7.938 kB / 1.032 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.219e-05/0.2597, allocations: 12.06 kB / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.185e-05/0.2597, allocations: 8 kB / 1.032 GB, free: 12.61 MB / 0.8106 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.219e-05/0.2598, allocations: 132 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.791e-05/0.2598, allocations: 7.906 kB / 1.032 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.365e-05/0.2599, allocations: 12.38 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.2599, allocations: 0 / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.2599, allocations: 0 / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.2599, allocations: 0 / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004104/0.2603, allocations: 382.4 kB / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.2603, allocations: 0 / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.242e-05/0.2603, allocations: 7.984 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.2604, allocations: 0 / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.2604, allocations: 0 / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.2604, allocations: 3.938 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2604, allocations: 0 / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002587/0.2606, allocations: 219.3 kB / 1.032 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.345e-05/0.2607, allocations: 81.14 kB / 1.033 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.663e-05/0.2607, allocations: 0 / 1.033 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.28e-05/0.2608, allocations: 11.92 kB / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.301e-05/0.2609, allocations: 7.984 kB / 1.033 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.048e-05/0.2609, allocations: 4 kB / 1.033 GB, free: 11.66 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.9e-05/0.2609, allocations: 99.86 kB / 1.033 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2609, allocations: 3.938 kB / 1.033 GB, free: 11.56 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002866/0.2612, allocations: 43.89 kB / 1.033 GB, free: 11.52 MB / 0.8106 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.0002751/0.2615, allocations: 155.4 kB / 1.033 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002184/0.2617, allocations: 75.89 kB / 1.033 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2617, allocations: 320 / 1.033 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.916e-05/0.2618, allocations: 43.91 kB / 1.033 GB, free: 11.26 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002719/0.2621, allocations: 5.375 kB / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004111/0.2625, allocations: 181.6 kB / 1.033 GB, free: 11.04 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002655/0.2628, allocations: 0.6885 MB / 1.034 GB, free: 10.33 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.605e-05/0.2629, allocations: 4 kB / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.284e-05/0.2629, allocations: 11.44 kB / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of SimCode: time 2.91e-07/0.2629, allocations: 0 / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of Templates: time 0.003853/0.2668, allocations: 1.449 MB / 1.035 GB, free: 8.871 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.sim & ./Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTIn.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,bli.TIn,bli.occ,bli.pDown,bli.blindState Variables in the result:TIn.amplitude,TIn.f,TIn.offset,TIn.phase,TIn.startTime,TIn.y,bli.A,bli.B,bli.TIn,bli.blindState,bli.occ,bli.pDown,bli.samplePeriod,bli.seed,bli.t0,occ.startTime,occ.startValue,occ.y,time