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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.203/2.203, allocations: 390.3 MB / 405.3 MB, free: 13.42 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 189.2 kB / 498.1 MB, free: 5.664 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 223.2 MB / 0.7948 GB, free: 17.91 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008745/0.0008748, allocations: 106.5 kB / 0.9346 GB, free: 6.215 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003886/0.0003887, allocations: 10.44 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.2658, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1671/0.433, allocations: 149 MB / 1.368 GB, free: 12.98 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002135/0.4332, allocations: 67.97 kB / 1.368 GB, free: 12.91 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.002309/0.4356, allocations: 0.8156 MB / 1.369 GB, free: 12.1 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.573e-06/0.4356, allocations: 0 / 1.369 GB, free: 12.1 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.506e-06/0.4356, allocations: 0 / 1.369 GB, free: 12.1 MB / 0.8698 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.0004251/0.436, allocations: 359.2 kB / 1.37 GB, free: 11.7 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.4361, allocations: 8.031 kB / 1.37 GB, free: 11.69 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.22e-05/0.4361, allocations: 42.48 kB / 1.37 GB, free: 11.64 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.388e-05/0.4362, allocations: 8 kB / 1.37 GB, free: 11.63 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000171/0.4363, allocations: 178.9 kB / 1.37 GB, free: 11.42 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.065e-05/0.4364, allocations: 4 kB / 1.37 GB, free: 11.41 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.178e-05/0.4364, allocations: 4 kB / 1.37 GB, free: 11.41 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002047/0.4366, allocations: 61.67 kB / 1.37 GB, free: 11.34 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.4366, allocations: 3.984 kB / 1.37 GB, free: 11.34 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.846e-06/0.4366, allocations: 0 / 1.37 GB, free: 11.34 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.281e-06/0.4366, allocations: 4 kB / 1.37 GB, free: 11.34 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002004/0.4368, allocations: 63.88 kB / 1.37 GB, free: 11.27 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000384/0.4372, allocations: 272.8 kB / 1.37 GB, free: 10.96 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001453/0.4374, allocations: 54.55 kB / 1.37 GB, free: 10.89 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.092e-05/0.4374, allocations: 0 / 1.37 GB, free: 10.89 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.037e-05/0.4374, allocations: 30.56 kB / 1.37 GB, free: 10.86 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.4375, allocations: 0 / 1.37 GB, free: 10.86 MB / 0.8698 GB Notification: Performance of matching and sorting (n=2): time 0.000402/0.4379, allocations: 113.5 kB / 1.37 GB, free: 10.74 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.256e-05/0.4379, allocations: 51.41 kB / 1.37 GB, free: 10.68 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.686e-05/0.438, allocations: 105.1 kB / 1.371 GB, free: 10.57 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.403e-05/0.438, allocations: 25.7 kB / 1.371 GB, free: 10.54 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 3.988e-05/0.4381, allocations: 80.14 kB / 1.371 GB, free: 10.45 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 1.568e-05/0.4381, allocations: 11.91 kB / 1.371 GB, free: 10.44 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.998e-06/0.4381, allocations: 0 / 1.371 GB, free: 10.44 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001281/0.4382, allocations: 314.8 kB / 1.371 GB, free: 10.12 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.834e-05/0.4383, allocations: 23.98 kB / 1.371 GB, free: 10.1 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.573e-05/0.4384, allocations: 23.98 kB / 1.371 GB, free: 10.08 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.391e-05/0.4385, allocations: 23.97 kB / 1.371 GB, free: 10.05 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.4385, allocations: 0 / 1.371 GB, free: 10.05 MB / 0.8698 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000224/0.4388, allocations: 85.66 kB / 1.371 GB, free: 9.965 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.4388, allocations: 5.875 kB / 1.371 GB, free: 9.961 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.4388, allocations: 7.922 kB / 1.371 GB, free: 9.953 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.4388, allocations: 4 kB / 1.371 GB, free: 9.949 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.4389, allocations: 15.98 kB / 1.371 GB, free: 9.934 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.459e-05/0.439, allocations: 3.953 kB / 1.371 GB, free: 9.93 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.117e-05/0.439, allocations: 8.281 kB / 1.371 GB, free: 9.922 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.594e-06/0.439, allocations: 4 kB / 1.371 GB, free: 9.918 MB / 0.8698 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 7.858e-05/0.4391, allocations: 109.8 kB / 1.371 GB, free: 9.801 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.655e-05/0.4392, allocations: 7.906 kB / 1.371 GB, free: 9.793 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.323e-05/0.4392, allocations: 11.12 kB / 1.371 GB, free: 9.781 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.4392, allocations: 0 / 1.371 GB, free: 9.781 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.4392, allocations: 0 / 1.371 GB, free: 9.781 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.4393, allocations: 7.953 kB / 1.371 GB, free: 9.773 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001645/0.4394, allocations: 161.7 kB / 1.371 GB, free: 9.566 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.4394, allocations: 3.938 kB / 1.371 GB, free: 9.562 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.83e-05/0.4395, allocations: 15.98 kB / 1.372 GB, free: 9.547 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.4395, allocations: 0 / 1.372 GB, free: 9.547 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.394e-06/0.4396, allocations: 0 / 1.372 GB, free: 9.547 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.4396, allocations: 0 / 1.372 GB, free: 9.547 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.4396, allocations: 0 / 1.372 GB, free: 9.547 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002801/0.4399, allocations: 187.4 kB / 1.372 GB, free: 9.348 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.493e-05/0.4399, allocations: 77.11 kB / 1.372 GB, free: 9.254 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.519e-05/0.4399, allocations: 4 kB / 1.372 GB, free: 9.25 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.24e-05/0.44, allocations: 12.03 kB / 1.372 GB, free: 9.238 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.376e-05/0.4401, allocations: 7.984 kB / 1.372 GB, free: 9.23 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-06/0.4401, allocations: 0 / 1.372 GB, free: 9.23 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 4.436e-05/0.4401, allocations: 87.27 kB / 1.372 GB, free: 9.145 MB / 0.8698 GB Notification: Performance of sort global known variables: time 2.6e-07/0.4401, allocations: 0 / 1.372 GB, free: 9.145 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002184/0.4404, allocations: 7.906 kB / 1.372 GB, free: 9.137 MB / 0.8698 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.0005819/0.4409, allocations: 0.7316 MB / 1.373 GB, free: 8.379 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002285/0.4412, allocations: 51.98 kB / 1.373 GB, free: 8.328 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.4412, allocations: 0 / 1.373 GB, free: 8.328 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.000111/0.4413, allocations: 31.97 kB / 1.373 GB, free: 8.297 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001548/0.4415, allocations: 1.25 kB / 1.373 GB, free: 8.297 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008676/0.4424, allocations: 442.5 kB / 1.373 GB, free: 7.809 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.4426, allocations: 0.6809 MB / 1.374 GB, free: 7.102 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 5.168e-05/0.4427, allocations: 4 kB / 1.374 GB, free: 7.098 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.743e-05/0.4428, allocations: 19.42 kB / 1.374 GB, free: 7.078 MB / 0.8698 GB Notification: Performance of SimCode: time 2.31e-07/0.4428, allocations: 4 kB / 1.374 GB, free: 7.074 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01333/0.4561, allocations: 1.206 MB / 1.375 GB, free: 6.039 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001744/0.4563, allocations: 208.1 kB / 1.375 GB, free: 5.793 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.479/1.935, allocations: 0 / 1.375 GB, free: 5.793 MB / 0.8698 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