Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001642/0.001642, allocations: 110.2 kB / 19.69 MB, free: 2.254 MB / 14.72 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.001895/0.001895, allocations: 215.3 kB / 23.01 MB, free: 4.566 MB / 14.72 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.46/1.46, allocations: 230.6 MB / 256.8 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.173/3.173, allocations: 0.49 GB / 0.7958 GB, free: 33.52 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_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_12_Buildings.Utilities.Math.Examples.IntegerReplicator") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002061/0.002061, allocations: 63.5 kB / 1.155 GB, free: 25.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.306/0.3081, allocations: 176.1 MB / 1.327 GB, free: 1.445 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003238/0.3113, allocations: 1.811 MB / 1.329 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002248/0.3135, allocations: 1.294 MB / 1.33 GB, free: 14.32 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.741e-05/0.3136, allocations: 0 / 1.33 GB, free: 14.32 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0003162/0.314, allocations: 63.67 kB / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0003493/0.3143, allocations: 119.5 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005762/0.3149, allocations: 196.7 kB / 1.331 GB, free: 13.95 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002553/0.3151, allocations: 167.5 kB / 1.331 GB, free: 13.79 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.3152, allocations: 9.641 kB / 1.331 GB, free: 13.77 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001314/0.3154, allocations: 71.69 kB / 1.331 GB, free: 13.7 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001291/0.3155, allocations: 71.75 kB / 1.331 GB, free: 13.63 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.959e-05/0.3155, allocations: 11.92 kB / 1.331 GB, free: 13.62 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001889/0.3157, allocations: 79.89 kB / 1.331 GB, free: 13.54 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 8.111e-05/0.3158, allocations: 51.83 kB / 1.331 GB, free: 13.49 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.611e-05/0.3159, allocations: 55.61 kB / 1.331 GB, free: 13.44 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003541/0.3162, allocations: 211.1 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3162, allocations: 4 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.974e-06/0.3162, allocations: 0 / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.57e-06/0.3162, allocations: 0 / 1.331 GB, free: 13.23 MB / 1.029 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.0006889/0.3169, allocations: 426.9 kB / 1.332 GB, free: 12.77 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.034e-05/0.317, allocations: 8.031 kB / 1.332 GB, free: 12.77 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.694e-05/0.317, allocations: 20.83 kB / 1.332 GB, free: 12.75 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003459/0.3174, allocations: 194.9 kB / 1.332 GB, free: 12.53 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.79e-05/0.3174, allocations: 8.312 kB / 1.332 GB, free: 12.52 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.839e-05/0.3174, allocations: 12.11 kB / 1.332 GB, free: 12.51 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002099/0.3176, allocations: 92.23 kB / 1.332 GB, free: 12.41 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.3176, allocations: 0 / 1.332 GB, free: 12.41 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.376e-05/0.3176, allocations: 3.984 kB / 1.332 GB, free: 12.4 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.474e-05/0.3176, allocations: 0 / 1.332 GB, free: 12.4 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001211/0.3178, allocations: 43.91 kB / 1.332 GB, free: 12.36 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005221/0.3183, allocations: 331.7 kB / 1.332 GB, free: 11.99 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002362/0.3185, allocations: 86.69 kB / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.678e-05/0.3186, allocations: 28.84 kB / 1.332 GB, free: 11.87 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.641e-05/0.3186, allocations: 8 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001792/0.3188, allocations: 75.38 kB / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.463e-06/0.3188, allocations: 0 / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0003735/0.3192, allocations: 141.5 kB / 1.333 GB, free: 11.63 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.885e-05/0.3193, allocations: 110.8 kB / 1.333 GB, free: 11.5 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003171/0.3196, allocations: 275.1 kB / 1.333 GB, free: 11.21 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.278e-05/0.3196, allocations: 29.7 kB / 1.333 GB, free: 11.18 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.247e-05/0.3197, allocations: 124.1 kB / 1.333 GB, free: 11.05 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.026e-05/0.3197, allocations: 19.86 kB / 1.333 GB, free: 11.04 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.902e-05/0.3198, allocations: 25.7 kB / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001819/0.32, allocations: 330.8 kB / 1.334 GB, free: 10.67 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.861e-05/0.32, allocations: 27.98 kB / 1.334 GB, free: 10.64 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001106/0.3201, allocations: 72.2 kB / 1.334 GB, free: 10.56 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001604/0.3203, allocations: 77.58 kB / 1.334 GB, free: 10.48 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3203, allocations: 0 / 1.334 GB, free: 10.48 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002282/0.3205, allocations: 113.6 kB / 1.334 GB, free: 10.36 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.3205, allocations: 4 kB / 1.334 GB, free: 10.36 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.3205, allocations: 0 / 1.334 GB, free: 10.36 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.3206, allocations: 0 / 1.334 GB, free: 10.36 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.44e-05/0.3207, allocations: 19.92 kB / 1.334 GB, free: 10.34 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.3207, allocations: 0 / 1.334 GB, free: 10.34 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.076e-05/0.3207, allocations: 15.91 kB / 1.334 GB, free: 10.32 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.155e-05/0.3207, allocations: 8 kB / 1.334 GB, free: 10.31 MB / 1.029 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.0001399/0.3209, allocations: 142.8 kB / 1.334 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.345e-05/0.3209, allocations: 19.86 kB / 1.334 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002813/0.3212, allocations: 119.4 kB / 1.334 GB, free: 10.02 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/0.3212, allocations: 0 / 1.334 GB, free: 10.02 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.3212, allocations: 3.984 kB / 1.334 GB, free: 10.02 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.3212, allocations: 7.938 kB / 1.334 GB, free: 10.01 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000223/0.3214, allocations: 200.7 kB / 1.334 GB, free: 9.77 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.3214, allocations: 0 / 1.334 GB, free: 9.77 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.656e-05/0.3215, allocations: 12 kB / 1.334 GB, free: 9.758 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.3215, allocations: 0 / 1.334 GB, free: 9.758 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.3215, allocations: 3.984 kB / 1.334 GB, free: 9.754 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.3215, allocations: 0 / 1.334 GB, free: 9.754 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3215, allocations: 0 / 1.334 GB, free: 9.754 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002512/0.3218, allocations: 149 kB / 1.334 GB, free: 9.59 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.416e-05/0.3218, allocations: 19.91 kB / 1.334 GB, free: 9.57 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.121e-05/0.3218, allocations: 7.938 kB / 1.334 GB, free: 9.562 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.582e-05/0.3219, allocations: 4 kB / 1.334 GB, free: 9.559 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.409e-05/0.3219, allocations: 3.984 kB / 1.334 GB, free: 9.555 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.912e-05/0.3219, allocations: 15.92 kB / 1.335 GB, free: 9.539 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.000202/0.3221, allocations: 200.6 kB / 1.335 GB, free: 9.344 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3221, allocations: 0 / 1.335 GB, free: 9.344 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002554/0.3224, allocations: 39.88 kB / 1.335 GB, free: 9.305 MB / 1.029 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 (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.00158/0.324, allocations: 446.8 kB / 1.335 GB, free: 9.023 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002279/0.3242, allocations: 63.91 kB / 1.335 GB, free: 8.961 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3242, allocations: 0 / 1.335 GB, free: 8.961 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.044e-05/0.3243, allocations: 31.98 kB / 1.335 GB, free: 8.93 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003085/0.3246, allocations: 38.25 kB / 1.335 GB, free: 8.895 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000584/0.3252, allocations: 332.4 kB / 1.336 GB, free: 8.539 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003611/0.3256, allocations: 0.7241 MB / 1.336 GB, free: 7.789 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.398e-05/0.3256, allocations: 27.42 kB / 1.336 GB, free: 7.762 MB / 1.029 GB Notification: Performance of SimCode: time 3.2e-07/0.3256, allocations: 0 / 1.336 GB, free: 7.762 MB / 1.029 GB Notification: Performance of Templates: time 0.005117/0.3307, allocations: 2.683 MB / 1.339 GB, free: 5.086 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 11.626972166995984]