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.001332/0.001332, allocations: 112.5 kB / 15.73 MB, free: 76 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.001417/0.001417, allocations: 188.8 kB / 16.67 MB, free: 6.582 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.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.778/2.778, allocations: 437 MB / 0.7105 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001959/0.001959, allocations: 67.89 kB / 1.018 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2981/0.3, allocations: 151.6 MB / 1.166 GB, free: 7.34 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003294/0.3034, allocations: 1.766 MB / 1.168 GB, free: 5.555 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001899/0.3053, allocations: 1.104 MB / 1.169 GB, free: 4.441 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.43e-05/0.3054, allocations: 3.938 kB / 1.169 GB, free: 4.438 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0003131/0.3057, allocations: 51.73 kB / 1.169 GB, free: 4.387 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0002659/0.306, allocations: 79.67 kB / 1.169 GB, free: 4.309 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006605/0.3067, allocations: 239.2 kB / 1.169 GB, free: 4.078 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002197/0.3069, allocations: 151.5 kB / 1.169 GB, free: 3.93 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001026/0.307, allocations: 21.11 kB / 1.169 GB, free: 3.91 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001005/0.3071, allocations: 59.77 kB / 1.17 GB, free: 3.852 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001166/0.3073, allocations: 67.69 kB / 1.17 GB, free: 3.785 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.211e-05/0.3073, allocations: 4 kB / 1.17 GB, free: 3.781 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001665/0.3075, allocations: 75.94 kB / 1.17 GB, free: 3.707 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 7.688e-05/0.3076, allocations: 39.84 kB / 1.17 GB, free: 3.668 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 7.65e-05/0.3076, allocations: 55.67 kB / 1.17 GB, free: 3.613 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003122/0.308, allocations: 203.4 kB / 1.17 GB, free: 3.414 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.308, allocations: 0 / 1.17 GB, free: 3.414 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.102e-06/0.308, allocations: 4 kB / 1.17 GB, free: 3.41 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.03e-06/0.308, allocations: 0 / 1.17 GB, free: 3.41 MB / 0.92 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.0007046/0.3087, allocations: 0.4883 MB / 1.17 GB, free: 2.867 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.3087, allocations: 12.03 kB / 1.17 GB, free: 2.855 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.674e-05/0.3088, allocations: 38.73 kB / 1.17 GB, free: 2.809 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.828e-05/0.3089, allocations: 20.84 kB / 1.171 GB, free: 2.789 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003791/0.3092, allocations: 252.9 kB / 1.171 GB, free: 2.5 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.3093, allocations: 384 / 1.171 GB, free: 2.5 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.782e-05/0.3093, allocations: 11.92 kB / 1.171 GB, free: 2.488 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002225/0.3095, allocations: 100.2 kB / 1.171 GB, free: 2.375 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.3095, allocations: 0 / 1.171 GB, free: 2.375 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.3095, allocations: 3.938 kB / 1.171 GB, free: 2.371 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.828e-05/0.3096, allocations: 4 kB / 1.171 GB, free: 2.367 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001174/0.3097, allocations: 31.98 kB / 1.171 GB, free: 2.336 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000542/0.3102, allocations: 348.8 kB / 1.171 GB, free: 1.945 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002442/0.3105, allocations: 90.69 kB / 1.171 GB, free: 1.848 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.038e-05/0.3106, allocations: 32.84 kB / 1.171 GB, free: 1.812 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.161e-05/0.3106, allocations: 4 kB / 1.171 GB, free: 1.809 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001923/0.3108, allocations: 79.38 kB / 1.171 GB, free: 1.719 MB / 0.92 GB Notification: Performance of pre-optimization done (n=8): time 1.663e-06/0.3108, allocations: 0 / 1.171 GB, free: 1.719 MB / 0.92 GB Notification: Performance of matching and sorting (n=8): time 0.0003803/0.3112, allocations: 149.4 kB / 1.172 GB, free: 1.566 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.068e-05/0.3113, allocations: 102.8 kB / 1.172 GB, free: 1.441 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002889/0.3116, allocations: 270.7 kB / 1.172 GB, free: 1.168 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.356e-05/0.3116, allocations: 29.7 kB / 1.172 GB, free: 1.133 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 9.21e-05/0.3117, allocations: 120.1 kB / 1.172 GB, free: 1.012 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.903e-05/0.3118, allocations: 19.86 kB / 1.172 GB, free: 0.9922 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.436e-05/0.3118, allocations: 29.7 kB / 1.172 GB, free: 0.957 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001488/0.312, allocations: 322.8 kB / 1.172 GB, free: 0.6328 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.276e-05/0.3121, allocations: 27.98 kB / 1.172 GB, free: 0.6055 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001157/0.3122, allocations: 76.14 kB / 1.173 GB, free: 0.5156 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001589/0.3124, allocations: 78 kB / 1.173 GB, free: 444 kB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.3124, allocations: 0 / 1.173 GB, free: 444 kB / 0.92 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002628/0.3126, allocations: 121.5 kB / 1.173 GB, free: 316 kB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.3127, allocations: 4 kB / 1.173 GB, free: 312 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.3127, allocations: 0 / 1.173 GB, free: 312 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.3127, allocations: 0 / 1.173 GB, free: 312 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.77e-05/0.3128, allocations: 12 kB / 1.173 GB, free: 300 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.3128, allocations: 4.031 kB / 1.173 GB, free: 296 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.328e-05/0.3129, allocations: 15.92 kB / 1.173 GB, free: 280 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.3129, allocations: 4.047 kB / 1.173 GB, free: 276 kB / 0.92 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.0001345/0.3131, allocations: 141.8 kB / 1.173 GB, free: 124 kB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.395e-05/0.3131, allocations: 19.86 kB / 1.173 GB, free: 104 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.301e-05/0.3131, allocations: 25.39 kB / 1.173 GB, free: 76 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.067e-05/0.3132, allocations: 0 / 1.173 GB, free: 76 kB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.3132, allocations: 3.938 kB / 1.173 GB, free: 72 kB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.3132, allocations: 7.938 kB / 1.173 GB, free: 64 kB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002398/0.3134, allocations: 221.8 kB / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3134, allocations: 0 / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.36e-05/0.3135, allocations: 7.938 kB / 1.173 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.3135, allocations: 0 / 1.173 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.791e-05/0.3135, allocations: 11.98 kB / 1.173 GB, free: 15.78 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.3135, allocations: 0 / 1.173 GB, free: 15.78 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3135, allocations: 0 / 1.173 GB, free: 15.78 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002759/0.3138, allocations: 140.9 kB / 1.173 GB, free: 15.62 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.473e-05/0.3139, allocations: 93.02 kB / 1.173 GB, free: 15.51 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.796e-05/0.3139, allocations: 0 / 1.173 GB, free: 15.51 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.065e-05/0.314, allocations: 8 kB / 1.173 GB, free: 15.5 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.211e-05/0.3141, allocations: 11.92 kB / 1.173 GB, free: 15.49 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.451e-05/0.3141, allocations: 4 kB / 1.173 GB, free: 15.49 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0002069/0.3143, allocations: 204.3 kB / 1.174 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.4e-07/0.3143, allocations: 0 / 1.174 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002547/0.3146, allocations: 31.94 kB / 1.174 GB, free: 15.26 MB / 0.9356 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.002088/0.3167, allocations: 0.9985 MB / 1.175 GB, free: 14.39 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002396/0.3169, allocations: 71.91 kB / 1.175 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3169, allocations: 0 / 1.175 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 9.816e-05/0.317, allocations: 35.97 kB / 1.175 GB, free: 14.29 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003037/0.3173, allocations: 45.8 kB / 1.175 GB, free: 14.24 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002459/0.3198, allocations: 1.947 MB / 1.177 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003875/0.3202, allocations: 0.7242 MB / 1.177 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 9.125e-05/0.3203, allocations: 33.06 kB / 1.177 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.3204, allocations: 47.41 kB / 1.177 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of SimCode: time 2.404e-06/0.3204, allocations: 0 / 1.177 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02745/0.3479, allocations: 4.696 MB / 1.182 GB, free: 6.793 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.361/8.709, allocations: 18.98 kB / 1.182 GB, free: 6.777 MB / 0.9356 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