Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.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.IntegerScalarReplicator,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator",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.0009522/0.0009522, allocations: 91.84 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.001132/0.001132, 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.385/1.385, allocations: 223.3 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.41/2.41, allocations: 390.4 MB / 0.6655 GB, free: 2.914 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00035/0.00035, allocations: 12 kB / 0.8149 GB, free: 14.1 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6947/0.695, allocations: 142.3 MB / 0.9539 GB, free: 8.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator): time 0.0006984/0.6958, allocations: 382.8 kB / 0.9542 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006617/0.6964, allocations: 0.8181 MB / 0.955 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.407e-05/0.6965, allocations: 1.375 kB / 0.955 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 6.384e-05/0.6966, allocations: 3.984 kB / 0.955 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.463e-05/0.6966, allocations: 3.938 kB / 0.955 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001276/0.6967, allocations: 17.45 kB / 0.9551 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.576e-05/0.6968, allocations: 30.83 kB / 0.9551 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.379e-05/0.6969, allocations: 11.83 kB / 0.9551 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.008e-05/0.6969, allocations: 16.27 kB / 0.9551 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.73e-05/0.697, allocations: 9.172 kB / 0.9551 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.51e-05/0.697, allocations: 1.469 kB / 0.9551 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.235e-05/0.697, allocations: 1 kB / 0.9551 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.942e-05/0.6971, allocations: 11.22 kB / 0.9551 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.283e-05/0.6971, allocations: 27.77 kB / 0.9552 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.562e-05/0.6971, allocations: 30.31 kB / 0.9552 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.6972, allocations: 0 / 0.9552 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.303e-06/0.6972, allocations: 4 kB / 0.9552 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.487e-06/0.6972, allocations: 1.031 kB / 0.9552 GB, free: 7.039 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003476/0.6975, allocations: 347.7 kB / 0.9555 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.6976, allocations: 9.75 kB / 0.9555 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.502e-05/0.6976, allocations: 35.39 kB / 0.9556 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.243e-05/0.6976, allocations: 9.797 kB / 0.9556 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000104/0.6977, allocations: 183.2 kB / 0.9558 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.526e-05/0.6978, allocations: 5.25 kB / 0.9558 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.1e-05/0.6978, allocations: 2.969 kB / 0.9558 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001733/0.698, allocations: 63.64 kB / 0.9558 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.698, allocations: 0 / 0.9558 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.806e-06/0.698, allocations: 1.219 kB / 0.9558 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-06/0.698, allocations: 0 / 0.9558 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001756/0.6982, allocations: 66.23 kB / 0.9559 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002722/0.6985, allocations: 276.3 kB / 0.9561 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001205/0.6986, allocations: 45.94 kB / 0.9562 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.522e-05/0.6987, allocations: 32.27 kB / 0.9562 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.541e-05/0.6987, allocations: 3.953 kB / 0.9562 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.192e-05/0.6987, allocations: 36.25 kB / 0.9563 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.382e-06/0.6988, allocations: 0 / 0.9563 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003376/0.6991, allocations: 105.5 kB / 0.9564 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.251e-05/0.6991, allocations: 56.53 kB / 0.9564 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.896e-05/0.6992, allocations: 103.8 kB / 0.9565 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.193e-06/0.6992, allocations: 26.83 kB / 0.9565 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.723e-05/0.6992, allocations: 89.09 kB / 0.9566 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.161e-05/0.6992, allocations: 5.094 kB / 0.9566 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.358e-06/0.6993, allocations: 1.094 kB / 0.9566 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.103e-05/0.6993, allocations: 312 kB / 0.9569 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.215e-05/0.6994, allocations: 25.8 kB / 0.957 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.064e-05/0.6995, allocations: 27.41 kB / 0.957 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.949e-05/0.6995, allocations: 19.55 kB / 0.957 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.6996, allocations: 4.062 kB / 0.957 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001857/0.6997, allocations: 84 kB / 0.9571 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.6998, allocations: 12.7 kB / 0.9571 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.6998, allocations: 1.062 kB / 0.9571 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.377e-06/0.6998, allocations: 0 / 0.9571 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.242e-05/0.6999, allocations: 16.67 kB / 0.9571 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.6999, allocations: 1 kB / 0.9571 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.213e-05/0.7, allocations: 17.64 kB / 0.9571 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.129e-06/0.7, allocations: 1.188 kB / 0.9571 GB, free: 5.137 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (intRep.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 8.61e-05/0.7001, allocations: 116.7 kB / 0.9572 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.356e-05/0.7001, allocations: 1.406 kB / 0.9572 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.757e-05/0.7001, allocations: 12.48 kB / 0.9573 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.7001, allocations: 3.984 kB / 0.9573 GB, free: 5 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.7001, allocations: 1.406 kB / 0.9573 GB, free: 5 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.7001, allocations: 0 / 0.9573 GB, free: 5 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001158/0.7003, allocations: 169.1 kB / 0.9574 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.7003, allocations: 1.125 kB / 0.9574 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.593e-05/0.7003, allocations: 7.875 kB / 0.9574 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.7003, allocations: 1.125 kB / 0.9574 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.875e-06/0.7004, allocations: 3.984 kB / 0.9574 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.7004, allocations: 9.047 kB / 0.9574 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.7004, allocations: 0 / 0.9574 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002038/0.7006, allocations: 175.4 kB / 0.9576 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.445e-05/0.7006, allocations: 82.55 kB / 0.9577 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.257e-05/0.7006, allocations: 0 / 0.9577 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.932e-05/0.7007, allocations: 10.77 kB / 0.9577 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.052e-05/0.7007, allocations: 9.312 kB / 0.9577 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.626e-06/0.7008, allocations: 1.094 kB / 0.9577 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.047e-05/0.7008, allocations: 83.12 kB / 0.9578 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7008, allocations: 1.125 kB / 0.9578 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002178/0.701, allocations: 9.062 kB / 0.9578 GB, free: 4.438 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: 1 (intRep.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0003697/0.7014, allocations: 0.7172 MB / 0.9585 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001912/0.7016, allocations: 49.59 kB / 0.9585 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.7016, allocations: 0 / 0.9585 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.841e-05/0.7017, allocations: 29.41 kB / 0.9586 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002423/0.7019, allocations: 11.7 kB / 0.9586 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007347/0.7027, allocations: 447.8 kB / 0.959 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001246/0.7028, allocations: 0.6782 MB / 0.9597 GB, free: 2.617 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.827e-05/0.7029, allocations: 7.844 kB / 0.9597 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.04e-05/0.7029, allocations: 13.41 kB / 0.9597 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.7029, allocations: 0 / 0.9597 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01016/0.7131, allocations: 1.248 MB / 0.9609 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001498/0.7133, allocations: 206.9 kB / 0.9611 GB, free: 1.816 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.727/2.44, allocations: 3.938 kB / 0.9611 GB, free: 1.812 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator_res.mat does not exist to compare? outputFormat=mat