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.001247/0.001247, allocations: 108 kB / 15.61 MB, free: 152 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.0015/0.0015, allocations: 194.8 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.482/1.482, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.78/1.78, 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.002179/0.002179, allocations: 73.56 kB / 0.6716 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2591, allocations: 114.6 MB / 0.7835 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude): time 0.003101/0.2623, allocations: 1.508 MB / 0.7849 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001532/0.2638, allocations: 0.7809 MB / 0.7857 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.414e-05/0.2639, allocations: 0 / 0.7857 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.141e-05/0.2639, allocations: 7.922 kB / 0.7857 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.434e-05/0.264, allocations: 19.8 kB / 0.7857 GB, free: 11.06 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.0005934/0.2646, allocations: 131.5 kB / 0.7859 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001251/0.2648, allocations: 95.7 kB / 0.7859 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.2649, allocations: 11.98 kB / 0.786 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.264e-05/0.265, allocations: 35.91 kB / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.956e-05/0.2651, allocations: 51.81 kB / 0.786 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.487e-05/0.2651, allocations: 12 kB / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001953/0.2653, allocations: 99.84 kB / 0.7862 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.653e-05/0.2653, allocations: 15.92 kB / 0.7862 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.698e-05/0.2654, allocations: 39.86 kB / 0.7862 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002256/0.2656, allocations: 151.8 kB / 0.7863 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2656, allocations: 0 / 0.7863 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.513e-06/0.2656, allocations: 0 / 0.7863 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.23e-06/0.2657, allocations: 4 kB / 0.7864 GB, free: 10.43 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.000663/0.2663, allocations: 462.5 kB / 0.7868 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.2664, allocations: 12.03 kB / 0.7868 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.97e-05/0.2664, allocations: 34.75 kB / 0.7868 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.11e-05/0.2665, allocations: 8.844 kB / 0.7868 GB, free: 9.852 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001367/0.2666, allocations: 184.2 kB / 0.787 GB, free: 9.633 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.394e-05/0.2667, allocations: 4.375 kB / 0.787 GB, free: 9.629 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.199e-05/0.2667, allocations: 12.38 kB / 0.787 GB, free: 9.617 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002216/0.2669, allocations: 85.75 kB / 0.7871 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.652e-06/0.2669, allocations: 0 / 0.7871 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/0.2669, allocations: 4 kB / 0.7871 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.267, allocations: 4 kB / 0.7871 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000153/0.2671, allocations: 51.91 kB / 0.7872 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005468/0.2677, allocations: 308.8 kB / 0.7875 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001863/0.2679, allocations: 70.55 kB / 0.7875 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001042/0.268, allocations: 48.83 kB / 0.7876 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.921e-05/0.268, allocations: 4 kB / 0.7876 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002278/0.2682, allocations: 95.45 kB / 0.7877 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=9): time 3.697e-06/0.2682, allocations: 0 / 0.7877 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of matching and sorting (n=9): time 0.0004819/0.2687, allocations: 197.4 kB / 0.7879 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.378e-05/0.2688, allocations: 59.39 kB / 0.7879 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001108/0.2689, allocations: 125.7 kB / 0.788 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.284e-05/0.2689, allocations: 29.7 kB / 0.7881 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.11e-05/0.269, allocations: 92.38 kB / 0.7882 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.69e-05/0.269, allocations: 23.73 kB / 0.7882 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.514e-05/0.2691, allocations: 33.7 kB / 0.7882 GB, free: 8.285 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001317/0.2692, allocations: 318.8 kB / 0.7885 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.985e-05/0.2693, allocations: 31.97 kB / 0.7886 GB, free: 7.934 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001074/0.2694, allocations: 77.03 kB / 0.7886 GB, free: 7.84 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001913/0.2696, allocations: 113.9 kB / 0.7887 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2696, allocations: 0 / 0.7887 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002505/0.2699, allocations: 137.3 kB / 0.7889 GB, free: 7.566 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.2699, allocations: 8.156 kB / 0.7889 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.2699, allocations: 0 / 0.7889 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.27, allocations: 4 kB / 0.7889 GB, free: 7.555 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.97e-05/0.2701, allocations: 19.92 kB / 0.7889 GB, free: 7.535 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.2701, allocations: 4 kB / 0.7889 GB, free: 7.531 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.443e-05/0.2701, allocations: 8 kB / 0.7889 GB, free: 7.523 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.237e-05/0.2702, allocations: 4 kB / 0.7889 GB, free: 7.52 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 0.0001261/0.2703, allocations: 137.2 kB / 0.789 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.307e-05/0.2703, allocations: 15.89 kB / 0.7891 GB, free: 7.363 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.575e-05/0.2704, allocations: 8.375 kB / 0.7891 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.2704, allocations: 0 / 0.7891 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.2704, allocations: 4 kB / 0.7891 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.2704, allocations: 0 / 0.7891 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000543/0.2709, allocations: 430.3 kB / 0.7895 GB, free: 6.875 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.2709, allocations: 8.469 kB / 0.7895 GB, free: 6.867 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.932e-05/0.271, allocations: 3.984 kB / 0.7895 GB, free: 6.863 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.271, allocations: 8 kB / 0.7895 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.271, allocations: 0 / 0.7895 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.271, allocations: 0 / 0.7895 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.271, allocations: 7.875 kB / 0.7895 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000361/0.2714, allocations: 251.3 kB / 0.7897 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.846e-05/0.2714, allocations: 77.11 kB / 0.7898 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.924e-05/0.2715, allocations: 7.984 kB / 0.7898 GB, free: 6.484 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.295e-05/0.2716, allocations: 7.938 kB / 0.7898 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.236e-05/0.2716, allocations: 15.92 kB / 0.7898 GB, free: 6.461 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.2717, allocations: 4 kB / 0.7899 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.808e-05/0.2717, allocations: 102.1 kB / 0.7899 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2717, allocations: 0 / 0.7899 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003097/0.2721, allocations: 47.89 kB / 0.79 GB, free: 6.312 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.0008995/0.273, allocations: 0.8516 MB / 0.7908 GB, free: 5.449 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002767/0.2733, allocations: 92.08 kB / 0.7909 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2733, allocations: 4.062 kB / 0.7909 GB, free: 5.355 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001198/0.2734, allocations: 47.97 kB / 0.791 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.0002858/0.2737, allocations: 18.36 kB / 0.791 GB, free: 5.293 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001716/0.2754, allocations: 1.581 MB / 0.7925 GB, free: 3.602 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003132/0.2757, allocations: 0.6971 MB / 0.7932 GB, free: 2.879 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.453e-05/0.2758, allocations: 8 kB / 0.7932 GB, free: 2.871 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.913e-05/0.2758, allocations: 27.36 kB / 0.7932 GB, free: 2.844 MB / 0.6075 GB Notification: Performance of SimCode: time 2.41e-07/0.2758, allocations: 0 / 0.7932 GB, free: 2.844 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01967/0.2955, allocations: 2.926 MB / 0.7961 GB, free: 56 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.687/7.982, allocations: 7.938 kB / 0.7961 GB, free: 48 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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarAltitude.fmu > Buildings_8_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe 2>&1)