Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.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.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator",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.0008638/0.0008637, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.00101/0.00101, allocations: 168.7 kB / 15.95 MB, free: 204 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.427/1.427, allocations: 223.2 MB / 240 MB, free: 5.426 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.499/2.499, allocations: 390.4 MB / 0.6655 GB, free: 2.91 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003052/0.0003052, allocations: 15.98 kB / 0.8149 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6796/0.6799, allocations: 142.3 MB / 0.9539 GB, free: 8.07 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator): time 0.0006635/0.6806, allocations: 353.3 kB / 0.9542 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001208/0.6818, allocations: 1.079 MB / 0.9553 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.519e-05/0.6819, allocations: 0 / 0.9553 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 5.888e-05/0.682, allocations: 1.25 kB / 0.9553 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 1.769e-05/0.682, allocations: 11.91 kB / 0.9553 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003424/0.6823, allocations: 109.4 kB / 0.9554 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.852e-05/0.6824, allocations: 72.2 kB / 0.9555 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.747e-05/0.6825, allocations: 7.672 kB / 0.9555 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.054e-05/0.6825, allocations: 31.27 kB / 0.9555 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.431e-05/0.6826, allocations: 24.42 kB / 0.9555 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.581e-05/0.6826, allocations: 4.25 kB / 0.9555 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.475e-05/0.6827, allocations: 22.98 kB / 0.9555 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.411e-05/0.6827, allocations: 11.17 kB / 0.9555 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.489e-05/0.6827, allocations: 35.64 kB / 0.9556 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.04e-05/0.6828, allocations: 61.39 kB / 0.9556 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.6828, allocations: 0 / 0.9556 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.363e-06/0.6828, allocations: 0.8438 kB / 0.9556 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.102e-06/0.6829, allocations: 0 / 0.9556 GB, free: 6.684 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.000266/0.6831, allocations: 364.9 kB / 0.956 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.6832, allocations: 9.844 kB / 0.956 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.957e-05/0.6832, allocations: 35.66 kB / 0.956 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.093e-05/0.6832, allocations: 8.016 kB / 0.956 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001159/0.6834, allocations: 190 kB / 0.9562 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.063e-05/0.6834, allocations: 1.844 kB / 0.9562 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.89e-05/0.6834, allocations: 6.406 kB / 0.9562 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.577e-05/0.6835, allocations: 46.56 kB / 0.9563 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.37e-06/0.6835, allocations: 0 / 0.9563 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.522e-06/0.6835, allocations: 0 / 0.9563 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.6835, allocations: 0.5 kB / 0.9563 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.712e-05/0.6835, allocations: 18.91 kB / 0.9563 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002495/0.6838, allocations: 299.6 kB / 0.9566 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.03e-05/0.6838, allocations: 25.7 kB / 0.9566 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.101e-05/0.6838, allocations: 7.203 kB / 0.9566 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 6.442e-06/0.6839, allocations: 3.984 kB / 0.9566 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.581e-05/0.684, allocations: 62.22 kB / 0.9567 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 2.325e-06/0.684, allocations: 4 kB / 0.9567 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0001395/0.6841, allocations: 66.97 kB / 0.9567 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.597e-05/0.6841, allocations: 52.56 kB / 0.9568 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.292e-05/0.6842, allocations: 109.3 kB / 0.9569 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.716e-05/0.6842, allocations: 27.73 kB / 0.9569 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.604e-05/0.6843, allocations: 99.16 kB / 0.957 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 9.297e-06/0.6843, allocations: 1 kB / 0.957 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.659e-06/0.6843, allocations: 2 kB / 0.957 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.966e-05/0.6844, allocations: 316.8 kB / 0.9573 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.909e-05/0.6844, allocations: 31.02 kB / 0.9573 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.308e-05/0.6845, allocations: 51.39 kB / 0.9574 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.589e-05/0.6846, allocations: 56.42 kB / 0.9575 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.6846, allocations: 0.7812 kB / 0.9575 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001966/0.6848, allocations: 141.4 kB / 0.9576 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.81e-05/0.6848, allocations: 46.58 kB / 0.9576 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.6848, allocations: 4.094 kB / 0.9576 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.688e-06/0.6848, allocations: 1.156 kB / 0.9576 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.402e-05/0.6848, allocations: 2.156 kB / 0.9576 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.6849, allocations: 1.031 kB / 0.9576 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002088/0.6851, allocations: 37.22 kB / 0.9577 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.149e-05/0.6851, allocations: 12.67 kB / 0.9577 GB, free: 4.594 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * 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 6.114e-05/0.6852, allocations: 115.7 kB / 0.9578 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.598e-06/0.6852, allocations: 2.125 kB / 0.9578 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.951e-05/0.6852, allocations: 8.984 kB / 0.9578 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.6852, allocations: 0 / 0.9578 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.6852, allocations: 9.141 kB / 0.9578 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.145e-06/0.6852, allocations: 0 / 0.9578 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.255e-05/0.6853, allocations: 164.8 kB / 0.958 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.6853, allocations: 1.25 kB / 0.958 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.991e-06/0.6853, allocations: 4 kB / 0.958 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.6853, allocations: 5.062 kB / 0.958 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.134e-06/0.6853, allocations: 5.078 kB / 0.958 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.6854, allocations: 3.953 kB / 0.958 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.6854, allocations: 0 / 0.958 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.861e-05/0.6854, allocations: 78.31 kB / 0.9581 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.536e-05/0.6855, allocations: 78.33 kB / 0.9581 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.229e-05/0.6855, allocations: 1.156 kB / 0.9581 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.407e-05/0.6855, allocations: 5 kB / 0.9581 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.46e-05/0.6855, allocations: 12.94 kB / 0.9582 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.102e-06/0.6855, allocations: 1.25 kB / 0.9582 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.494e-05/0.6856, allocations: 85.22 kB / 0.9582 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6856, allocations: 3.938 kB / 0.9582 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002074/0.6858, allocations: 14.5 kB / 0.9583 GB, free: 3.965 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,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0002518/0.686, allocations: 0.6217 MB / 0.9589 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001599/0.6862, allocations: 122.4 kB / 0.959 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.6862, allocations: 0.9688 kB / 0.959 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.438e-05/0.6863, allocations: 18.39 kB / 0.959 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001785/0.6864, allocations: 12.31 kB / 0.959 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006355/0.6871, allocations: 0.4923 MB / 0.9595 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.105e-05/0.6872, allocations: 0.6794 MB / 0.9602 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.147e-05/0.6872, allocations: 6.922 kB / 0.9602 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.288e-05/0.6872, allocations: 12.91 kB / 0.9602 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.6872, allocations: 4 kB / 0.9602 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01076/0.698, allocations: 1.745 MB / 0.9619 GB, free: 1.289 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001374/0.6982, allocations: 218.5 kB / 0.9621 GB, free: 1.043 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.796/2.494, allocations: 0.9375 kB / 0.9621 GB, free: 1.043 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator_res.mat does not exist to compare? outputFormat=mat