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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001839/0.001839, allocations: 84.08 kB / 19.44 MB, free: 332 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002077/0.002077, allocations: 165.7 kB / 22.76 MB, free: 1.648 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.551/1.551, allocations: 177.1 MB / 203.1 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.376/3.376, allocations: 429.5 MB / 0.6729 GB, free: 4.023 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|intRep.u|intRep.y.2.|intRep.y.1.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.542e-06/1.542e-06, allocations: 0 / 0.8774 GB, free: 6.664 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.088e-05/3.242e-05, allocations: 6.031 kB / 0.8774 GB, free: 6.66 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003753/0.003785, allocations: 1.809 MB / 0.8792 GB, free: 4.863 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002662/0.006447, allocations: 1.214 MB / 0.8804 GB, free: 3.645 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001015/0.006549, allocations: 0 / 0.8804 GB, free: 3.645 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0003416/0.006891, allocations: 59.67 kB / 0.8805 GB, free: 3.586 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0004387/0.007329, allocations: 125.2 kB / 0.8806 GB, free: 3.465 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.000634/0.007963, allocations: 192.1 kB / 0.8808 GB, free: 3.277 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002754/0.008239, allocations: 168.8 kB / 0.8809 GB, free: 3.113 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001139/0.008353, allocations: 17.62 kB / 0.8809 GB, free: 3.094 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001806/0.008533, allocations: 83.8 kB / 0.881 GB, free: 3.012 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001438/0.008677, allocations: 61.33 kB / 0.8811 GB, free: 2.953 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.711e-05/0.008704, allocations: 8 kB / 0.8811 GB, free: 2.945 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002135/0.008918, allocations: 83.75 kB / 0.8812 GB, free: 2.863 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 9.611e-05/0.009014, allocations: 47.83 kB / 0.8812 GB, free: 2.816 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 7.05e-05/0.009084, allocations: 29.23 kB / 0.8812 GB, free: 2.789 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0004162/0.0095, allocations: 215.3 kB / 0.8814 GB, free: 2.578 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.009504, allocations: 0 / 0.8814 GB, free: 2.578 MB / 0.8386 GB Notification: Performance of FrontEnd: time 9.02e-07/0.009505, allocations: 3.25 kB / 0.8814 GB, free: 2.578 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.601e-06/0.00951, allocations: 0 / 0.8814 GB, free: 2.578 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.0008734/0.01038, allocations: 0.5359 MB / 0.882 GB, free: 2 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.01042, allocations: 12.03 kB / 0.882 GB, free: 1.988 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.885e-05/0.0105, allocations: 16.84 kB / 0.882 GB, free: 1.973 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003652/0.01087, allocations: 188.2 kB / 0.8822 GB, free: 1.762 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.84e-05/0.01088, allocations: 4.375 kB / 0.8822 GB, free: 1.758 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.585e-05/0.0109, allocations: 4.375 kB / 0.8822 GB, free: 1.754 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002643/0.01116, allocations: 123.2 kB / 0.8823 GB, free: 1.613 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.01118, allocations: 3.938 kB / 0.8823 GB, free: 1.609 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.01119, allocations: 3.984 kB / 0.8823 GB, free: 1.605 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.604e-05/0.01121, allocations: 4 kB / 0.8823 GB, free: 1.602 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001157/0.01132, allocations: 27.98 kB / 0.8823 GB, free: 1.574 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006396/0.01196, allocations: 363.6 kB / 0.8827 GB, free: 1.184 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002428/0.0122, allocations: 83.08 kB / 0.8828 GB, free: 1.09 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.57e-05/0.01228, allocations: 27.67 kB / 0.8828 GB, free: 1.059 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.719e-05/0.0123, allocations: 96 / 0.8828 GB, free: 1.059 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001825/0.01248, allocations: 84.97 kB / 0.8829 GB, free: 0.9609 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.283e-06/0.01248, allocations: 4 kB / 0.8829 GB, free: 0.957 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0003742/0.01286, allocations: 113.6 kB / 0.883 GB, free: 0.8398 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.197e-05/0.01293, allocations: 81.11 kB / 0.8831 GB, free: 0.7422 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003943/0.01332, allocations: 318.5 kB / 0.8834 GB, free: 424 kB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.982e-05/0.01335, allocations: 37.64 kB / 0.8834 GB, free: 380 kB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001469/0.0135, allocations: 178.8 kB / 0.8836 GB, free: 196 kB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.598e-05/0.01354, allocations: 35.77 kB / 0.8836 GB, free: 160 kB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.913e-05/0.01361, allocations: 31.38 kB / 0.8836 GB, free: 120 kB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0003218/0.01393, allocations: 0.5118 MB / 0.8841 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.207e-05/0.01401, allocations: 23.98 kB / 0.8842 GB, free: 15.57 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001601/0.01417, allocations: 118.1 kB / 0.8843 GB, free: 15.43 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001452/0.01431, allocations: 59.31 kB / 0.8843 GB, free: 15.36 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/0.01431, allocations: 0 / 0.8843 GB, free: 15.36 MB / 0.8542 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002457/0.01456, allocations: 105.5 kB / 0.8844 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.01458, allocations: 4 kB / 0.8844 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.01458, allocations: 0 / 0.8844 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.01459, allocations: 0 / 0.8844 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/0.0147, allocations: 23.92 kB / 0.8845 GB, free: 15.22 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.079e-06/0.01471, allocations: 0 / 0.8845 GB, free: 15.22 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.988e-05/0.01478, allocations: 8.062 kB / 0.8845 GB, free: 15.21 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.146e-05/0.01479, allocations: 8.391 kB / 0.8845 GB, free: 15.21 MB / 0.8542 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.0001709/0.01496, allocations: 173.7 kB / 0.8846 GB, free: 15.03 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.991e-05/0.01501, allocations: 27.84 kB / 0.8847 GB, free: 15 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002792/0.01529, allocations: 111 kB / 0.8848 GB, free: 14.89 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-05/0.0153, allocations: 4 kB / 0.8848 GB, free: 14.88 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.0153, allocations: 0 / 0.8848 GB, free: 14.88 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.01531, allocations: 0 / 0.8848 GB, free: 14.88 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002571/0.01556, allocations: 204.5 kB / 0.885 GB, free: 14.65 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.01557, allocations: 0 / 0.885 GB, free: 14.65 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.711e-05/0.01561, allocations: 8 kB / 0.885 GB, free: 14.64 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.01562, allocations: 4 kB / 0.885 GB, free: 14.64 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-06/0.01562, allocations: 0 / 0.885 GB, free: 14.64 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.01563, allocations: 0 / 0.885 GB, free: 14.64 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.01563, allocations: 0 / 0.885 GB, free: 14.64 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000309/0.01594, allocations: 156.2 kB / 0.8851 GB, free: 14.46 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 4.675e-05/0.01598, allocations: 19.86 kB / 0.8851 GB, free: 14.44 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.999e-05/0.01601, allocations: 7.938 kB / 0.8852 GB, free: 14.43 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.518e-05/0.01607, allocations: 4 kB / 0.8852 GB, free: 14.43 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.787e-05/0.01613, allocations: 15.97 kB / 0.8852 GB, free: 14.41 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.203e-05/0.01614, allocations: 0 / 0.8852 GB, free: 14.41 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0002322/0.01637, allocations: 224.5 kB / 0.8854 GB, free: 14.2 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7e-08/0.01637, allocations: 0 / 0.8854 GB, free: 14.2 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002686/0.01664, allocations: 35.92 kB / 0.8854 GB, free: 14.16 MB / 0.8542 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.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * 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 (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.003066/0.0197, allocations: 461.5 kB / 0.8859 GB, free: 13.89 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002601/0.01996, allocations: 67.59 kB / 0.8859 GB, free: 13.82 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.01997, allocations: 0 / 0.8859 GB, free: 13.82 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001088/0.02008, allocations: 39.61 kB / 0.886 GB, free: 13.77 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000347/0.02042, allocations: 48.62 kB / 0.886 GB, free: 13.73 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006633/0.02109, allocations: 286.7 kB / 0.8863 GB, free: 13.41 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001364/0.02122, allocations: 106.8 kB / 0.8864 GB, free: 13.29 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 8.805e-05/0.02131, allocations: 21.78 kB / 0.8864 GB, free: 13.27 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.762e-05/0.02138, allocations: 24.5 kB / 0.8864 GB, free: 13.25 MB / 0.8542 GB Notification: Performance of SimCode: time 8.21e-07/0.02138, allocations: 7.938 kB / 0.8864 GB, free: 13.24 MB / 0.8542 GB Notification: Performance of Templates: time 0.008643/0.03002, allocations: 2.691 MB / 0.8891 GB, free: 10.59 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.551061212900095]