Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001129/0.001129, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 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.0008454/0.0008454, allocations: 165.9 kB / 22.45 MB, free: 2.109 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 0.901/0.901, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.63/1.63, allocations: 359 MB / 0.6037 GB, free: 11.08 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 0.9505 GB, free: 3.488 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.481e-05/1.627e-05, allocations: 2.281 kB / 0.9505 GB, free: 3.484 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002113/0.002129, allocations: 1.781 MB / 0.9522 GB, free: 1.688 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001237/0.003366, allocations: 1.193 MB / 0.9534 GB, free: 500 kB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.999e-05/0.003436, allocations: 0 / 0.9534 GB, free: 500 kB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.0002651/0.003701, allocations: 59.67 kB / 0.9535 GB, free: 440 kB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 0.0002516/0.003953, allocations: 123.4 kB / 0.9536 GB, free: 316 kB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003427/0.004296, allocations: 201.4 kB / 0.9538 GB, free: 116 kB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0001717/0.004467, allocations: 163.5 kB / 0.9539 GB, free: 15.95 MB / 0.9167 GB Notification: Performance of NFFlatten.resolveConnections: time 8.986e-05/0.004557, allocations: 5.641 kB / 0.9539 GB, free: 15.94 MB / 0.9167 GB Notification: Performance of NFEvalConstants.evaluate: time 9.606e-05/0.004653, allocations: 91.78 kB / 0.954 GB, free: 15.85 MB / 0.9167 GB Notification: Performance of NFSimplifyModel.simplify: time 8.785e-05/0.004741, allocations: 63.81 kB / 0.9541 GB, free: 15.79 MB / 0.9167 GB Notification: Performance of NFPackage.collectConstants: time 1.502e-05/0.004756, allocations: 4 kB / 0.9541 GB, free: 15.79 MB / 0.9167 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001205/0.004877, allocations: 83.8 kB / 0.9542 GB, free: 15.7 MB / 0.9167 GB Notification: Performance of NFScalarize.scalarize: time 5.836e-05/0.004935, allocations: 43.84 kB / 0.9542 GB, free: 15.66 MB / 0.9167 GB Notification: Performance of NFVerifyModel.verify: time 4.21e-05/0.004977, allocations: 31.86 kB / 0.9542 GB, free: 15.63 MB / 0.9167 GB Notification: Performance of NFConvertDAE.convert: time 0.0002254/0.005203, allocations: 215.4 kB / 0.9544 GB, free: 15.42 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.005205, allocations: 0 / 0.9544 GB, free: 15.42 MB / 0.9167 GB Notification: Performance of FrontEnd: time 8.12e-07/0.005205, allocations: 0 / 0.9544 GB, free: 15.42 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 4.078e-06/0.00521, allocations: 3.938 kB / 0.9544 GB, free: 15.41 MB / 0.9167 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.0004617/0.005671, allocations: 432.8 kB / 0.9549 GB, free: 14.96 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.242e-05/0.005704, allocations: 8.031 kB / 0.9549 GB, free: 14.95 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.566e-05/0.005729, allocations: 38.69 kB / 0.9549 GB, free: 14.9 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.456e-05/0.005764, allocations: 20.8 kB / 0.9549 GB, free: 14.88 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002208/0.005985, allocations: 197.3 kB / 0.9551 GB, free: 14.66 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/0.005999, allocations: 8.375 kB / 0.9551 GB, free: 14.66 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.436e-05/0.006014, allocations: 4.375 kB / 0.9551 GB, free: 14.65 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001565/0.00617, allocations: 117.3 kB / 0.9552 GB, free: 14.52 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.006177, allocations: 0 / 0.9552 GB, free: 14.52 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.064e-05/0.006188, allocations: 8 kB / 0.9552 GB, free: 14.51 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.006196, allocations: 3.984 kB / 0.9552 GB, free: 14.51 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.501e-05/0.006261, allocations: 31.98 kB / 0.9553 GB, free: 14.48 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003489/0.00661, allocations: 311.9 kB / 0.9556 GB, free: 14.13 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001392/0.00675, allocations: 86.7 kB / 0.9557 GB, free: 14.04 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.421e-05/0.006794, allocations: 36.83 kB / 0.9557 GB, free: 14 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.311e-05/0.006807, allocations: 4 kB / 0.9557 GB, free: 13.99 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001203/0.006927, allocations: 87.36 kB / 0.9558 GB, free: 13.89 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=8): time 1.082e-06/0.006928, allocations: 0 / 0.9558 GB, free: 13.89 MB / 0.9167 GB Notification: Performance of matching and sorting (n=8): time 0.0002372/0.007165, allocations: 145.4 kB / 0.9559 GB, free: 13.75 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.617e-05/0.007202, allocations: 89.09 kB / 0.956 GB, free: 13.64 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000183/0.007385, allocations: 279.1 kB / 0.9563 GB, free: 13.36 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.377e-05/0.007398, allocations: 25.7 kB / 0.9563 GB, free: 13.33 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 5.738e-05/0.007456, allocations: 120.1 kB / 0.9564 GB, free: 13.21 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.951e-05/0.007475, allocations: 19.86 kB / 0.9564 GB, free: 13.19 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.474e-05/0.00751, allocations: 33.69 kB / 0.9565 GB, free: 13.15 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.467e-05/0.007585, allocations: 334.8 kB / 0.9568 GB, free: 12.81 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.213e-05/0.007627, allocations: 23.98 kB / 0.9568 GB, free: 12.79 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.928e-05/0.007696, allocations: 118.8 kB / 0.9569 GB, free: 12.65 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000151/0.007847, allocations: 74.12 kB / 0.957 GB, free: 12.57 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.007849, allocations: 0 / 0.957 GB, free: 12.57 MB / 0.9167 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001337/0.007983, allocations: 121.4 kB / 0.9571 GB, free: 12.45 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/0.007993, allocations: 4 kB / 0.9571 GB, free: 12.44 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.007999, allocations: 4 kB / 0.9571 GB, free: 12.44 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.128e-06/0.008008, allocations: 4.062 kB / 0.9571 GB, free: 12.43 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.01e-05/0.008068, allocations: 15.92 kB / 0.9571 GB, free: 12.42 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.008073, allocations: 4 kB / 0.9571 GB, free: 12.41 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.871e-05/0.008112, allocations: 15.89 kB / 0.9571 GB, free: 12.4 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-06/0.008117, allocations: 0 / 0.9571 GB, free: 12.4 MB / 0.9167 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 8.498e-05/0.008202, allocations: 145.8 kB / 0.9573 GB, free: 12.25 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.489e-05/0.008217, allocations: 15.91 kB / 0.9573 GB, free: 12.23 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001728/0.00839, allocations: 127 kB / 0.9574 GB, free: 12.09 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-06/0.008396, allocations: 4 kB / 0.9574 GB, free: 12.09 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.008399, allocations: 4 kB / 0.9574 GB, free: 12.09 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.008403, allocations: 3.984 kB / 0.9574 GB, free: 12.08 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001218/0.008525, allocations: 192.6 kB / 0.9576 GB, free: 11.85 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.008526, allocations: 0 / 0.9576 GB, free: 11.85 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.325e-05/0.008549, allocations: 4 kB / 0.9576 GB, free: 11.85 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.00855, allocations: 4 kB / 0.9576 GB, free: 11.84 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.772e-06/0.008557, allocations: 0 / 0.9576 GB, free: 11.84 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.51e-07/0.008558, allocations: 3.938 kB / 0.9576 GB, free: 11.84 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.008559, allocations: 0 / 0.9576 GB, free: 11.84 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001352/0.008694, allocations: 156.9 kB / 0.9578 GB, free: 11.67 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 1.816e-05/0.008712, allocations: 19.91 kB / 0.9578 GB, free: 11.65 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.564e-05/0.008728, allocations: 0 / 0.9578 GB, free: 11.65 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.695e-05/0.008754, allocations: 12 kB / 0.9578 GB, free: 11.64 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.641e-05/0.008791, allocations: 7.984 kB / 0.9578 GB, free: 11.63 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.918e-06/0.008801, allocations: 7.984 kB / 0.9578 GB, free: 11.62 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001273/0.008928, allocations: 200.6 kB / 0.958 GB, free: 11.43 MB / 0.9167 GB Notification: Performance of sort global known variables: time 9.1e-08/0.008928, allocations: 0 / 0.958 GB, free: 11.43 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001704/0.009099, allocations: 43.91 kB / 0.9581 GB, free: 11.38 MB / 0.9167 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.0009182/0.01002, allocations: 1.039 MB / 0.9591 GB, free: 10.5 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.000138/0.01015, allocations: 67.97 kB / 0.9591 GB, free: 10.44 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.01016, allocations: 3.938 kB / 0.9591 GB, free: 10.43 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 5.241e-05/0.01021, allocations: 39.91 kB / 0.9592 GB, free: 10.39 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001768/0.01039, allocations: 34.91 kB / 0.9592 GB, free: 10.36 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/0.01182, allocations: 2.018 MB / 0.9612 GB, free: 8.254 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.385e-05/0.0119, allocations: 114.8 kB / 0.9613 GB, free: 8.121 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 5.441e-05/0.01195, allocations: 29.77 kB / 0.9613 GB, free: 8.094 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.382e-05/0.01202, allocations: 52.48 kB / 0.9614 GB, free: 8.043 MB / 0.9167 GB Notification: Performance of SimCode: time 5.11e-07/0.01202, allocations: 0 / 0.9614 GB, free: 8.043 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01666/0.02868, allocations: 5.621 MB / 0.9669 GB, free: 2.508 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.072/7.101, allocations: 14.42 kB / 0.9669 GB, free: 2.496 MB / 0.9167 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 10.919845735654235]