Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|intRep.u|intRep.y.2.|intRep.y.1.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator") translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|intRep.u|intRep.y.2.|intRep.y.1.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.282/2.282, allocations: 390.3 MB / 402.8 MB, free: 6.707 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.00114/0.00114, allocations: 176.8 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.568/1.568, allocations: 221.3 MB / 0.7915 GB, free: 5.418 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.0009179/0.0009179, allocations: 91.95 kB / 0.9317 GB, free: 5.734 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.218e-05/3.221e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.3179, allocations: 143 MB / 1.219 GB, free: 13.52 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.073/1.391, allocations: 154.4 MB / 1.37 GB, free: 15.62 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002368/1.391, allocations: 78.33 kB / 1.37 GB, free: 15.59 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.01531/1.406, allocations: 5.536 MB / 1.375 GB, free: 10.93 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.974e-06/1.407, allocations: 0 / 1.375 GB, free: 10.93 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.156e-05/1.407, allocations: 4 kB / 1.375 GB, free: 10.93 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006314/1.407, allocations: 470.6 kB / 1.375 GB, free: 10.43 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/1.407, allocations: 8.031 kB / 1.376 GB, free: 10.42 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.396e-05/1.407, allocations: 19.77 kB / 1.376 GB, free: 10.4 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004268/1.408, allocations: 262.1 kB / 1.376 GB, free: 10.12 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.588e-05/1.408, allocations: 4 kB / 1.376 GB, free: 10.12 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.277e-05/1.408, allocations: 6.938 kB / 1.376 GB, free: 10.11 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001753/1.408, allocations: 101.7 kB / 1.376 GB, free: 10.01 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.395e-06/1.408, allocations: 0 / 1.376 GB, free: 10.01 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.344e-05/1.408, allocations: 4 kB / 1.376 GB, free: 10.01 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.796e-05/1.408, allocations: 4 kB / 1.376 GB, free: 10 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.237e-05/1.408, allocations: 34.3 kB / 1.376 GB, free: 9.98 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005367/1.409, allocations: 365.9 kB / 1.376 GB, free: 9.617 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001507/1.409, allocations: 87.64 kB / 1.376 GB, free: 9.543 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.462e-05/1.409, allocations: 38.84 kB / 1.376 GB, free: 9.512 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.12e-05/1.409, allocations: 0 / 1.376 GB, free: 9.512 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001656/1.409, allocations: 74.83 kB / 1.376 GB, free: 9.438 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.382e-06/1.409, allocations: 0 / 1.376 GB, free: 9.438 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0002756/1.409, allocations: 119.9 kB / 1.377 GB, free: 9.332 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.999e-05/1.41, allocations: 106.8 kB / 1.377 GB, free: 9.203 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002921/1.41, allocations: 241.3 kB / 1.377 GB, free: 8.996 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/1.41, allocations: 33.7 kB / 1.377 GB, free: 8.957 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.186e-05/1.41, allocations: 117.7 kB / 1.377 GB, free: 8.863 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.548e-05/1.41, allocations: 26.77 kB / 1.377 GB, free: 8.84 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.33e-06/1.41, allocations: 0 / 1.377 GB, free: 8.84 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000146/1.41, allocations: 326.5 kB / 1.377 GB, free: 8.52 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.939e-05/1.41, allocations: 22.5 kB / 1.377 GB, free: 8.504 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.72e-05/1.41, allocations: 79.89 kB / 1.377 GB, free: 8.426 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.967e-05/1.41, allocations: 31.23 kB / 1.378 GB, free: 8.402 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/1.41, allocations: 0 / 1.378 GB, free: 8.402 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001809/1.411, allocations: 117.2 kB / 1.378 GB, free: 8.301 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/1.411, allocations: 4 kB / 1.378 GB, free: 8.297 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/1.411, allocations: 4 kB / 1.378 GB, free: 8.293 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/1.411, allocations: 3.953 kB / 1.378 GB, free: 8.289 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/1.411, allocations: 15.98 kB / 1.378 GB, free: 8.273 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/1.411, allocations: 4.031 kB / 1.378 GB, free: 8.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.032e-05/1.411, allocations: 7.938 kB / 1.378 GB, free: 8.262 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.381e-05/1.411, allocations: 4 kB / 1.378 GB, free: 8.258 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 1 * 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 9.345e-05/1.411, allocations: 116.4 kB / 1.378 GB, free: 8.141 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.913e-05/1.411, allocations: 15.81 kB / 1.378 GB, free: 8.125 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002533/1.411, allocations: 131.7 kB / 1.378 GB, free: 8.016 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.094e-05/1.411, allocations: 4 kB / 1.378 GB, free: 8.012 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/1.411, allocations: 3.953 kB / 1.378 GB, free: 8.008 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/1.411, allocations: 4 kB / 1.378 GB, free: 8.004 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002358/1.412, allocations: 232.8 kB / 1.378 GB, free: 7.754 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/1.412, allocations: 0 / 1.378 GB, free: 7.754 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.548e-05/1.412, allocations: 7.984 kB / 1.378 GB, free: 7.746 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/1.412, allocations: 0 / 1.378 GB, free: 7.746 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/1.412, allocations: 7.938 kB / 1.378 GB, free: 7.738 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/1.412, allocations: 0 / 1.378 GB, free: 7.738 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/1.412, allocations: 0 / 1.378 GB, free: 7.738 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002208/1.412, allocations: 153.1 kB / 1.378 GB, free: 7.59 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.876e-05/1.412, allocations: 104.3 kB / 1.378 GB, free: 7.473 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.868e-05/1.412, allocations: 3.312 kB / 1.378 GB, free: 7.473 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.915e-05/1.412, allocations: 4 kB / 1.378 GB, free: 7.469 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.954e-05/1.412, allocations: 10.86 kB / 1.378 GB, free: 7.461 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.889e-06/1.412, allocations: 4 kB / 1.378 GB, free: 7.457 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001831/1.412, allocations: 197 kB / 1.379 GB, free: 7.297 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.412, allocations: 0 / 1.379 GB, free: 7.297 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002838/1.413, allocations: 59.08 kB / 1.379 GB, free: 7.246 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: 6 ($whenCondition1,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001042/1.414, allocations: 405.3 kB / 1.379 GB, free: 6.973 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002534/1.414, allocations: 73.03 kB / 1.379 GB, free: 6.918 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/1.414, allocations: 0 / 1.379 GB, free: 6.918 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.439e-05/1.414, allocations: 42.11 kB / 1.379 GB, free: 6.887 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002651/1.414, allocations: 32.3 kB / 1.379 GB, free: 6.863 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004538/1.415, allocations: 216.6 kB / 1.379 GB, free: 6.66 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003171/1.415, allocations: 0.7278 MB / 1.38 GB, free: 5.91 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.86e-05/1.415, allocations: 25.5 kB / 1.38 GB, free: 5.883 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.434e-05/1.415, allocations: 23.42 kB / 1.38 GB, free: 5.859 MB / 0.8386 GB Notification: Performance of SimCode: time 5.01e-07/1.415, allocations: 0 / 1.38 GB, free: 5.859 MB / 0.8386 GB Notification: Performance of Templates: time 0.005654/1.421, allocations: 2.496 MB / 1.383 GB, free: 3.387 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches