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.001436/0.001436, allocations: 100.1 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.001173/0.001173, 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.362/1.362, allocations: 223.2 MB / 239.9 MB, free: 5.453 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.437/2.437, allocations: 390.3 MB / 0.6653 GB, free: 3.027 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003318/0.0003318, allocations: 12 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.688/0.6884, allocations: 142.3 MB / 0.9536 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator): time 0.0009641/0.6894, allocations: 387.5 kB / 0.954 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007725/0.6902, allocations: 0.8231 MB / 0.9548 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.473e-05/0.6902, allocations: 0 / 0.9548 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.616e-05/0.6903, allocations: 0 / 0.9548 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.913e-05/0.6903, allocations: 5.188 kB / 0.9548 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001475/0.6905, allocations: 21.62 kB / 0.9548 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.281e-05/0.6906, allocations: 17.36 kB / 0.9548 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.698e-05/0.6906, allocations: 3.219 kB / 0.9548 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.866e-05/0.6907, allocations: 16.47 kB / 0.9548 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.675e-05/0.6908, allocations: 13.17 kB / 0.9548 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.676e-05/0.6908, allocations: 9.125 kB / 0.9549 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.184e-05/0.6908, allocations: 1.312 kB / 0.9549 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.954e-05/0.6908, allocations: 10.75 kB / 0.9549 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.526e-05/0.6909, allocations: 31.8 kB / 0.9549 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.826e-05/0.6909, allocations: 30.02 kB / 0.9549 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.691, allocations: 0 / 0.9549 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.643e-06/0.691, allocations: 1.312 kB / 0.9549 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.691, allocations: 0 / 0.9549 GB, free: 7.031 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.0003815/0.6914, allocations: 344.4 kB / 0.9553 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.6914, allocations: 9.062 kB / 0.9553 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.824e-05/0.6914, allocations: 35.56 kB / 0.9553 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.481e-05/0.6915, allocations: 13.94 kB / 0.9553 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001055/0.6916, allocations: 170.8 kB / 0.9555 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.994e-05/0.6916, allocations: 1.812 kB / 0.9555 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.06e-05/0.6916, allocations: 1.688 kB / 0.9555 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001886/0.6918, allocations: 73.22 kB / 0.9555 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.6918, allocations: 0 / 0.9555 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.428e-06/0.6918, allocations: 0 / 0.9555 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.6919, allocations: 5.656 kB / 0.9556 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001966/0.6921, allocations: 57.22 kB / 0.9556 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003203/0.6924, allocations: 280 kB / 0.9559 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001413/0.6925, allocations: 42.19 kB / 0.9559 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.486e-05/0.6926, allocations: 0 / 0.9559 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.774e-05/0.6926, allocations: 39.52 kB / 0.956 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.6926, allocations: 0 / 0.956 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003733/0.693, allocations: 114 kB / 0.9561 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.361e-05/0.693, allocations: 52.69 kB / 0.9561 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.339e-05/0.6931, allocations: 107.6 kB / 0.9562 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.006e-05/0.6931, allocations: 26.8 kB / 0.9562 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.145e-05/0.6931, allocations: 89.39 kB / 0.9563 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.34e-05/0.6931, allocations: 5.125 kB / 0.9563 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.757e-06/0.6931, allocations: 0 / 0.9563 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.202e-05/0.6932, allocations: 315.9 kB / 0.9566 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001035/0.6933, allocations: 27.62 kB / 0.9567 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.212e-05/0.6934, allocations: 22.33 kB / 0.9567 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.918e-05/0.6935, allocations: 19.02 kB / 0.9567 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.6935, allocations: 1.219 kB / 0.9567 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000201/0.6937, allocations: 87.05 kB / 0.9568 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.6937, allocations: 10.2 kB / 0.9568 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.6937, allocations: 5.406 kB / 0.9568 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.6938, allocations: 0 / 0.9568 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.6939, allocations: 12.86 kB / 0.9568 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.6939, allocations: 7.969 kB / 0.9568 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.557e-05/0.6939, allocations: 9.812 kB / 0.9568 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.95e-06/0.6939, allocations: 1.344 kB / 0.9568 GB, free: 5.156 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 0.0001026/0.6941, allocations: 117.1 kB / 0.9569 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.202e-05/0.6941, allocations: 1.25 kB / 0.9569 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.058e-05/0.6941, allocations: 8.266 kB / 0.9569 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.6941, allocations: 3.984 kB / 0.957 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.6941, allocations: 5.219 kB / 0.957 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.6941, allocations: 0 / 0.957 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000118/0.6942, allocations: 174.1 kB / 0.9571 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.6943, allocations: 0 / 0.9571 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.1e-05/0.6943, allocations: 12.92 kB / 0.9571 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.6943, allocations: 0 / 0.9571 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.6944, allocations: 1.156 kB / 0.9571 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.6944, allocations: 3.953 kB / 0.9571 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.6944, allocations: 0 / 0.9571 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002358/0.6946, allocations: 183.4 kB / 0.9573 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.777e-05/0.6946, allocations: 82.59 kB / 0.9574 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.387e-05/0.6947, allocations: 0 / 0.9574 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.43e-05/0.6948, allocations: 9.875 kB / 0.9574 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.123e-05/0.6948, allocations: 10.88 kB / 0.9574 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.489e-06/0.6948, allocations: 1.188 kB / 0.9574 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.437e-05/0.6949, allocations: 86.75 kB / 0.9575 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6949, allocations: 1.688 kB / 0.9575 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002182/0.6951, allocations: 7.719 kB / 0.9575 GB, free: 4.445 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.0004334/0.6955, allocations: 0.7077 MB / 0.9582 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002286/0.6958, allocations: 61.33 kB / 0.9583 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.6958, allocations: 0 / 0.9583 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.906e-05/0.6959, allocations: 25.36 kB / 0.9583 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001829/0.6961, allocations: 15.62 kB / 0.9583 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008046/0.6969, allocations: 425 kB / 0.9587 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001192/0.697, allocations: 0.6839 MB / 0.9594 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.745e-05/0.6971, allocations: 3.094 kB / 0.9594 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.042e-05/0.6971, allocations: 17.31 kB / 0.9594 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.6971, allocations: 0 / 0.9594 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01117/0.7083, allocations: 1.226 MB / 0.9606 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001536/0.7085, allocations: 201.1 kB / 0.9608 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.712/2.42, allocations: 3.938 kB / 0.9608 GB, free: 1.844 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