Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009181/0.0009182, allocations: 98.27 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005479/0.005479, allocations: 170 kB / 16.27 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.218/1.218, allocations: 223.3 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.103/2.103, allocations: 390.9 MB / 0.6664 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002998/0.0002998, allocations: 12 kB / 0.8161 GB, free: 13.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5391/0.5394, allocations: 142.4 MB / 0.9552 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.001759/0.5412, allocations: 1.479 MB / 0.9566 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001385/0.5426, allocations: 1.061 MB / 0.9576 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.08e-05/0.5427, allocations: 5.531 kB / 0.9576 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002668/0.543, allocations: 53.95 kB / 0.9577 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001915/0.5432, allocations: 73.02 kB / 0.9578 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005403/0.5437, allocations: 200 kB / 0.958 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000177/0.5439, allocations: 136.8 kB / 0.9581 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.089e-05/0.544, allocations: 28.09 kB / 0.9581 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.776e-05/0.5441, allocations: 51.09 kB / 0.9582 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.941e-05/0.5442, allocations: 59.25 kB / 0.9582 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.744e-05/0.5442, allocations: 6.688 kB / 0.9582 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001352/0.5444, allocations: 59.58 kB / 0.9583 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.965e-05/0.5445, allocations: 31.03 kB / 0.9583 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.657e-05/0.5445, allocations: 85.67 kB / 0.9584 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002248/0.5447, allocations: 195.6 kB / 0.9586 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.5448, allocations: 0 / 0.9586 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.202e-06/0.5448, allocations: 0 / 0.9586 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.5448, allocations: 0 / 0.9586 GB, free: 5.23 MB / 0.7169 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.0004866/0.5453, allocations: 466.3 kB / 0.959 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.5453, allocations: 9.531 kB / 0.959 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.414e-05/0.5453, allocations: 33.28 kB / 0.9591 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.395e-05/0.5454, allocations: 16.03 kB / 0.9591 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002158/0.5456, allocations: 260 kB / 0.9593 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.398e-05/0.5456, allocations: 10.06 kB / 0.9593 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.363e-05/0.5457, allocations: 7.375 kB / 0.9593 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001731/0.5458, allocations: 88.17 kB / 0.9594 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.5459, allocations: 0 / 0.9594 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.5459, allocations: 9.359 kB / 0.9594 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.64e-05/0.5459, allocations: 5.141 kB / 0.9594 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.584e-05/0.546, allocations: 38.08 kB / 0.9595 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004002/0.5464, allocations: 352.9 kB / 0.9598 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001955/0.5466, allocations: 84.58 kB / 0.9599 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.618e-05/0.5467, allocations: 36.78 kB / 0.9599 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.76e-05/0.5467, allocations: 4 kB / 0.9599 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001733/0.5469, allocations: 83.91 kB / 0.96 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 2.024e-06/0.5469, allocations: 0 / 0.96 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0003174/0.5472, allocations: 139.4 kB / 0.9602 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.018e-05/0.5473, allocations: 112.4 kB / 0.9603 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002151/0.5475, allocations: 268.6 kB / 0.9605 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.316e-05/0.5475, allocations: 35.08 kB / 0.9605 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.81e-05/0.5476, allocations: 112.4 kB / 0.9607 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.239e-05/0.5476, allocations: 22.41 kB / 0.9607 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.445e-05/0.5476, allocations: 17.84 kB / 0.9607 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.655e-05/0.5477, allocations: 332.2 kB / 0.961 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.443e-05/0.5477, allocations: 25.73 kB / 0.961 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.577e-05/0.5478, allocations: 65.03 kB / 0.9611 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001198/0.5479, allocations: 77.25 kB / 0.9612 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.548, allocations: 0 / 0.9612 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001919/0.5481, allocations: 112.3 kB / 0.9613 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.5482, allocations: 5.531 kB / 0.9613 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.5482, allocations: 400 / 0.9613 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.004e-05/0.5482, allocations: 5.031 kB / 0.9613 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.371e-05/0.5483, allocations: 19.27 kB / 0.9613 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.5483, allocations: 9.219 kB / 0.9613 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.694e-05/0.5484, allocations: 11.59 kB / 0.9613 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.715e-06/0.5484, allocations: 2.531 kB / 0.9613 GB, free: 2.703 MB / 0.7169 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.152e-05/0.5485, allocations: 141.2 kB / 0.9615 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.359e-05/0.5485, allocations: 15.25 kB / 0.9615 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.706e-05/0.5485, allocations: 28.38 kB / 0.9615 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.276e-06/0.5486, allocations: 2.219 kB / 0.9615 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.5486, allocations: 0.7188 kB / 0.9615 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.5486, allocations: 3.938 kB / 0.9615 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001356/0.5487, allocations: 222.5 kB / 0.9617 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.5487, allocations: 0.9688 kB / 0.9617 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.777e-05/0.5488, allocations: 8.109 kB / 0.9617 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.5488, allocations: 1.281 kB / 0.9617 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.5488, allocations: 8.891 kB / 0.9617 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.534e-06/0.5488, allocations: 0.9688 kB / 0.9617 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.5488, allocations: 3.938 kB / 0.9617 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002056/0.549, allocations: 143.4 kB / 0.9619 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.711e-05/0.5491, allocations: 99.59 kB / 0.962 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.554e-05/0.5491, allocations: 2.281 kB / 0.962 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.247e-05/0.5492, allocations: 2.281 kB / 0.962 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.455e-05/0.5492, allocations: 16.36 kB / 0.962 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.077e-05/0.5492, allocations: 2.625 kB / 0.962 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.000148/0.5494, allocations: 199.5 kB / 0.9622 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5494, allocations: 0 / 0.9622 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.00024/0.5496, allocations: 29.28 kB / 0.9622 GB, free: 1.926 MB / 0.7169 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.001133/0.5508, allocations: 0.9996 MB / 0.9632 GB, free: 1.172 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001845/0.551, allocations: 67.8 kB / 0.9633 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.551, allocations: 0 / 0.9633 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.035e-05/0.5511, allocations: 37.42 kB / 0.9633 GB, free: 1.129 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002692/0.5513, allocations: 40.94 kB / 0.9633 GB, free: 1.105 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001854/0.5532, allocations: 1.969 MB / 0.9653 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002358/0.5534, allocations: 0.7176 MB / 0.966 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 8.226e-05/0.5535, allocations: 36.8 kB / 0.966 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.747e-05/0.5536, allocations: 48.83 kB / 0.966 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of SimCode: time 2.2e-07/0.5536, allocations: 0 / 0.966 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0141/0.5677, allocations: 4.196 MB / 0.9701 GB, free: 12.77 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002156/0.568, allocations: 238.4 kB / 0.9704 GB, free: 12.52 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.697/2.265, allocations: 0 / 0.9704 GB, free: 12.52 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches