Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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: "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_9_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_9_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.001163/0.001163, allocations: 100.8 kB / 15.05 MB, free: 1.105 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.001524/0.001524, allocations: 177.3 kB / 15.94 MB, free: 220 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.49/1.49, allocations: 223.2 MB / 239.9 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.438/2.438, allocations: 390.3 MB / 0.6653 GB, free: 3.004 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000358/0.0003581, allocations: 8 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8338/0.8342, allocations: 142.3 MB / 0.9536 GB, free: 8.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.001494/0.8357, allocations: 0.9213 MB / 0.9545 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008282/0.8366, allocations: 361.7 kB / 0.9548 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.065e-05/0.8367, allocations: 1.719 kB / 0.9548 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.254e-05/0.8367, allocations: 3.938 kB / 0.9548 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.448e-05/0.8367, allocations: 4 kB / 0.9548 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004091/0.8372, allocations: 73.78 kB / 0.9549 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.389e-05/0.8372, allocations: 4.969 kB / 0.9549 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.63e-05/0.8372, allocations: 1.531 kB / 0.9549 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.029e-05/0.8373, allocations: 11.33 kB / 0.9549 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.686e-05/0.8373, allocations: 9.453 kB / 0.9549 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.09e-05/0.8373, allocations: 1.5 kB / 0.9549 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001543/0.8375, allocations: 64.47 kB / 0.955 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.154e-05/0.8375, allocations: 5.688 kB / 0.955 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.856e-05/0.8375, allocations: 32.67 kB / 0.955 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001184/0.8377, allocations: 58.92 kB / 0.9551 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.8377, allocations: 1.562 kB / 0.9551 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.323e-06/0.8377, allocations: 0 / 0.9551 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.736e-06/0.8377, allocations: 0 / 0.9551 GB, free: 6.906 MB / 0.7169 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.0002984/0.838, allocations: 370.6 kB / 0.9554 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.838, allocations: 13.55 kB / 0.9555 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.418e-05/0.8381, allocations: 31.75 kB / 0.9555 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.689e-05/0.8381, allocations: 9.109 kB / 0.9555 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.4e-05/0.8382, allocations: 164.1 kB / 0.9557 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.845e-05/0.8382, allocations: 5.156 kB / 0.9557 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.344e-05/0.8382, allocations: 7.094 kB / 0.9557 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.315e-05/0.8383, allocations: 39.27 kB / 0.9557 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.801e-06/0.8384, allocations: 0 / 0.9557 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.204e-06/0.8384, allocations: 0 / 0.9557 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.8384, allocations: 1.219 kB / 0.9557 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.999e-05/0.8384, allocations: 15.17 kB / 0.9557 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002491/0.8387, allocations: 244.4 kB / 0.9559 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.813e-05/0.8388, allocations: 33.56 kB / 0.956 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.298e-06/0.8388, allocations: 0 / 0.956 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001268/0.8389, allocations: 53.47 kB / 0.956 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 2.114e-06/0.8389, allocations: 0 / 0.956 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.0001905/0.8391, allocations: 87.5 kB / 0.9561 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.802e-05/0.8392, allocations: 52.81 kB / 0.9562 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.261e-05/0.8392, allocations: 96.73 kB / 0.9563 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.067e-06/0.8392, allocations: 31.12 kB / 0.9563 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.391e-05/0.8392, allocations: 80.14 kB / 0.9564 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.536e-05/0.8393, allocations: 14.12 kB / 0.9564 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.096e-06/0.8393, allocations: 0 / 0.9564 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.878e-05/0.8393, allocations: 312.3 kB / 0.9567 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.062e-05/0.8394, allocations: 17.64 kB / 0.9567 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.906e-05/0.8394, allocations: 30.34 kB / 0.9567 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.076e-05/0.8394, allocations: 23.89 kB / 0.9567 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.8394, allocations: 0 / 0.9567 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 9.413e-05/0.8395, allocations: 70.22 kB / 0.9568 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.8396, allocations: 9.688 kB / 0.9568 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.8396, allocations: 1.375 kB / 0.9568 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.8396, allocations: 1.438 kB / 0.9568 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.807e-05/0.8396, allocations: 15.84 kB / 0.9568 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.8397, allocations: 5.281 kB / 0.9568 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.523e-05/0.8397, allocations: 1.156 kB / 0.9568 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/0.8397, allocations: 7.281 kB / 0.9569 GB, free: 5.027 MB / 0.7169 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 5.072e-05/0.8398, allocations: 109.7 kB / 0.957 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.638e-06/0.8398, allocations: 1.406 kB / 0.957 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.097e-05/0.8398, allocations: 15.64 kB / 0.957 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/0.8398, allocations: 1.438 kB / 0.957 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.8398, allocations: 3.953 kB / 0.957 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.8398, allocations: 3.938 kB / 0.957 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001822/0.84, allocations: 299.8 kB / 0.9573 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.84, allocations: 1.25 kB / 0.9573 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.821e-05/0.84, allocations: 2.688 kB / 0.9573 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.594e-06/0.84, allocations: 1.188 kB / 0.9573 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.694e-06/0.8401, allocations: 1.125 kB / 0.9573 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.544e-06/0.8401, allocations: 11.95 kB / 0.9573 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.8401, allocations: 3.984 kB / 0.9573 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001105/0.8402, allocations: 160.4 kB / 0.9574 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.535e-05/0.8402, allocations: 82.2 kB / 0.9575 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.259e-05/0.8402, allocations: 0 / 0.9575 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.013e-05/0.8403, allocations: 5.422 kB / 0.9575 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.927e-05/0.8403, allocations: 5.078 kB / 0.9575 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.702e-06/0.8403, allocations: 2.344 kB / 0.9575 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.909e-05/0.8403, allocations: 80.66 kB / 0.9576 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8403, allocations: 3.938 kB / 0.9576 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002775/0.8406, allocations: 33.2 kB / 0.9576 GB, free: 4.203 MB / 0.7169 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.0004892/0.8411, allocations: 0.7587 MB / 0.9584 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 9.502e-05/0.8412, allocations: 31.42 kB / 0.9584 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.8412, allocations: 0 / 0.9584 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.364e-05/0.8413, allocations: 13.41 kB / 0.9584 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001185/0.8414, allocations: 5.516 kB / 0.9584 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004936/0.8419, allocations: 0.7879 MB / 0.9592 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001073/0.842, allocations: 0.6798 MB / 0.9599 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.237e-05/0.8421, allocations: 10.06 kB / 0.9599 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.101e-05/0.8421, allocations: 9.906 kB / 0.9599 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.8421, allocations: 0 / 0.9599 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01297/0.8551, allocations: 1.635 MB / 0.9615 GB, free: 1.188 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002382/0.8553, allocations: 257.2 kB / 0.9617 GB, free: 0.9336 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.712/2.568, allocations: 1.375 kB / 0.9617 GB, free: 0.9336 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.fmu > Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat does not exist to compare? outputFormat=mat