Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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: 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_10_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_10_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.005305/0.005305, allocations: 101.5 kB / 15.88 MB, free: 5.867 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.001304/0.001304, allocations: 198.3 kB / 16.79 MB, free: 5.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 222.9 MB / 240.5 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.531/2.531, allocations: 437 MB / 0.7106 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 67.91 kB / 0.8692 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6723/0.6737, allocations: 151.6 MB / 1.017 GB, free: 2.758 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003575/0.6774, allocations: 1.828 MB / 1.019 GB, free: 0.918 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001909/0.6793, allocations: 1.096 MB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001617/0.6795, allocations: 3.938 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0004608/0.68, allocations: 51.86 kB / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003271/0.6803, allocations: 71.73 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008388/0.6812, allocations: 203.3 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002976/0.6815, allocations: 127.6 kB / 1.021 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001389/0.6817, allocations: 25.09 kB / 1.021 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001474/0.6818, allocations: 51.78 kB / 1.021 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000149/0.682, allocations: 63.69 kB / 1.021 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.673e-05/0.682, allocations: 11.94 kB / 1.021 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000201/0.6822, allocations: 55.95 kB / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.236e-05/0.6823, allocations: 35.91 kB / 1.021 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.272e-05/0.6824, allocations: 51.61 kB / 1.021 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002938/0.6827, allocations: 161.6 kB / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.6827, allocations: 0 / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.793e-06/0.6827, allocations: 0 / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.161e-05/0.6827, allocations: 0 / 1.021 GB, free: 14.92 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.0008048/0.6836, allocations: 488.4 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.6836, allocations: 12.03 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.963e-05/0.6837, allocations: 20.66 kB / 1.022 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000318/0.684, allocations: 248.9 kB / 1.022 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.403e-05/0.684, allocations: 4.359 kB / 1.022 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.826e-05/0.6841, allocations: 8.125 kB / 1.022 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002305/0.6843, allocations: 100.2 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.6843, allocations: 0 / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.6843, allocations: 0 / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.696e-05/0.6844, allocations: 8 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001203/0.6845, allocations: 35.91 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005375/0.685, allocations: 344.8 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002308/0.6853, allocations: 90.66 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.761e-05/0.6854, allocations: 44.81 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.62e-05/0.6854, allocations: 0 / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002539/0.6857, allocations: 83.27 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.453e-06/0.6857, allocations: 0 / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0003969/0.6861, allocations: 137.5 kB / 1.023 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.501e-05/0.6861, allocations: 102.8 kB / 1.023 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002883/0.6864, allocations: 270.8 kB / 1.023 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.6865, allocations: 29.7 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.611e-05/0.6866, allocations: 116.1 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.984e-05/0.6866, allocations: 23.72 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.28e-05/0.6867, allocations: 25.72 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001236/0.6868, allocations: 334.8 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.967e-05/0.6869, allocations: 27.98 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001133/0.687, allocations: 72.22 kB / 1.024 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001473/0.6871, allocations: 73.62 kB / 1.024 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.6872, allocations: 0 / 1.024 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002426/0.6874, allocations: 109.5 kB / 1.024 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.6874, allocations: 4 kB / 1.024 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.6874, allocations: 400 / 1.024 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.6875, allocations: 32 / 1.024 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.6876, allocations: 23.92 kB / 1.024 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.6876, allocations: 0 / 1.024 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.327e-05/0.6877, allocations: 15.84 kB / 1.024 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.6877, allocations: 4 kB / 1.024 GB, free: 11.85 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 ($PRE.intTab.combiTimeTable.nextTimeEvent,$whenCondition1,intRep.y[2],intRep.y[1],intTab.combiTimeTable.nextTimeEventScaled,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent,intTab.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001446/0.6878, allocations: 139 kB / 1.024 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.327e-05/0.6879, allocations: 15.81 kB / 1.024 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.574e-05/0.6879, allocations: 25.38 kB / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/0.688, allocations: 4 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.688, allocations: 4 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.688, allocations: 3.938 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002161/0.6882, allocations: 225.5 kB / 1.024 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.6882, allocations: 0 / 1.024 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.727e-05/0.6883, allocations: 7.984 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.6883, allocations: 0 / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.201e-05/0.6883, allocations: 4 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.6883, allocations: 0 / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.6883, allocations: 192 / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002887/0.6886, allocations: 148.8 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.525e-05/0.6887, allocations: 92.86 kB / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.46e-05/0.6887, allocations: 11.98 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.668e-05/0.6888, allocations: 3.984 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.679e-05/0.6889, allocations: 7.984 kB / 1.024 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-05/0.6889, allocations: 11.94 kB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001871/0.6891, allocations: 192.6 kB / 1.025 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.61e-07/0.6891, allocations: 0 / 1.025 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002761/0.6894, allocations: 31.98 kB / 1.025 GB, free: 10.85 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001152/0.6905, allocations: 442.8 kB / 1.025 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002398/0.6908, allocations: 71.89 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.6908, allocations: 3.938 kB / 1.025 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.222e-05/0.6909, allocations: 31.98 kB / 1.025 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003232/0.6912, allocations: 41.64 kB / 1.025 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006159/0.6918, allocations: 354.3 kB / 1.026 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002889/0.6921, allocations: 0.732 MB / 1.026 GB, free: 9.285 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.28e-05/0.6922, allocations: 19.44 kB / 1.026 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of SimCode: time 3.21e-07/0.6922, allocations: 0 / 1.026 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of Templates: time 0.005821/0.698, allocations: 2.586 MB / 1.029 GB, free: 6.691 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches