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.001598/0.001598, allocations: 113.6 kB / 17.13 MB, free: 5.945 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.001822/0.001822, allocations: 209 kB / 20.09 MB, free: 2.996 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.512/1.512, allocations: 230.6 MB / 253.5 MB, free: 15.07 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 2.951/2.951, allocations: 0.49 GB / 0.7923 GB, free: 1.434 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.002142/0.002142, allocations: 67.89 kB / 1.15 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8654/0.8676, allocations: 176.1 MB / 1.322 GB, free: 24.98 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002461/0.87, allocations: 1.797 MB / 1.324 GB, free: 23.73 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001455/0.8715, allocations: 1.275 MB / 1.325 GB, free: 22.86 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.763e-05/0.8716, allocations: 6.594 kB / 1.325 GB, free: 22.86 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0002542/0.8718, allocations: 54.16 kB / 1.325 GB, free: 22.84 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0002634/0.8721, allocations: 124.9 kB / 1.325 GB, free: 22.77 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004086/0.8725, allocations: 197.3 kB / 1.325 GB, free: 22.67 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001592/0.8727, allocations: 160.3 kB / 1.325 GB, free: 22.59 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.139e-05/0.8728, allocations: 17.09 kB / 1.325 GB, free: 22.59 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 8.359e-05/0.8728, allocations: 68.33 kB / 1.326 GB, free: 22.55 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 8.611e-05/0.8729, allocations: 73.61 kB / 1.326 GB, free: 22.53 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.789e-05/0.8729, allocations: 8 kB / 1.326 GB, free: 22.53 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000128/0.8731, allocations: 76.47 kB / 1.326 GB, free: 22.5 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 5.93e-05/0.8731, allocations: 46.7 kB / 1.326 GB, free: 22.48 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.951e-05/0.8732, allocations: 53.97 kB / 1.326 GB, free: 22.44 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002294/0.8734, allocations: 217.5 kB / 1.326 GB, free: 22.36 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.8734, allocations: 0 / 1.326 GB, free: 22.36 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.613e-06/0.8734, allocations: 0 / 1.326 GB, free: 22.36 MB / 1.061 GB Notification: Performance of Transformations before backend: time 4.97e-06/0.8734, allocations: 0 / 1.326 GB, free: 22.36 MB / 1.061 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.0005131/0.8739, allocations: 0.4936 MB / 1.326 GB, free: 21.88 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 2.949e-05/0.874, allocations: 12.02 kB / 1.326 GB, free: 21.87 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.224e-05/0.874, allocations: 21.03 kB / 1.327 GB, free: 21.86 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002504/0.8743, allocations: 253.5 kB / 1.327 GB, free: 21.62 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.072e-05/0.8743, allocations: 7.156 kB / 1.327 GB, free: 21.62 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.778e-05/0.8743, allocations: 6.625 kB / 1.327 GB, free: 21.62 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001757/0.8745, allocations: 97 kB / 1.327 GB, free: 21.54 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.8745, allocations: 0 / 1.327 GB, free: 21.54 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.8745, allocations: 3.125 kB / 1.327 GB, free: 21.54 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.533e-05/0.8745, allocations: 8 kB / 1.327 GB, free: 21.54 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.968e-05/0.8746, allocations: 37.28 kB / 1.327 GB, free: 21.52 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000402/0.875, allocations: 361.3 kB / 1.327 GB, free: 21.21 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002214/0.8752, allocations: 84.34 kB / 1.327 GB, free: 21.16 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.314e-05/0.8753, allocations: 29.66 kB / 1.327 GB, free: 21.14 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.672e-05/0.8753, allocations: 5.281 kB / 1.327 GB, free: 21.14 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001561/0.8755, allocations: 80.28 kB / 1.327 GB, free: 21.08 MB / 1.061 GB Notification: Performance of pre-optimization done (n=8): time 1.452e-06/0.8755, allocations: 0.8438 kB / 1.327 GB, free: 21.08 MB / 1.061 GB Notification: Performance of matching and sorting (n=8): time 0.0003578/0.8758, allocations: 141.2 kB / 1.328 GB, free: 21.01 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.937e-05/0.8759, allocations: 108.9 kB / 1.328 GB, free: 20.88 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000264/0.8761, allocations: 275.5 kB / 1.328 GB, free: 20.73 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.259e-05/0.8761, allocations: 34.98 kB / 1.328 GB, free: 20.69 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 5.562e-05/0.8762, allocations: 123.7 kB / 1.328 GB, free: 20.58 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.176e-05/0.8762, allocations: 19.92 kB / 1.328 GB, free: 20.57 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.491e-05/0.8763, allocations: 25.34 kB / 1.328 GB, free: 20.55 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.014e-05/0.8763, allocations: 338.5 kB / 1.328 GB, free: 20.22 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.377e-05/0.8764, allocations: 25.97 kB / 1.328 GB, free: 20.21 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.739e-05/0.8765, allocations: 72.39 kB / 1.329 GB, free: 20.16 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001448/0.8766, allocations: 67.62 kB / 1.329 GB, free: 20.12 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.8766, allocations: 0 / 1.329 GB, free: 20.12 MB / 1.061 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002171/0.8769, allocations: 115.5 kB / 1.329 GB, free: 20.05 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.8769, allocations: 7.219 kB / 1.329 GB, free: 20.05 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.8769, allocations: 0.8125 kB / 1.329 GB, free: 20.05 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.8769, allocations: 0.6562 kB / 1.329 GB, free: 20.05 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.251e-05/0.877, allocations: 17.58 kB / 1.329 GB, free: 20.05 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.877, allocations: 5.125 kB / 1.329 GB, free: 20.05 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.495e-05/0.877, allocations: 11.25 kB / 1.329 GB, free: 20.04 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.188e-06/0.8771, allocations: 3.172 kB / 1.329 GB, free: 20.04 MB / 1.061 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 9.854e-05/0.8772, allocations: 143.6 kB / 1.329 GB, free: 19.91 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.201e-05/0.8772, allocations: 19.23 kB / 1.329 GB, free: 19.9 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.158e-05/0.8772, allocations: 19.86 kB / 1.329 GB, free: 19.89 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.528e-06/0.8772, allocations: 2.344 kB / 1.329 GB, free: 19.89 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.8772, allocations: 0 / 1.329 GB, free: 19.89 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.8772, allocations: 8.625 kB / 1.329 GB, free: 19.88 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001501/0.8774, allocations: 222.9 kB / 1.329 GB, free: 19.67 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.8774, allocations: 0 / 1.329 GB, free: 19.67 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.255e-05/0.8774, allocations: 4.688 kB / 1.329 GB, free: 19.67 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.8774, allocations: 0.625 kB / 1.329 GB, free: 19.67 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.8775, allocations: 9.438 kB / 1.329 GB, free: 19.66 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.8775, allocations: 4.531 kB / 1.329 GB, free: 19.66 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.8775, allocations: 4.031 kB / 1.329 GB, free: 19.66 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002367/0.8777, allocations: 150.2 kB / 1.329 GB, free: 19.55 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.646e-05/0.8777, allocations: 90.86 kB / 1.329 GB, free: 19.45 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.789e-05/0.8778, allocations: 2.125 kB / 1.329 GB, free: 19.45 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.777e-05/0.8778, allocations: 9 kB / 1.329 GB, free: 19.45 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.31e-05/0.8779, allocations: 7.203 kB / 1.329 GB, free: 19.45 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.27e-05/0.8779, allocations: 7.281 kB / 1.329 GB, free: 19.44 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001726/0.878, allocations: 200 kB / 1.33 GB, free: 19.33 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.878, allocations: 192 / 1.33 GB, free: 19.33 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002627/0.8783, allocations: 40.98 kB / 1.33 GB, free: 19.32 MB / 1.061 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.0015/0.8798, allocations: 442.2 kB / 1.33 GB, free: 19.11 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002276/0.88, allocations: 63.81 kB / 1.33 GB, free: 19.09 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.88, allocations: 0 / 1.33 GB, free: 19.09 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 8.865e-05/0.8801, allocations: 30.56 kB / 1.33 GB, free: 19.09 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.8804, allocations: 46.23 kB / 1.33 GB, free: 19.07 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004984/0.8809, allocations: 341.8 kB / 1.331 GB, free: 18.84 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001348/0.8811, allocations: 0.7314 MB / 1.331 GB, free: 18.13 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.094e-05/0.8811, allocations: 21.91 kB / 1.331 GB, free: 18.12 MB / 1.061 GB Notification: Performance of SimCode: time 4.41e-07/0.8811, allocations: 0.6875 kB / 1.331 GB, free: 18.12 MB / 1.061 GB Notification: Performance of Templates: time 0.004954/0.8861, allocations: 2.685 MB / 1.334 GB, free: 17.79 MB / 1.061 GB " [Timeout remaining time 299] 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: 12.070418122006231]