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/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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 99.55 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.001171/0.001172, allocations: 177.3 kB / 15.94 MB, free: 228 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.464/1.464, allocations: 223.2 MB / 239.9 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.63/2.63, allocations: 436.5 MB / 0.7104 GB, free: 7.902 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000439/0.0004391, allocations: 8 kB / 0.8708 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7624/0.7629, allocations: 153.6 MB / 1.021 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003101/0.7661, allocations: 1.447 MB / 1.022 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001903/0.768, allocations: 0.9953 MB / 1.023 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/0.7682, allocations: 0 / 1.023 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0003535/0.7685, allocations: 55.73 kB / 1.023 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002115/0.7688, allocations: 59.84 kB / 1.023 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006201/0.7694, allocations: 194.2 kB / 1.023 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000214/0.7696, allocations: 87.81 kB / 1.024 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.7697, allocations: 13.11 kB / 1.024 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.602e-05/0.7698, allocations: 55.77 kB / 1.024 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.849e-05/0.7699, allocations: 55.75 kB / 1.024 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.538e-05/0.77, allocations: 3.938 kB / 1.024 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001299/0.7701, allocations: 43.98 kB / 1.024 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.339e-05/0.7702, allocations: 35.89 kB / 1.024 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.271e-05/0.7703, allocations: 45.64 kB / 1.024 GB, free: 14 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002035/0.7705, allocations: 153.6 kB / 1.024 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.7705, allocations: 0 / 1.024 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.326e-06/0.7705, allocations: 0 / 1.024 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.7705, allocations: 3.938 kB / 1.024 GB, free: 13.85 MB / 0.7794 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.0006818/0.7712, allocations: 460.3 kB / 1.024 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.7712, allocations: 11.98 kB / 1.024 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.083e-05/0.7713, allocations: 19.81 kB / 1.024 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003204/0.7716, allocations: 243.8 kB / 1.025 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.156e-05/0.7716, allocations: 4 kB / 1.025 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.564e-05/0.7717, allocations: 4 kB / 1.025 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002022/0.7719, allocations: 96.12 kB / 1.025 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.7719, allocations: 0 / 1.025 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.548e-05/0.7719, allocations: 4 kB / 1.025 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.263e-05/0.7719, allocations: 7.984 kB / 1.025 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001074/0.7721, allocations: 35.92 kB / 1.025 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000542/0.7726, allocations: 360.6 kB / 1.025 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002186/0.7728, allocations: 78.67 kB / 1.025 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.306e-05/0.7729, allocations: 4 kB / 1.025 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002271/0.7731, allocations: 87.47 kB / 1.025 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 2.064e-06/0.7731, allocations: 0 / 1.025 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0004469/0.7736, allocations: 210.6 kB / 1.026 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.529e-05/0.7737, allocations: 110.8 kB / 1.026 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002959/0.774, allocations: 259 kB / 1.026 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.681e-05/0.774, allocations: 33.77 kB / 1.026 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.7741, allocations: 120 kB / 1.026 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.035e-05/0.7742, allocations: 23.73 kB / 1.026 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.047e-06/0.7742, allocations: 0 / 1.026 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001794/0.7744, allocations: 334.7 kB / 1.026 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.915e-05/0.7744, allocations: 27.98 kB / 1.026 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001156/0.7746, allocations: 68.22 kB / 1.026 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001037/0.7747, allocations: 36 kB / 1.026 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.7747, allocations: 0 / 1.026 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002264/0.7749, allocations: 117.7 kB / 1.027 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.775, allocations: 4 kB / 1.027 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.775, allocations: 3.984 kB / 1.027 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.775, allocations: 48 / 1.027 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.7751, allocations: 15.98 kB / 1.027 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.7751, allocations: 0 / 1.027 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.003e-05/0.7752, allocations: 8 kB / 1.027 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.23e-05/0.7752, allocations: 12.02 kB / 1.027 GB, free: 10.82 MB / 0.7794 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.y,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * Number of discrete states: 0 () * Number of clocked 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 0.0001533/0.7754, allocations: 157.7 kB / 1.027 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.597e-05/0.7754, allocations: 15.81 kB / 1.027 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.431e-05/0.7755, allocations: 17.41 kB / 1.027 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-05/0.7755, allocations: 3.984 kB / 1.027 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.7755, allocations: 4 kB / 1.027 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.7755, allocations: 0 / 1.027 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002069/0.7757, allocations: 233.3 kB / 1.027 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.7757, allocations: 4 kB / 1.027 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.793e-05/0.7758, allocations: 4 kB / 1.027 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.7758, allocations: 0 / 1.027 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.7758, allocations: 4 kB / 1.027 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.7758, allocations: 3.984 kB / 1.027 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.7758, allocations: 0 / 1.027 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002367/0.776, allocations: 140.8 kB / 1.027 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.814e-05/0.7761, allocations: 100.9 kB / 1.027 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.867e-05/0.7762, allocations: 8 kB / 1.027 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.162e-05/0.7762, allocations: 0 / 1.027 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.517e-05/0.7763, allocations: 11.98 kB / 1.027 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.566e-05/0.7763, allocations: 7.984 kB / 1.027 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001778/0.7765, allocations: 188.6 kB / 1.027 GB, free: 9.844 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7765, allocations: 4 kB / 1.028 GB, free: 9.84 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002575/0.7768, allocations: 35.98 kB / 1.028 GB, free: 9.805 MB / 0.7794 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.y,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * 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.001005/0.7778, allocations: 423.2 kB / 1.028 GB, free: 9.539 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002105/0.778, allocations: 71.89 kB / 1.028 GB, free: 9.469 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.778, allocations: 4 kB / 1.028 GB, free: 9.465 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.252e-05/0.7781, allocations: 31.98 kB / 1.028 GB, free: 9.434 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002513/0.7784, allocations: 35.61 kB / 1.028 GB, free: 9.398 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005415/0.7789, allocations: 314.1 kB / 1.028 GB, free: 9.07 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003072/0.7792, allocations: 0.7282 MB / 1.029 GB, free: 8.316 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.559e-05/0.7793, allocations: 21.38 kB / 1.029 GB, free: 8.297 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.657e-05/0.7794, allocations: 23.42 kB / 1.029 GB, free: 8.273 MB / 0.7794 GB Notification: Performance of SimCode: time 5.11e-07/0.7794, allocations: 0 / 1.029 GB, free: 8.273 MB / 0.7794 GB Notification: Performance of Templates: time 0.005716/0.7851, allocations: 2.355 MB / 1.031 GB, free: 5.934 MB / 0.7794 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