Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Blinds.Validation.Zhang2012BlindsSolarAltitude,fileNamePrefix="Buildings_8_Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarAltitude",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude,fileNamePrefix="Buildings_8_Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarAltitude",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.0009995/0.0009996, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001722/0.001721, allocations: 194.2 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.266/1.266, allocations: 205.1 MB / 222.4 MB, free: 4.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.558/1.558, allocations: 292.3 MB / 0.5489 GB, free: 12.83 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 72.94 kB / 0.6716 GB, free: 26.15 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2396/0.241, allocations: 114.5 MB / 0.7835 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude): time 0.002688/0.2437, allocations: 1.51 MB / 0.7849 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001257/0.245, allocations: 0.7886 MB / 0.7857 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.886e-05/0.2451, allocations: 0 / 0.7857 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.577e-05/0.2451, allocations: 7.938 kB / 0.7857 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.829e-05/0.2452, allocations: 19.8 kB / 0.7857 GB, free: 11.05 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Random.mo:127:7-213:23:writable] Warning: Pure function 'Modelica.Math.Random.Generators.Xorshift64star.initialState' contains a call to impure function 'Modelica.Math.Random.Generators.Xorshift64star.random'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Random.mo:851:5-931:39:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initialStateWithXorshift64star' contains a call to impure function 'Modelica.Math.Random.Generators.Xorshift64star.initialState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Random.mo:499:7-563:23:writable] Warning: Pure function 'Modelica.Math.Random.Generators.Xorshift1024star.initialState' contains a call to impure function 'Modelica.Math.Random.Utilities.initialStateWithXorshift64star'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Occupants/BaseClasses/binaryVariableGeneration.mo:2:1-32:29:writable] Warning: Pure function 'Buildings.Occupants.BaseClasses.binaryVariableGeneration' contains a call to impure function 'Modelica.Math.Random.Generators.Xorshift1024star.initialState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Occupants/BaseClasses/binaryVariableGeneration.mo:11:3-11:96:writable] Warning: localSeed was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.0005184/0.2457, allocations: 123.6 kB / 0.7859 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001204/0.2458, allocations: 99.69 kB / 0.7859 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.245e-05/0.2459, allocations: 8 kB / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.046e-05/0.246, allocations: 43.91 kB / 0.786 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.911e-05/0.2461, allocations: 43.83 kB / 0.786 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.24e-05/0.2461, allocations: 8 kB / 0.786 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001762/0.2463, allocations: 99.84 kB / 0.7861 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.619e-05/0.2464, allocations: 23.91 kB / 0.7862 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.119e-05/0.2464, allocations: 39.8 kB / 0.7862 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000225/0.2466, allocations: 155.9 kB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2467, allocations: 0 / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2467, allocations: 0 / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.099e-06/0.2467, allocations: 0 / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005742/0.2472, allocations: 458.5 kB / 0.7868 GB, free: 9.906 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.2473, allocations: 8.031 kB / 0.7868 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.045e-05/0.2473, allocations: 42.73 kB / 0.7868 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.515e-05/0.2474, allocations: 8.844 kB / 0.7868 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000126/0.2475, allocations: 180.2 kB / 0.787 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.195e-05/0.2475, allocations: 8.359 kB / 0.787 GB, free: 9.617 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.049e-05/0.2476, allocations: 8.375 kB / 0.787 GB, free: 9.609 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001953/0.2478, allocations: 85.7 kB / 0.7871 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.613e-06/0.2478, allocations: 4 kB / 0.7871 GB, free: 9.516 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.472e-05/0.2478, allocations: 7.984 kB / 0.7871 GB, free: 9.508 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.932e-06/0.2478, allocations: 4 kB / 0.7871 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001443/0.248, allocations: 47.91 kB / 0.7872 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004933/0.2485, allocations: 312.8 kB / 0.7875 GB, free: 9.102 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001497/0.2486, allocations: 70.55 kB / 0.7875 GB, free: 9.023 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.2487, allocations: 44.84 kB / 0.7876 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.758e-05/0.2488, allocations: 0 / 0.7876 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002079/0.249, allocations: 103.2 kB / 0.7877 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=9): time 1.342e-06/0.249, allocations: 0 / 0.7877 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of matching and sorting (n=9): time 0.0004631/0.2495, allocations: 189.5 kB / 0.7879 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.106e-05/0.2495, allocations: 59.39 kB / 0.7879 GB, free: 8.602 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.941e-05/0.2496, allocations: 121.8 kB / 0.788 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.011e-05/0.2496, allocations: 33.7 kB / 0.7881 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.99e-05/0.2497, allocations: 96.36 kB / 0.7882 GB, free: 8.336 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.89e-05/0.2497, allocations: 15.75 kB / 0.7882 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.642e-05/0.2498, allocations: 33.7 kB / 0.7882 GB, free: 8.281 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.2499, allocations: 330.8 kB / 0.7885 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.971e-05/0.25, allocations: 23.98 kB / 0.7885 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001056/0.2501, allocations: 77.92 kB / 0.7886 GB, free: 7.828 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001838/0.2503, allocations: 109.9 kB / 0.7887 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2503, allocations: 0 / 0.7887 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002601/0.2506, allocations: 137.4 kB / 0.7889 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/0.2506, allocations: 7.938 kB / 0.7889 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.2506, allocations: 4.375 kB / 0.7889 GB, free: 7.547 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.2506, allocations: 0 / 0.7889 GB, free: 7.547 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.738e-05/0.2507, allocations: 15.98 kB / 0.7889 GB, free: 7.531 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.2507, allocations: 4 kB / 0.7889 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.313e-05/0.2508, allocations: 15.92 kB / 0.7889 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.383e-05/0.2508, allocations: 4 kB / 0.7889 GB, free: 7.508 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 (bli.curSeed,$PRE.bli.curSeed,bli.pDown,$PRE.bli.pDown,bli.pUp,$PRE.bli.pUp,bli.isOpen,$PRE.bli.isOpen,bli.blindState,$PRE.bli.blindState,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 (15): * Single equations (assignments): 15 * 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.346e-05/0.2509, allocations: 141.5 kB / 0.789 GB, free: 7.363 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.025e-05/0.2509, allocations: 7.906 kB / 0.7891 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.184e-05/0.251, allocations: 8.375 kB / 0.7891 GB, free: 7.348 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.251, allocations: 7.984 kB / 0.7891 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.251, allocations: 0 / 0.7891 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.251, allocations: 0 / 0.7891 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005226/0.2515, allocations: 434.4 kB / 0.7895 GB, free: 6.859 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.2515, allocations: 8 kB / 0.7895 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.844e-05/0.2516, allocations: 4 kB / 0.7895 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.2516, allocations: 0 / 0.7895 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.2516, allocations: 3.984 kB / 0.7895 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.2516, allocations: 0 / 0.7895 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.481e-06/0.2516, allocations: 7.938 kB / 0.7895 GB, free: 6.836 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003364/0.252, allocations: 247.3 kB / 0.7897 GB, free: 6.578 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.726e-05/0.252, allocations: 89.05 kB / 0.7898 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.324e-05/0.252, allocations: 0 / 0.7898 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.686e-05/0.2521, allocations: 7.984 kB / 0.7898 GB, free: 6.465 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.236e-05/0.2522, allocations: 15.88 kB / 0.7898 GB, free: 6.449 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.227e-05/0.2522, allocations: 3.984 kB / 0.7899 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.875e-05/0.2523, allocations: 95.27 kB / 0.7899 GB, free: 6.352 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2523, allocations: 0 / 0.7899 GB, free: 6.352 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002935/0.2526, allocations: 43.91 kB / 0.79 GB, free: 6.309 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (bli.sampleTrigger,$whenCondition1,occ.y,bli.blindState,bli.pUp,bli.pDown,bli.isOpen,bli.curSeed) * Number of discrete states: 1 (bli.isOpen) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0008598/0.2534, allocations: 0.8534 MB / 0.7908 GB, free: 5.445 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002627/0.2537, allocations: 95.83 kB / 0.7909 GB, free: 5.352 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2537, allocations: 0 / 0.7909 GB, free: 5.352 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000114/0.2538, allocations: 43.98 kB / 0.7909 GB, free: 5.309 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002841/0.2541, allocations: 22.36 kB / 0.791 GB, free: 5.289 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001648/0.2558, allocations: 1.593 MB / 0.7925 GB, free: 3.59 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002541/0.2561, allocations: 0.6935 MB / 0.7932 GB, free: 2.871 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.955e-05/0.2561, allocations: 11.98 kB / 0.7932 GB, free: 2.859 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.467e-05/0.2562, allocations: 23.42 kB / 0.7932 GB, free: 2.836 MB / 0.6075 GB Notification: Performance of SimCode: time 2.41e-07/0.2562, allocations: 0 / 0.7932 GB, free: 2.836 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.375/1.631, allocations: 2.932 MB / 0.7961 GB, free: 40 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/12.71, allocations: 4.062 kB / 0.7961 GB, free: 36 kB / 0.6075 GB (rm -f Buildings_8_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe ; mkfifo Buildings_8_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe >> ../files/Buildings_8_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarAltitude_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarAltitude.fmu > Buildings_8_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe 2>&1)