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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.0018/0.0018, allocations: 108 kB / 15.6 MB, free: 132 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.002184/0.002184, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.35/1.35, 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 9.1.3-maint.9.1.x/package.mo): time 2.351/2.351, allocations: 390.3 MB / 0.6647 GB, free: 276 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 67.89 kB / 0.8127 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6504/0.6515, allocations: 140.3 MB / 0.9497 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002711/0.6543, allocations: 1.768 MB / 0.9514 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00149/0.6558, allocations: 1.1 MB / 0.9525 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.455e-05/0.6559, allocations: 5.562 kB / 0.9525 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002565/0.6561, allocations: 61.45 kB / 0.9526 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001929/0.6564, allocations: 74.45 kB / 0.9526 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004907/0.6569, allocations: 229.1 kB / 0.9529 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001564/0.657, allocations: 146.6 kB / 0.953 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.873e-05/0.6571, allocations: 36.3 kB / 0.953 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.251e-05/0.6572, allocations: 61.23 kB / 0.9531 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.564e-05/0.6573, allocations: 62.12 kB / 0.9532 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.16e-05/0.6573, allocations: 7.344 kB / 0.9532 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000128/0.6575, allocations: 67.16 kB / 0.9532 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.17e-05/0.6575, allocations: 38.42 kB / 0.9533 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.302e-05/0.6576, allocations: 59.86 kB / 0.9533 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000213/0.6578, allocations: 204.7 kB / 0.9535 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.305e-06/0.6578, allocations: 4 kB / 0.9535 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.51e-07/0.6578, allocations: 0 / 0.9535 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.6578, allocations: 0 / 0.9535 GB, free: 6.293 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.000423/0.6583, allocations: 483.4 kB / 0.954 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.71e-05/0.6583, allocations: 9.25 kB / 0.954 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.327e-05/0.6583, allocations: 37.09 kB / 0.954 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.891e-05/0.6584, allocations: 16.59 kB / 0.954 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002076/0.6586, allocations: 258.9 kB / 0.9543 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.6586, allocations: 3.25 kB / 0.9543 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.627e-05/0.6586, allocations: 18.78 kB / 0.9543 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001693/0.6588, allocations: 91.42 kB / 0.9544 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.6e-06/0.6588, allocations: 1.469 kB / 0.9544 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.6588, allocations: 0 / 0.9544 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.76e-05/0.6589, allocations: 6.859 kB / 0.9544 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.747e-05/0.659, allocations: 32.83 kB / 0.9544 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003888/0.6594, allocations: 357.3 kB / 0.9548 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002072/0.6596, allocations: 84.52 kB / 0.9549 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.256e-05/0.6597, allocations: 32.5 kB / 0.9549 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.586e-05/0.6597, allocations: 5.219 kB / 0.9549 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002025/0.6599, allocations: 83.22 kB / 0.955 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.503e-06/0.6599, allocations: 0 / 0.955 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0002933/0.6602, allocations: 136.4 kB / 0.9551 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.947e-05/0.6602, allocations: 103.9 kB / 0.9552 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000226/0.6605, allocations: 275.4 kB / 0.9555 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.267e-05/0.6605, allocations: 30.92 kB / 0.9555 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.802e-05/0.6605, allocations: 116.5 kB / 0.9556 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.083e-05/0.6606, allocations: 23.08 kB / 0.9556 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.987e-05/0.6606, allocations: 31.08 kB / 0.9557 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.529e-05/0.6607, allocations: 327.6 kB / 0.956 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.624e-05/0.6607, allocations: 25.77 kB / 0.956 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.88e-05/0.6608, allocations: 69.64 kB / 0.9561 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001281/0.661, allocations: 77.95 kB / 0.9561 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.661, allocations: 0 / 0.9561 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001893/0.6612, allocations: 104.8 kB / 0.9562 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.6612, allocations: 4.688 kB / 0.9562 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.6612, allocations: 1.375 kB / 0.9562 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.949e-06/0.6612, allocations: 0 / 0.9562 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.186e-05/0.6613, allocations: 23.17 kB / 0.9563 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.567e-06/0.6613, allocations: 4.516 kB / 0.9563 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.076e-05/0.6614, allocations: 15.83 kB / 0.9563 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.827e-06/0.6614, allocations: 14.58 kB / 0.9563 GB, free: 3.754 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.091e-05/0.6615, allocations: 145 kB / 0.9564 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.867e-05/0.6615, allocations: 14.75 kB / 0.9564 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.773e-05/0.6616, allocations: 16.62 kB / 0.9565 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-06/0.6616, allocations: 2.312 kB / 0.9565 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.6616, allocations: 3.984 kB / 0.9565 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.6616, allocations: 5.172 kB / 0.9565 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001329/0.6617, allocations: 225.8 kB / 0.9567 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.6617, allocations: 1.219 kB / 0.9567 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.875e-05/0.6618, allocations: 8.562 kB / 0.9567 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.6618, allocations: 0 / 0.9567 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.385e-06/0.6618, allocations: 1.844 kB / 0.9567 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.6618, allocations: 0 / 0.9567 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.6618, allocations: 1.812 kB / 0.9567 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002036/0.662, allocations: 153.9 kB / 0.9568 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.478e-05/0.6621, allocations: 99.44 kB / 0.9569 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.746e-05/0.6621, allocations: 1.594 kB / 0.9569 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.358e-05/0.6622, allocations: 5.469 kB / 0.9569 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.506e-05/0.6622, allocations: 16.48 kB / 0.957 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.114e-05/0.6622, allocations: 3.156 kB / 0.957 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.000143/0.6624, allocations: 195.1 kB / 0.9572 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6624, allocations: 1.25 kB / 0.9572 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002458/0.6626, allocations: 32.47 kB / 0.9572 GB, free: 2.973 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.001168/0.6638, allocations: 0.9956 MB / 0.9582 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002034/0.664, allocations: 69.16 kB / 0.9582 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.664, allocations: 0 / 0.9582 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.244e-05/0.6641, allocations: 37.97 kB / 0.9583 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002616/0.6644, allocations: 36.97 kB / 0.9583 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001808/0.6662, allocations: 1.942 MB / 0.9602 GB, free: 0.6328 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001754/0.6664, allocations: 0.7271 MB / 0.9609 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.826e-05/0.6665, allocations: 27.94 kB / 0.9609 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.479e-05/0.6666, allocations: 45.48 kB / 0.961 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of SimCode: time 2.7e-07/0.6666, allocations: 0 / 0.961 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01955/0.6861, allocations: 4.597 MB / 0.9655 GB, free: 13.48 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.341/8.027, allocations: 2.281 kB / 0.9655 GB, free: 13.48 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 & python3 -m fmpy simulate --output-file Buildings_9_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_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.csv","/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