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.0009027/0.0009027, allocations: 98.44 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.001046/0.001047, allocations: 177.3 kB / 15.95 MB, free: 216 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.434/1.434, allocations: 223.2 MB / 239.9 MB, free: 5.469 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.47/2.47, allocations: 390.3 MB / 0.6653 GB, free: 3 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003771/0.0003772, allocations: 16 kB / 0.8146 GB, free: 14.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7432/0.7436, allocations: 142.3 MB / 0.9536 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator): time 0.0007618/0.7444, allocations: 355.3 kB / 0.9539 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001032/0.7455, allocations: 1.069 MB / 0.955 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.293e-05/0.7455, allocations: 1.25 kB / 0.955 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 5.982e-05/0.7456, allocations: 0 / 0.955 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 1.86e-05/0.7456, allocations: 4.922 kB / 0.955 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003644/0.746, allocations: 113 kB / 0.9551 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.279e-05/0.7461, allocations: 43.17 kB / 0.9551 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.765e-05/0.7461, allocations: 7.031 kB / 0.9551 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.991e-05/0.7462, allocations: 35.48 kB / 0.9552 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.059e-05/0.7463, allocations: 23.09 kB / 0.9552 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.661e-05/0.7463, allocations: 4.781 kB / 0.9552 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.639e-05/0.7464, allocations: 21.92 kB / 0.9552 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.378e-05/0.7464, allocations: 3.75 kB / 0.9552 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.745e-05/0.7464, allocations: 35.84 kB / 0.9553 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.14e-05/0.7465, allocations: 62.52 kB / 0.9553 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.7466, allocations: 0 / 0.9553 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.563e-06/0.7466, allocations: 0 / 0.9553 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.828e-06/0.7466, allocations: 4 kB / 0.9553 GB, free: 6.738 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.000287/0.7469, allocations: 361.1 kB / 0.9557 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.7469, allocations: 8.812 kB / 0.9557 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.31e-05/0.7469, allocations: 39.95 kB / 0.9557 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.474e-05/0.747, allocations: 8.359 kB / 0.9557 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001306/0.7471, allocations: 185.9 kB / 0.9559 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.277e-05/0.7471, allocations: 2.781 kB / 0.9559 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.096e-05/0.7472, allocations: 9.109 kB / 0.9559 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.49e-05/0.7472, allocations: 42.16 kB / 0.956 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.7473, allocations: 4 kB / 0.956 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.794e-06/0.7473, allocations: 7.938 kB / 0.956 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.82e-06/0.7473, allocations: 1.375 kB / 0.956 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.089e-05/0.7473, allocations: 10.11 kB / 0.956 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002768/0.7476, allocations: 303.8 kB / 0.9563 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.306e-05/0.7476, allocations: 21.31 kB / 0.9563 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 7.404e-06/0.7477, allocations: 5.125 kB / 0.9563 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001127/0.7478, allocations: 62.06 kB / 0.9564 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.263e-06/0.7478, allocations: 0 / 0.9564 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.000151/0.7479, allocations: 66.84 kB / 0.9564 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.23e-05/0.748, allocations: 51.41 kB / 0.9565 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.238e-05/0.748, allocations: 110.1 kB / 0.9566 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.7481, allocations: 28.64 kB / 0.9566 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.995e-05/0.7481, allocations: 91.45 kB / 0.9567 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 8.886e-06/0.7481, allocations: 7.984 kB / 0.9567 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.548e-06/0.7481, allocations: 2.875 kB / 0.9567 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.422e-05/0.7482, allocations: 316.2 kB / 0.957 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.167e-05/0.7482, allocations: 29.89 kB / 0.957 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.428e-05/0.7483, allocations: 44.25 kB / 0.9571 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.732e-05/0.7484, allocations: 68.84 kB / 0.9571 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.7484, allocations: 0 / 0.9571 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001995/0.7486, allocations: 145.3 kB / 0.9573 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.943e-05/0.7486, allocations: 40.92 kB / 0.9573 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.7486, allocations: 1.375 kB / 0.9573 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.035e-05/0.7487, allocations: 1.375 kB / 0.9573 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.317e-05/0.7487, allocations: 1.438 kB / 0.9573 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.7487, allocations: 1.406 kB / 0.9573 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002222/0.7489, allocations: 41.12 kB / 0.9574 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.963e-05/0.7489, allocations: 8.031 kB / 0.9574 GB, free: 4.66 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.514e-05/0.749, allocations: 116 kB / 0.9575 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.238e-06/0.749, allocations: 2 kB / 0.9575 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.476e-05/0.7491, allocations: 12.7 kB / 0.9575 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.7491, allocations: 4 kB / 0.9575 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.7491, allocations: 1.031 kB / 0.9575 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.7491, allocations: 0 / 0.9575 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.049e-05/0.7492, allocations: 161.7 kB / 0.9576 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.7492, allocations: 3.938 kB / 0.9577 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.341e-06/0.7492, allocations: 5.094 kB / 0.9577 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.7492, allocations: 0 / 0.9577 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.601e-06/0.7492, allocations: 5 kB / 0.9577 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.7492, allocations: 4.922 kB / 0.9577 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.7492, allocations: 0 / 0.9577 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.772e-05/0.7493, allocations: 86.64 kB / 0.9577 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.031e-05/0.7493, allocations: 78.05 kB / 0.9578 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.232e-05/0.7494, allocations: 1.406 kB / 0.9578 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.341e-05/0.7494, allocations: 320 / 0.9578 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.402e-05/0.7494, allocations: 5.109 kB / 0.9578 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.312e-06/0.7494, allocations: 10.88 kB / 0.9578 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.321e-05/0.7495, allocations: 85.48 kB / 0.9579 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7495, allocations: 0 / 0.9579 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000197/0.7497, allocations: 21.34 kB / 0.9579 GB, free: 4.027 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.0002494/0.7499, allocations: 0.6229 MB / 0.9585 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001904/0.7501, allocations: 114.2 kB / 0.9587 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.7501, allocations: 0 / 0.9587 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.81e-05/0.7502, allocations: 16.09 kB / 0.9587 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001478/0.7503, allocations: 19.28 kB / 0.9587 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000434/0.7508, allocations: 0.633 MB / 0.9593 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001048/0.7509, allocations: 0.6852 MB / 0.96 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.728e-05/0.7509, allocations: 2.219 kB / 0.96 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.666e-05/0.7509, allocations: 20.39 kB / 0.96 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of SimCode: time 1.382e-06/0.7509, allocations: 0 / 0.96 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01066/0.7616, allocations: 1.724 MB / 0.9617 GB, free: 1.137 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001187/0.7617, allocations: 196.9 kB / 0.9619 GB, free: 0.9023 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.574/2.335, allocations: 2.125 kB / 0.9619 GB, free: 0.9023 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