Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_10_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.001865/0.001865, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002381/0.002381, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.389/1.389, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.569/2.569, allocations: 437 MB / 0.7104 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001299, allocations: 67.89 kB / 0.8693 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5445/0.5458, allocations: 151.6 MB / 1.017 GB, free: 2.449 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.00308/0.5489, allocations: 1.762 MB / 1.019 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001624/0.5506, allocations: 1.107 MB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.653e-05/0.5507, allocations: 3.938 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002708/0.551, allocations: 59.73 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002259/0.5512, allocations: 79.67 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005912/0.5518, allocations: 214.7 kB / 1.021 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001911/0.552, allocations: 151.6 kB / 1.021 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.5521, allocations: 21.11 kB / 1.021 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.756e-05/0.5522, allocations: 63.77 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001051/0.5523, allocations: 63.75 kB / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.239e-05/0.5524, allocations: 7.938 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000143/0.5525, allocations: 63.97 kB / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.568e-05/0.5526, allocations: 47.83 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.955e-05/0.5527, allocations: 55.61 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002849/0.553, allocations: 201.6 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.553, allocations: 0 / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.312e-06/0.553, allocations: 0 / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.969e-06/0.553, allocations: 0 / 1.021 GB, free: 14.55 MB / 0.7794 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.0006338/0.5536, allocations: 492.3 kB / 1.022 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.5537, allocations: 16.02 kB / 1.022 GB, free: 14 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.856e-05/0.5537, allocations: 30.75 kB / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.324e-05/0.5538, allocations: 16.75 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002914/0.5541, allocations: 252.8 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.014e-05/0.5541, allocations: 16.31 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.531e-05/0.5541, allocations: 7.922 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002091/0.5544, allocations: 96.17 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.5544, allocations: 0 / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.789e-05/0.5544, allocations: 8 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.895e-05/0.5544, allocations: 0 / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001184/0.5545, allocations: 35.91 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000548/0.5551, allocations: 352.8 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002328/0.5553, allocations: 90.69 kB / 1.023 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.429e-05/0.5554, allocations: 36.83 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.214e-05/0.5555, allocations: 0 / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002435/0.5557, allocations: 83.36 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.843e-06/0.5557, allocations: 4 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0003607/0.5561, allocations: 137.5 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.573e-05/0.5562, allocations: 110.8 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002603/0.5564, allocations: 266.8 kB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.058e-05/0.5565, allocations: 29.7 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.057e-05/0.5566, allocations: 112.1 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.075e-05/0.5566, allocations: 31.66 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.483e-05/0.5566, allocations: 21.72 kB / 1.023 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.5568, allocations: 334.8 kB / 1.024 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.435e-05/0.5569, allocations: 27.98 kB / 1.024 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.275e-05/0.557, allocations: 64.28 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001478/0.5571, allocations: 73.62 kB / 1.024 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.5571, allocations: 0 / 1.024 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002193/0.5573, allocations: 113.5 kB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.5574, allocations: 4 kB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.5574, allocations: 0 / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.5574, allocations: 0 / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.447e-05/0.5575, allocations: 19.92 kB / 1.024 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.5575, allocations: 0 / 1.024 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.969e-05/0.5576, allocations: 11.84 kB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.257e-06/0.5576, allocations: 4 kB / 1.024 GB, free: 11.43 MB / 0.7794 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.0001261/0.5577, allocations: 151.2 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.68e-05/0.5578, allocations: 11.81 kB / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.589e-05/0.5578, allocations: 25.33 kB / 1.024 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-05/0.5578, allocations: 4 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.5579, allocations: 0 / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.5579, allocations: 3.938 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001803/0.558, allocations: 221.5 kB / 1.024 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.5581, allocations: 0 / 1.024 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.465e-05/0.5581, allocations: 11.98 kB / 1.024 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.5581, allocations: 4 kB / 1.024 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/0.5581, allocations: 0 / 1.024 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.5581, allocations: 7.938 kB / 1.024 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.5581, allocations: 0 / 1.024 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002466/0.5584, allocations: 152.8 kB / 1.025 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.379e-05/0.5585, allocations: 88.92 kB / 1.025 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.151e-05/0.5585, allocations: 4 kB / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.677e-05/0.5586, allocations: 3.984 kB / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.228e-05/0.5586, allocations: 11.94 kB / 1.025 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.586e-05/0.5586, allocations: 11.98 kB / 1.025 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001749/0.5588, allocations: 196.4 kB / 1.025 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.763e-06/0.5588, allocations: 0 / 1.025 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002591/0.5591, allocations: 31.94 kB / 1.025 GB, free: 10.41 MB / 0.7794 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.001322/0.5604, allocations: 1 MB / 1.026 GB, free: 9.543 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002257/0.5607, allocations: 75.88 kB / 1.026 GB, free: 9.469 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.5607, allocations: 8 kB / 1.026 GB, free: 9.461 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.146e-05/0.5608, allocations: 31.98 kB / 1.026 GB, free: 9.43 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002929/0.5611, allocations: 58.86 kB / 1.026 GB, free: 9.379 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002021/0.5631, allocations: 1.937 MB / 1.028 GB, free: 7.348 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002327/0.5634, allocations: 0.7239 MB / 1.029 GB, free: 6.598 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.85e-05/0.5634, allocations: 25.38 kB / 1.029 GB, free: 6.574 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.031e-05/0.5635, allocations: 51.41 kB / 1.029 GB, free: 6.523 MB / 0.7794 GB Notification: Performance of SimCode: time 3.61e-07/0.5635, allocations: 0 / 1.029 GB, free: 6.523 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02029/0.5838, allocations: 4.593 MB / 1.033 GB, free: 2.027 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.202/7.786, allocations: 15.89 kB / 1.033 GB, free: 2.012 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_10_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches