Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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: "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_latest_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_latest_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",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.0008272/0.0008272, allocations: 91.06 kB / 15.06 MB, free: 1.098 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.001269/0.00127, allocations: 172.7 kB / 15.95 MB, free: 208 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.426/1.426, allocations: 223.3 MB / 240 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.512/2.512, allocations: 409.4 MB / 0.684 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0004878/0.000488, allocations: 8 kB / 0.8378 GB, free: 6.492 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8303/0.8308, allocations: 146.8 MB / 0.9811 GB, free: 6.234 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002098/0.833, allocations: 0.9294 MB / 0.982 GB, free: 5.297 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001238/0.8343, allocations: 357.4 kB / 0.9824 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.496e-05/0.8344, allocations: 0 / 0.9824 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.584e-05/0.8344, allocations: 0 / 0.9824 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.833e-05/0.8344, allocations: 0 / 0.9824 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007246/0.8352, allocations: 75.78 kB / 0.9824 GB, free: 4.875 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 7.937e-05/0.8353, allocations: 12 kB / 0.9825 GB, free: 4.863 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 6.077e-05/0.8354, allocations: 3.938 kB / 0.9825 GB, free: 4.859 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 3.83e-05/0.8354, allocations: 11.98 kB / 0.9825 GB, free: 4.848 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.782e-05/0.8355, allocations: 4 kB / 0.9825 GB, free: 4.844 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.689e-05/0.8355, allocations: 0 / 0.9825 GB, free: 4.844 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003162/0.8359, allocations: 87.84 kB / 0.9826 GB, free: 4.758 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.674e-05/0.8359, allocations: 0 / 0.9826 GB, free: 4.758 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.94e-05/0.836, allocations: 29.7 kB / 0.9826 GB, free: 4.723 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002044/0.8362, allocations: 55.91 kB / 0.9826 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.8362, allocations: 7.938 kB / 0.9826 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.733e-06/0.8362, allocations: 0 / 0.9826 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.8362, allocations: 0 / 0.9826 GB, free: 4.66 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0006554/0.8369, allocations: 371.3 kB / 0.983 GB, free: 4.242 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.055e-05/0.837, allocations: 8.031 kB / 0.983 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.228e-05/0.8371, allocations: 34.56 kB / 0.983 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.154e-05/0.8371, allocations: 4 kB / 0.983 GB, free: 4.188 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001565/0.8373, allocations: 167 kB / 0.9832 GB, free: 3.984 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.212e-05/0.8374, allocations: 4 kB / 0.9832 GB, free: 3.98 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.724e-05/0.8374, allocations: 4 kB / 0.9832 GB, free: 3.977 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001587/0.8376, allocations: 49.61 kB / 0.9833 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.8376, allocations: 4 kB / 0.9833 GB, free: 3.918 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.8376, allocations: 0 / 0.9833 GB, free: 3.918 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.8376, allocations: 0 / 0.9833 GB, free: 3.918 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.165e-05/0.8377, allocations: 4 kB / 0.9833 GB, free: 3.914 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004668/0.8382, allocations: 249 kB / 0.9835 GB, free: 3.621 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001344/0.8383, allocations: 34.5 kB / 0.9835 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.275e-05/0.8384, allocations: 20.81 kB / 0.9836 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.463e-05/0.8384, allocations: 96 / 0.9836 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002216/0.8387, allocations: 59.39 kB / 0.9836 GB, free: 3.484 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=5): time 2.304e-06/0.8387, allocations: 4 kB / 0.9836 GB, free: 3.48 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5): time 0.0003481/0.839, allocations: 77.7 kB / 0.9837 GB, free: 3.398 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.484e-05/0.8391, allocations: 51.41 kB / 0.9837 GB, free: 3.336 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.8393, allocations: 97.86 kB / 0.9838 GB, free: 3.23 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.527e-05/0.8393, allocations: 25.7 kB / 0.9839 GB, free: 3.199 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.369e-05/0.8394, allocations: 84.14 kB / 0.9839 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.922e-05/0.8394, allocations: 19.73 kB / 0.984 GB, free: 3.094 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.41e-06/0.8394, allocations: 0 / 0.984 GB, free: 3.094 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001961/0.8396, allocations: 319 kB / 0.9843 GB, free: 2.773 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.011e-05/0.8397, allocations: 11.94 kB / 0.9843 GB, free: 2.762 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.884e-05/0.8398, allocations: 35.42 kB / 0.9843 GB, free: 2.715 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.5e-05/0.8399, allocations: 12 kB / 0.9843 GB, free: 2.703 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.8399, allocations: 3.938 kB / 0.9843 GB, free: 2.699 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002078/0.8401, allocations: 73.62 kB / 0.9844 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.653e-05/0.8402, allocations: 8.062 kB / 0.9844 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.463e-05/0.8402, allocations: 4 kB / 0.9844 GB, free: 2.609 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.535e-05/0.8402, allocations: 4 kB / 0.9844 GB, free: 2.605 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001105/0.8404, allocations: 8 kB / 0.9844 GB, free: 2.598 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.8404, allocations: 160 / 0.9844 GB, free: 2.598 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.394e-05/0.8405, allocations: 4 kB / 0.9844 GB, free: 2.594 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.416e-05/0.8405, allocations: 7.984 kB / 0.9844 GB, free: 2.586 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.curSeed,curSeed,$whenCondition1,$PRE.$outputAlias_y,$outputAlias_y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 0.0001569/0.8407, allocations: 113.8 kB / 0.9845 GB, free: 2.465 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.169e-05/0.8407, allocations: 3.953 kB / 0.9845 GB, free: 2.461 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.708e-05/0.8407, allocations: 11.56 kB / 0.9846 GB, free: 2.453 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.8408, allocations: 4 kB / 0.9846 GB, free: 2.449 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.8408, allocations: 3.938 kB / 0.9846 GB, free: 2.445 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.441e-06/0.8408, allocations: 0 / 0.9846 GB, free: 2.445 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004524/0.8413, allocations: 298.6 kB / 0.9848 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.8413, allocations: 0 / 0.9848 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.701e-05/0.8413, allocations: 11.92 kB / 0.9849 GB, free: 2.086 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.8414, allocations: 0 / 0.9849 GB, free: 2.086 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.231e-05/0.8414, allocations: 0 / 0.9849 GB, free: 2.086 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.586e-06/0.8414, allocations: 11.98 kB / 0.9849 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.8414, allocations: 0 / 0.9849 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002669/0.8417, allocations: 155.5 kB / 0.985 GB, free: 1.906 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.457e-05/0.8418, allocations: 89 kB / 0.9851 GB, free: 1.801 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.057e-05/0.8418, allocations: 0 / 0.9851 GB, free: 1.801 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.646e-05/0.8419, allocations: 0 / 0.9851 GB, free: 1.801 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.391e-05/0.842, allocations: 3.984 kB / 0.9851 GB, free: 1.797 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.14e-05/0.842, allocations: 4 kB / 0.9851 GB, free: 1.793 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.879e-05/0.8421, allocations: 79.28 kB / 0.9852 GB, free: 1.715 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.5e-07/0.8421, allocations: 0 / 0.9852 GB, free: 1.715 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.00055/0.8426, allocations: 32 kB / 0.9852 GB, free: 1.684 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: 3 ($whenCondition1,$outputAlias_y,curSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001221/0.8439, allocations: 0.7746 MB / 0.986 GB, free: 0.9023 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001965/0.8441, allocations: 31.92 kB / 0.986 GB, free: 0.8711 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.8441, allocations: 3.938 kB / 0.986 GB, free: 0.8672 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 7.002e-05/0.8442, allocations: 15.98 kB / 0.986 GB, free: 0.8516 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003549/0.8446, allocations: 0 / 0.986 GB, free: 0.8516 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001058/0.8456, allocations: 397.2 kB / 0.9864 GB, free: 408 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004115/0.8461, allocations: 0.677 MB / 0.9871 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 3.43e-05/0.8461, allocations: 4 kB / 0.9871 GB, free: 15.69 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.222e-05/0.8462, allocations: 11.44 kB / 0.9871 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of SimCode: time 4.91e-07/0.8462, allocations: 4.062 kB / 0.9871 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01917/0.8654, allocations: 1.67 MB / 0.9887 GB, free: 14.19 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003566/0.8658, allocations: 245 kB / 0.9889 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.818/2.683, allocations: 4.062 kB / 0.9889 GB, free: 13.85 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.fmu > Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat does not exist to compare? outputFormat=mat