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.005319/0.005319, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001103/0.001103, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.329/1.329, allocations: 222.9 MB / 240.4 MB, free: 4.195 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.407/2.407, allocations: 390.2 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 64.02 kB / 0.9504 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2451/0.2463, allocations: 140.4 MB / 1.087 GB, free: 2.109 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003597/0.2499, allocations: 1.772 MB / 1.089 GB, free: 328 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00171/0.2516, allocations: 1.105 MB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.266e-05/0.2518, allocations: 0 / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002873/0.2521, allocations: 55.73 kB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002779/0.2524, allocations: 79.67 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007932/0.2532, allocations: 230.8 kB / 1.091 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002606/0.2534, allocations: 147.7 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.2536, allocations: 25.08 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000129/0.2537, allocations: 71.64 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001157/0.2538, allocations: 63.75 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.109e-05/0.2539, allocations: 8 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001694/0.254, allocations: 67.94 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.944e-05/0.2541, allocations: 39.91 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.208e-05/0.2542, allocations: 63.55 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002897/0.2545, allocations: 194.3 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.2545, allocations: 0 / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.002e-06/0.2545, allocations: 0 / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.508e-06/0.2545, allocations: 0 / 1.091 GB, free: 14.19 MB / 0.8575 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.0007133/0.2553, allocations: 497.2 kB / 1.092 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.2553, allocations: 8.031 kB / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.915e-05/0.2553, allocations: 42.72 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.624e-05/0.2554, allocations: 20.69 kB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003334/0.2557, allocations: 240.9 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.538e-05/0.2558, allocations: 8.375 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.782e-05/0.2558, allocations: 7.938 kB / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002521/0.2561, allocations: 104.1 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.263e-06/0.2561, allocations: 0 / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.2561, allocations: 4 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.798e-05/0.2561, allocations: 4 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001077/0.2562, allocations: 31.92 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000485/0.2567, allocations: 364.5 kB / 1.093 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002226/0.257, allocations: 90.66 kB / 1.093 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.355e-05/0.257, allocations: 28.84 kB / 1.093 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.26e-05/0.2571, allocations: 4 kB / 1.093 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001725/0.2572, allocations: 79.47 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.733e-06/0.2573, allocations: 3.938 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0004027/0.2577, allocations: 137.5 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.384e-05/0.2577, allocations: 114.8 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002471/0.258, allocations: 258.9 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.951e-05/0.258, allocations: 29.7 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.12e-05/0.2581, allocations: 112.1 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.872e-05/0.2581, allocations: 27.64 kB / 1.093 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.707e-05/0.2582, allocations: 25.72 kB / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001485/0.2583, allocations: 330.8 kB / 1.094 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.2585, allocations: 27.98 kB / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.81e-05/0.2586, allocations: 68.22 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001436/0.2587, allocations: 73.67 kB / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.2587, allocations: 0 / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002218/0.259, allocations: 113.4 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.259, allocations: 12.03 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.259, allocations: 0 / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.259, allocations: 0 / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.413e-05/0.2591, allocations: 15.98 kB / 1.094 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.2591, allocations: 4 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.594e-05/0.2592, allocations: 7.938 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.2592, allocations: 0 / 1.094 GB, free: 11.07 MB / 0.8575 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.0001202/0.2593, allocations: 145.8 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.088e-05/0.2594, allocations: 23.84 kB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.994e-05/0.2594, allocations: 21.39 kB / 1.094 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.2594, allocations: 0 / 1.094 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.2594, allocations: 0 / 1.094 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.2594, allocations: 3.938 kB / 1.094 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000181/0.2596, allocations: 229.5 kB / 1.094 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.2596, allocations: 0 / 1.094 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.252e-05/0.2597, allocations: 8.172 kB / 1.094 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.2597, allocations: 0 / 1.094 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/0.2597, allocations: 3.938 kB / 1.094 GB, free: 10.58 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2597, allocations: 0 / 1.094 GB, free: 10.58 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2597, allocations: 8 kB / 1.094 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002383/0.26, allocations: 141.2 kB / 1.095 GB, free: 10.42 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.77e-05/0.26, allocations: 92.92 kB / 1.095 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.585e-05/0.2601, allocations: 3.938 kB / 1.095 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.048e-05/0.2601, allocations: 7.984 kB / 1.095 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.782e-05/0.2602, allocations: 11.94 kB / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-05/0.2602, allocations: 3.984 kB / 1.095 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001678/0.2604, allocations: 196.6 kB / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2604, allocations: 0 / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002599/0.2607, allocations: 39.94 kB / 1.095 GB, free: 10.05 MB / 0.8575 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.00134/0.262, allocations: 0.9955 MB / 1.096 GB, free: 9.188 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002204/0.2622, allocations: 71.91 kB / 1.096 GB, free: 9.117 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.2623, allocations: 4 kB / 1.096 GB, free: 9.113 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.161e-05/0.2623, allocations: 35.97 kB / 1.096 GB, free: 9.078 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003239/0.2627, allocations: 40.73 kB / 1.096 GB, free: 9.043 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002124/0.2648, allocations: 1.948 MB / 1.098 GB, free: 7.008 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000311/0.2651, allocations: 0.7239 MB / 1.099 GB, free: 6.258 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.194e-05/0.2652, allocations: 29.36 kB / 1.099 GB, free: 6.227 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.433e-05/0.2653, allocations: 43.42 kB / 1.099 GB, free: 6.184 MB / 0.8575 GB Notification: Performance of SimCode: time 3.71e-07/0.2653, allocations: 0 / 1.099 GB, free: 6.184 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02124/0.2866, allocations: 4.701 MB / 1.103 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.534/7.821, allocations: 10.33 kB / 1.103 GB, free: 1.559 MB / 0.8575 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