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/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: translateModel(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booRep.u|booRep.y.1.|booRep.y.2.|booRep.y.3.",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator") translateModel(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booRep.u|booRep.y.1.|booRep.y.2.|booRep.y.3.",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.29/2.29, allocations: 387.4 MB / 394.9 MB, free: 13.4 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.001122/0.001122, allocations: 176.4 kB / 487.4 MB, free: 5.062 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.562/1.562, allocations: 221.5 MB / 0.7824 GB, free: 0.9727 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009602/0.0009602, allocations: 93.62 kB / 0.9219 GB, free: 2.215 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.978e-05/1.983e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2885/0.2886, allocations: 142.4 MB / 1.206 GB, free: 43.93 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9257/1.214, allocations: 148.6 MB / 1.351 GB, free: 18.48 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002266/1.215, allocations: 69.61 kB / 1.351 GB, free: 18.48 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.005852/1.22, allocations: 1.817 MB / 1.353 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.533e-06/1.221, allocations: 0 / 1.353 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.015e-06/1.221, allocations: 0 / 1.353 GB, free: 34.09 MB / 0.8386 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.0003197/1.221, allocations: 365.6 kB / 1.353 GB, free: 33.71 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/1.221, allocations: 14.22 kB / 1.353 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.415e-05/1.221, allocations: 9.172 kB / 1.353 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001482/1.221, allocations: 186.8 kB / 1.354 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.243e-05/1.221, allocations: 1.859 kB / 1.354 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.342e-05/1.221, allocations: 5.156 kB / 1.354 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.392e-05/1.221, allocations: 12.36 kB / 1.354 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.801e-05/1.221, allocations: 45.12 kB / 1.354 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-06/1.221, allocations: 0 / 1.354 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/1.221, allocations: 0.75 kB / 1.354 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/1.221, allocations: 1.344 kB / 1.354 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002918/1.222, allocations: 276.4 kB / 1.354 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 3.258e-05/1.222, allocations: 21.14 kB / 1.354 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.3e-05/1.222, allocations: 11.77 kB / 1.354 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 7.304e-06/1.222, allocations: 0.5625 kB / 1.354 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.332e-05/1.222, allocations: 67.11 kB / 1.354 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/1.222, allocations: 0 / 1.354 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0001496/1.222, allocations: 47.47 kB / 1.354 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.699e-05/1.222, allocations: 51.97 kB / 1.354 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.637e-05/1.222, allocations: 104.3 kB / 1.354 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/1.222, allocations: 25.7 kB / 1.354 GB, free: 32.92 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.733e-05/1.222, allocations: 92.7 kB / 1.354 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.394e-06/1.222, allocations: 4.469 kB / 1.354 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.042e-05/1.222, allocations: 0 / 1.354 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001149/1.222, allocations: 319.8 kB / 1.355 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.92e-05/1.222, allocations: 26.25 kB / 1.355 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.722e-05/1.222, allocations: 48.64 kB / 1.355 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001645/1.223, allocations: 34.38 kB / 1.355 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/1.223, allocations: 0 / 1.355 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000263/1.223, allocations: 115.6 kB / 1.355 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.9e-05/1.223, allocations: 37.98 kB / 1.355 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/1.223, allocations: 0.7969 kB / 1.355 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/1.223, allocations: 3.938 kB / 1.355 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.493e-05/1.223, allocations: 7.906 kB / 1.355 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/1.223, allocations: 0.7969 kB / 1.355 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001655/1.223, allocations: 31.31 kB / 1.355 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.942e-05/1.223, allocations: 9.344 kB / 1.355 GB, free: 32.41 MB / 0.8386 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 () * 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 7.121e-05/1.223, allocations: 116.3 kB / 1.355 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.218e-06/1.223, allocations: 0.7969 kB / 1.355 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.399e-05/1.223, allocations: 5.141 kB / 1.355 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/1.223, allocations: 3.812 kB / 1.355 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/1.223, allocations: 0 / 1.355 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/1.223, allocations: 0.8438 kB / 1.355 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.023e-05/1.223, allocations: 142.2 kB / 1.355 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/1.223, allocations: 96 / 1.355 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.404e-06/1.223, allocations: 4.328 kB / 1.355 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/1.223, allocations: 3.984 kB / 1.355 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/1.223, allocations: 0.6562 kB / 1.355 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/1.223, allocations: 6.453 kB / 1.355 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/1.223, allocations: 3.938 kB / 1.355 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.263e-05/1.224, allocations: 79.39 kB / 1.355 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.914e-05/1.224, allocations: 85.53 kB / 1.355 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.327e-05/1.224, allocations: 0.6562 kB / 1.355 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.407e-05/1.224, allocations: 0.6562 kB / 1.355 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.156e-05/1.224, allocations: 1.312 kB / 1.355 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.017e-06/1.224, allocations: 7.906 kB / 1.355 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.457e-05/1.224, allocations: 80.55 kB / 1.355 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.224, allocations: 0 / 1.355 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001968/1.224, allocations: 23.05 kB / 1.355 GB, free: 31.86 MB / 0.8386 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 () * 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.0001328/1.224, allocations: 109.4 kB / 1.355 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001478/1.224, allocations: 114.6 kB / 1.356 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/1.224, allocations: 0 / 1.356 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.212e-05/1.224, allocations: 11.25 kB / 1.356 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001449/1.224, allocations: 21.58 kB / 1.356 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001618/1.225, allocations: 66.98 kB / 1.356 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002358/1.225, allocations: 0.6863 MB / 1.356 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 1.893e-05/1.225, allocations: 0.5156 kB / 1.356 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.208e-05/1.225, allocations: 11.92 kB / 1.356 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/1.225, allocations: 0 / 1.356 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of Templates: time 0.002767/1.228, allocations: 0.8847 MB / 1.357 GB, free: 30.83 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches