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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001293/0.001293, allocations: 112.1 kB / 17.08 MB, free: 6.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 193.2 kB / 20.03 MB, free: 3.082 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 222.9 MB / 245.7 MB, free: 4.227 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.919/2.919, allocations: 489.2 MB / 0.7687 GB, free: 3.828 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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=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 0.001988/0.001988, allocations: 68.12 kB / 1.103 GB, free: 0.832 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.025/1.027, allocations: 163.8 MB / 1.263 GB, free: 8.016 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003561/1.03, allocations: 1.781 MB / 1.264 GB, free: 6.793 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002389/1.033, allocations: 1.104 MB / 1.265 GB, free: 6.035 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001162/1.033, allocations: 5.656 kB / 1.265 GB, free: 6.031 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004233/1.033, allocations: 57.75 kB / 1.265 GB, free: 6.008 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002963/1.033, allocations: 70.39 kB / 1.266 GB, free: 5.977 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007628/1.034, allocations: 232.7 kB / 1.266 GB, free: 5.855 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002811/1.035, allocations: 141.9 kB / 1.266 GB, free: 5.793 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001446/1.035, allocations: 26.8 kB / 1.266 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001442/1.035, allocations: 70.55 kB / 1.266 GB, free: 5.742 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001638/1.035, allocations: 63.11 kB / 1.266 GB, free: 5.719 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.216e-05/1.035, allocations: 7.406 kB / 1.266 GB, free: 5.719 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002319/1.035, allocations: 75.23 kB / 1.266 GB, free: 5.695 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001051/1.035, allocations: 37.36 kB / 1.266 GB, free: 5.68 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 9.273e-05/1.035, allocations: 59.66 kB / 1.266 GB, free: 5.637 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004358/1.036, allocations: 200.4 kB / 1.266 GB, free: 5.562 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/1.036, allocations: 4 kB / 1.266 GB, free: 5.559 MB / 0.9981 GB Notification: Performance of FrontEnd: time 3.827e-06/1.036, allocations: 0.5625 kB / 1.266 GB, free: 5.559 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.754e-06/1.036, allocations: 0.9375 kB / 1.266 GB, free: 5.559 MB / 0.9981 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.0007923/1.037, allocations: 495.1 kB / 1.267 GB, free: 5.086 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/1.037, allocations: 9.406 kB / 1.267 GB, free: 5.086 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.965e-05/1.037, allocations: 16.66 kB / 1.267 GB, free: 5.078 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004415/1.037, allocations: 254.3 kB / 1.267 GB, free: 4.836 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.489e-05/1.037, allocations: 6.969 kB / 1.267 GB, free: 4.832 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.662e-05/1.037, allocations: 15.73 kB / 1.267 GB, free: 4.82 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002621/1.038, allocations: 92.91 kB / 1.267 GB, free: 4.75 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/1.038, allocations: 0 / 1.267 GB, free: 4.75 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.635e-05/1.038, allocations: 1.281 kB / 1.267 GB, free: 4.75 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.13e-05/1.038, allocations: 2.312 kB / 1.267 GB, free: 4.75 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001295/1.038, allocations: 35.08 kB / 1.267 GB, free: 4.738 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006117/1.038, allocations: 367.8 kB / 1.268 GB, free: 4.414 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002743/1.039, allocations: 83.75 kB / 1.268 GB, free: 4.371 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.111e-05/1.039, allocations: 32.41 kB / 1.268 GB, free: 4.355 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/1.039, allocations: 1.422 kB / 1.268 GB, free: 4.355 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002194/1.039, allocations: 91.45 kB / 1.268 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=8): time 1.723e-06/1.039, allocations: 0 / 1.268 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8): time 0.0004519/1.04, allocations: 137.9 kB / 1.268 GB, free: 4.219 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.082e-05/1.04, allocations: 109.6 kB / 1.268 GB, free: 4.09 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000358/1.04, allocations: 261.1 kB / 1.268 GB, free: 3.941 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.774e-05/1.04, allocations: 31.2 kB / 1.268 GB, free: 3.906 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 8.625e-05/1.04, allocations: 117 kB / 1.268 GB, free: 3.801 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.569e-05/1.04, allocations: 21.38 kB / 1.268 GB, free: 3.785 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.693e-05/1.04, allocations: 25.33 kB / 1.269 GB, free: 3.766 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 9.25e-05/1.04, allocations: 337.1 kB / 1.269 GB, free: 3.438 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.976e-05/1.04, allocations: 25.25 kB / 1.269 GB, free: 3.43 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001184/1.041, allocations: 71.56 kB / 1.269 GB, free: 3.375 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001685/1.041, allocations: 71.11 kB / 1.269 GB, free: 3.336 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/1.041, allocations: 4.844 kB / 1.269 GB, free: 3.332 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002539/1.041, allocations: 117.3 kB / 1.269 GB, free: 3.266 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/1.041, allocations: 5.312 kB / 1.269 GB, free: 3.266 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/1.041, allocations: 0.5938 kB / 1.269 GB, free: 3.266 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/1.041, allocations: 2.078 kB / 1.269 GB, free: 3.266 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001071/1.041, allocations: 12.33 kB / 1.269 GB, free: 3.266 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/1.041, allocations: 1.281 kB / 1.269 GB, free: 3.266 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.763e-05/1.041, allocations: 11.55 kB / 1.269 GB, free: 3.258 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.229e-05/1.041, allocations: 7.859 kB / 1.269 GB, free: 3.254 MB / 0.9981 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.0001341/1.041, allocations: 148.8 kB / 1.269 GB, free: 3.121 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.506e-05/1.041, allocations: 15.94 kB / 1.269 GB, free: 3.113 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.495e-05/1.042, allocations: 18.84 kB / 1.269 GB, free: 3.098 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.287e-06/1.042, allocations: 1.75 kB / 1.269 GB, free: 3.098 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/1.042, allocations: 0.8125 kB / 1.269 GB, free: 3.098 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/1.042, allocations: 4.594 kB / 1.269 GB, free: 3.094 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002051/1.042, allocations: 219.3 kB / 1.27 GB, free: 2.883 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/1.042, allocations: 0.6875 kB / 1.27 GB, free: 2.883 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.177e-05/1.042, allocations: 6.359 kB / 1.27 GB, free: 2.883 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/1.042, allocations: 4.594 kB / 1.27 GB, free: 2.879 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/1.042, allocations: 2.578 kB / 1.27 GB, free: 2.879 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/1.042, allocations: 1.219 kB / 1.27 GB, free: 2.879 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/1.042, allocations: 4 kB / 1.27 GB, free: 2.875 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002688/1.042, allocations: 146.7 kB / 1.27 GB, free: 2.773 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.979e-05/1.042, allocations: 100.5 kB / 1.27 GB, free: 2.664 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.041e-05/1.042, allocations: 1.547 kB / 1.27 GB, free: 2.664 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.359e-05/1.042, allocations: 3.969 kB / 1.27 GB, free: 2.664 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.715e-05/1.042, allocations: 18.48 kB / 1.27 GB, free: 2.652 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.872e-05/1.042, allocations: 8.625 kB / 1.27 GB, free: 2.648 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002275/1.043, allocations: 204.7 kB / 1.27 GB, free: 2.531 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/1.043, allocations: 0.9062 kB / 1.27 GB, free: 2.531 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002907/1.043, allocations: 34.33 kB / 1.27 GB, free: 2.523 MB / 0.9981 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.001551/1.045, allocations: 427.1 kB / 1.27 GB, free: 2.34 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002561/1.045, allocations: 76.11 kB / 1.271 GB, free: 2.312 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/1.045, allocations: 0.75 kB / 1.271 GB, free: 2.312 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 9.981e-05/1.045, allocations: 33.83 kB / 1.271 GB, free: 2.305 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003175/1.045, allocations: 43.41 kB / 1.271 GB, free: 2.293 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005555/1.046, allocations: 327.9 kB / 1.271 GB, free: 2.062 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001773/1.046, allocations: 0.7255 MB / 1.272 GB, free: 1.359 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.283e-05/1.046, allocations: 23.34 kB / 1.272 GB, free: 1.348 MB / 0.9981 GB Notification: Performance of SimCode: time 2.2e-07/1.046, allocations: 0 / 1.272 GB, free: 1.348 MB / 0.9981 GB Notification: Performance of Templates: time 0.005788/1.052, allocations: 2.611 MB / 1.274 GB, free: 1.035 MB / 0.9981 GB " [Timeout remaining time 299] 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.587549509014934]