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.001108/0.001108, allocations: 109.2 kB / 16.37 MB, free: 6.016 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.001102/0.001102, allocations: 197.3 kB / 17.31 MB, free: 5.613 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.432/1.432, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.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.389/2.389, allocations: 437.1 MB / 0.7112 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 65.12 kB / 0.8707 GB, free: 1.465 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.277, allocations: 151.6 MB / 1.019 GB, free: 9.871 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003003/0.28, allocations: 1.779 MB / 1.021 GB, free: 8.074 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001614/0.2817, allocations: 1.107 MB / 1.022 GB, free: 6.957 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.095e-05/0.2818, allocations: 8 kB / 1.022 GB, free: 6.949 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0002881/0.282, allocations: 51.73 kB / 1.022 GB, free: 6.898 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0002288/0.2823, allocations: 83.66 kB / 1.022 GB, free: 6.816 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005786/0.2829, allocations: 231.9 kB / 1.022 GB, free: 6.594 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001988/0.2831, allocations: 135.7 kB / 1.022 GB, free: 6.461 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/0.2832, allocations: 29.11 kB / 1.022 GB, free: 6.434 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 9.435e-05/0.2833, allocations: 63.7 kB / 1.022 GB, free: 6.371 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001029/0.2834, allocations: 67.69 kB / 1.022 GB, free: 6.305 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.127e-05/0.2835, allocations: 11.94 kB / 1.022 GB, free: 6.293 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001559/0.2836, allocations: 71.94 kB / 1.022 GB, free: 6.223 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 7.695e-05/0.2837, allocations: 39.91 kB / 1.022 GB, free: 6.184 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 6.806e-05/0.2838, allocations: 59.55 kB / 1.022 GB, free: 6.125 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002734/0.2841, allocations: 199.4 kB / 1.023 GB, free: 5.93 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2841, allocations: 0 / 1.023 GB, free: 5.93 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.803e-06/0.2841, allocations: 4 kB / 1.023 GB, free: 5.926 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.381e-06/0.2841, allocations: 0 / 1.023 GB, free: 5.926 MB / 0.795 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.0006462/0.2847, allocations: 492.3 kB / 1.023 GB, free: 5.391 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.138e-05/0.2848, allocations: 8.922 kB / 1.023 GB, free: 5.383 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.084e-05/0.2848, allocations: 16.75 kB / 1.023 GB, free: 5.367 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003173/0.2852, allocations: 252.9 kB / 1.023 GB, free: 5.078 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.2852, allocations: 384 / 1.023 GB, free: 5.078 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.838e-05/0.2852, allocations: 12.06 kB / 1.023 GB, free: 5.066 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001896/0.2854, allocations: 96.23 kB / 1.023 GB, free: 4.957 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.2854, allocations: 3.938 kB / 1.023 GB, free: 4.953 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.279e-05/0.2854, allocations: 0 / 1.023 GB, free: 4.953 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.752e-05/0.2855, allocations: 4 kB / 1.023 GB, free: 4.949 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001009/0.2856, allocations: 31.97 kB / 1.023 GB, free: 4.918 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000475/0.286, allocations: 356.7 kB / 1.024 GB, free: 4.52 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002054/0.2863, allocations: 90.7 kB / 1.024 GB, free: 4.422 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.798e-05/0.2863, allocations: 32.84 kB / 1.024 GB, free: 4.387 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.961e-05/0.2864, allocations: 4 kB / 1.024 GB, free: 4.383 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000157/0.2865, allocations: 87.27 kB / 1.024 GB, free: 4.285 MB / 0.795 GB Notification: Performance of pre-optimization done (n=8): time 1.703e-06/0.2866, allocations: 4 kB / 1.024 GB, free: 4.281 MB / 0.795 GB Notification: Performance of matching and sorting (n=8): time 0.0003634/0.2869, allocations: 141.4 kB / 1.024 GB, free: 4.137 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.772e-05/0.287, allocations: 106.8 kB / 1.024 GB, free: 4.008 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002668/0.2873, allocations: 259 kB / 1.025 GB, free: 3.746 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.2873, allocations: 25.7 kB / 1.025 GB, free: 3.715 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.535e-05/0.2874, allocations: 116.1 kB / 1.025 GB, free: 3.598 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.368e-05/0.2874, allocations: 15.81 kB / 1.025 GB, free: 3.582 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.109e-05/0.2875, allocations: 37.69 kB / 1.025 GB, free: 3.539 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001366/0.2876, allocations: 330.8 kB / 1.025 GB, free: 3.207 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.097e-05/0.2877, allocations: 23.98 kB / 1.025 GB, free: 3.184 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.978e-05/0.2878, allocations: 76.2 kB / 1.025 GB, free: 3.094 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001381/0.2879, allocations: 65.64 kB / 1.025 GB, free: 3.023 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2879, allocations: 4 kB / 1.025 GB, free: 3.02 MB / 0.795 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000214/0.2882, allocations: 117.3 kB / 1.025 GB, free: 2.898 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.2882, allocations: 8 kB / 1.025 GB, free: 2.891 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.2882, allocations: 0 / 1.025 GB, free: 2.891 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.2882, allocations: 0 / 1.025 GB, free: 2.891 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.759e-05/0.2883, allocations: 15.98 kB / 1.025 GB, free: 2.875 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.76e-06/0.2883, allocations: 0 / 1.025 GB, free: 2.875 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.522e-05/0.2884, allocations: 15.88 kB / 1.025 GB, free: 2.859 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-06/0.2884, allocations: 0 / 1.025 GB, free: 2.859 MB / 0.795 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.0001288/0.2886, allocations: 150.7 kB / 1.025 GB, free: 2.703 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.944e-05/0.2886, allocations: 15.81 kB / 1.025 GB, free: 2.688 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.361e-05/0.2886, allocations: 21.41 kB / 1.026 GB, free: 2.672 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.2887, allocations: 0 / 1.026 GB, free: 2.672 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.2887, allocations: 0 / 1.026 GB, free: 2.672 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.2887, allocations: 7.922 kB / 1.026 GB, free: 2.664 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000184/0.2889, allocations: 225.5 kB / 1.026 GB, free: 2.395 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.2889, allocations: 0 / 1.026 GB, free: 2.395 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.768e-05/0.2889, allocations: 4 kB / 1.026 GB, free: 2.391 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.2889, allocations: 0 / 1.026 GB, free: 2.391 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.2889, allocations: 8 kB / 1.026 GB, free: 2.383 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.289, allocations: 4 kB / 1.026 GB, free: 2.379 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.289, allocations: 0 / 1.026 GB, free: 2.379 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002323/0.2892, allocations: 141.2 kB / 1.026 GB, free: 2.223 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.78e-05/0.2893, allocations: 96.91 kB / 1.026 GB, free: 2.109 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.67e-05/0.2893, allocations: 4 kB / 1.026 GB, free: 2.105 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.331e-05/0.2894, allocations: 8 kB / 1.026 GB, free: 2.098 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.608e-05/0.2894, allocations: 7.984 kB / 1.026 GB, free: 2.09 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.132e-05/0.2894, allocations: 15.92 kB / 1.026 GB, free: 2.074 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.000157/0.2896, allocations: 188.6 kB / 1.026 GB, free: 1.891 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.343e-06/0.2896, allocations: 0 / 1.026 GB, free: 1.891 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002462/0.2899, allocations: 43.92 kB / 1.026 GB, free: 1.848 MB / 0.795 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.0009516/0.2908, allocations: 419.5 kB / 1.027 GB, free: 1.586 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002211/0.2911, allocations: 67.95 kB / 1.027 GB, free: 1.52 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2911, allocations: 4.062 kB / 1.027 GB, free: 1.516 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 8.827e-05/0.2912, allocations: 39.92 kB / 1.027 GB, free: 1.477 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002825/0.2915, allocations: 57.44 kB / 1.027 GB, free: 1.426 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004961/0.292, allocations: 290.9 kB / 1.027 GB, free: 1.113 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002727/0.2922, allocations: 0.7201 MB / 1.028 GB, free: 376 kB / 0.795 GB Notification: Performance of simCode: alias equations: time 6.692e-05/0.2923, allocations: 29.38 kB / 1.028 GB, free: 348 kB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.138e-05/0.2924, allocations: 15.44 kB / 1.028 GB, free: 332 kB / 0.795 GB Notification: Performance of SimCode: time 2.6e-07/0.2924, allocations: 0 / 1.028 GB, free: 332 kB / 0.795 GB Notification: Performance of Templates: time 0.005565/0.2979, allocations: 2.529 MB / 1.03 GB, free: 13.82 MB / 0.8106 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 -s gbode -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