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.001989/0.001989, 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.002381/0.002381, allocations: 189.2 kB / 16.66 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.446/1.446, allocations: 222.9 MB / 240.4 MB, free: 4.336 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.647/2.647, allocations: 437 MB / 0.7105 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 67.89 kB / 1.018 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2811/0.2824, allocations: 151.6 MB / 1.166 GB, free: 7.309 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003192/0.2856, allocations: 1.768 MB / 1.168 GB, free: 5.52 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001797/0.2874, allocations: 1.107 MB / 1.169 GB, free: 4.402 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001115/0.2876, allocations: 4 kB / 1.169 GB, free: 4.398 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0002986/0.2879, allocations: 51.73 kB / 1.169 GB, free: 4.348 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0002655/0.2882, allocations: 79.67 kB / 1.169 GB, free: 4.27 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006894/0.2889, allocations: 239.2 kB / 1.169 GB, free: 4.039 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002375/0.2891, allocations: 139.7 kB / 1.169 GB, free: 3.902 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000117/0.2892, allocations: 21.12 kB / 1.169 GB, free: 3.883 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001313/0.2894, allocations: 71.62 kB / 1.17 GB, free: 3.812 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001297/0.2895, allocations: 63.75 kB / 1.17 GB, free: 3.75 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.637e-05/0.2896, allocations: 8 kB / 1.17 GB, free: 3.742 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000178/0.2897, allocations: 63.95 kB / 1.17 GB, free: 3.68 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 8.615e-05/0.2898, allocations: 43.89 kB / 1.17 GB, free: 3.637 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 8.234e-05/0.2899, allocations: 63.56 kB / 1.17 GB, free: 3.574 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003519/0.2903, allocations: 203.5 kB / 1.17 GB, free: 3.375 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2903, allocations: 0 / 1.17 GB, free: 3.375 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.363e-06/0.2903, allocations: 0 / 1.17 GB, free: 3.375 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.374e-06/0.2903, allocations: 0 / 1.17 GB, free: 3.375 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.0007236/0.2911, allocations: 496.1 kB / 1.17 GB, free: 2.836 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.2911, allocations: 8.031 kB / 1.17 GB, free: 2.828 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.045e-05/0.2912, allocations: 42.67 kB / 1.17 GB, free: 2.777 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.797e-05/0.2912, allocations: 20.78 kB / 1.171 GB, free: 2.758 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003581/0.2916, allocations: 253 kB / 1.171 GB, free: 2.469 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.2916, allocations: 8.375 kB / 1.171 GB, free: 2.461 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.099e-05/0.2916, allocations: 7.938 kB / 1.171 GB, free: 2.453 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002176/0.2919, allocations: 96.16 kB / 1.171 GB, free: 2.344 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.986e-06/0.2919, allocations: 0 / 1.171 GB, free: 2.344 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.578e-05/0.2919, allocations: 4 kB / 1.171 GB, free: 2.34 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.993e-05/0.2919, allocations: 4 kB / 1.171 GB, free: 2.336 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000109/0.292, allocations: 35.92 kB / 1.171 GB, free: 2.301 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000648/0.2927, allocations: 356.7 kB / 1.171 GB, free: 1.902 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002646/0.293, allocations: 86.66 kB / 1.171 GB, free: 1.809 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.361e-05/0.2931, allocations: 28.84 kB / 1.171 GB, free: 1.777 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.261e-05/0.2931, allocations: 8 kB / 1.171 GB, free: 1.77 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002331/0.2934, allocations: 87.41 kB / 1.171 GB, free: 1.672 MB / 0.92 GB Notification: Performance of pre-optimization done (n=8): time 2.044e-06/0.2934, allocations: 0 / 1.171 GB, free: 1.672 MB / 0.92 GB Notification: Performance of matching and sorting (n=8): time 0.0004512/0.2938, allocations: 133.5 kB / 1.172 GB, free: 1.535 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.2939, allocations: 110.8 kB / 1.172 GB, free: 1.402 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003227/0.2943, allocations: 266.7 kB / 1.172 GB, free: 1.133 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.334e-05/0.2943, allocations: 29.7 kB / 1.172 GB, free: 1.098 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.2944, allocations: 124 kB / 1.172 GB, free: 0.9727 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.432e-05/0.2944, allocations: 19.86 kB / 1.172 GB, free: 0.9531 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.512e-05/0.2945, allocations: 25.7 kB / 1.172 GB, free: 0.9219 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000127/0.2947, allocations: 330.8 kB / 1.172 GB, free: 0.5898 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.368e-05/0.2947, allocations: 23.98 kB / 1.172 GB, free: 0.5664 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001136/0.2949, allocations: 72.2 kB / 1.173 GB, free: 492 kB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001678/0.295, allocations: 69.7 kB / 1.173 GB, free: 416 kB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2951, allocations: 0 / 1.173 GB, free: 416 kB / 0.92 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002571/0.2953, allocations: 121.5 kB / 1.173 GB, free: 288 kB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.2954, allocations: 4 kB / 1.173 GB, free: 284 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.2954, allocations: 7.938 kB / 1.173 GB, free: 276 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.2954, allocations: 0 / 1.173 GB, free: 276 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.2955, allocations: 12 kB / 1.173 GB, free: 264 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.2955, allocations: 0 / 1.173 GB, free: 264 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.012e-05/0.2956, allocations: 16 kB / 1.173 GB, free: 248 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.274e-05/0.2956, allocations: 3.984 kB / 1.173 GB, free: 244 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.0001652/0.2958, allocations: 150.4 kB / 1.173 GB, free: 84 kB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.498e-05/0.2959, allocations: 19.86 kB / 1.173 GB, free: 64 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.169e-05/0.2959, allocations: 21.39 kB / 1.173 GB, free: 40 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-05/0.2959, allocations: 0 / 1.173 GB, free: 40 kB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.2959, allocations: 0 / 1.173 GB, free: 40 kB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.296, allocations: 3.938 kB / 1.173 GB, free: 36 kB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002483/0.2962, allocations: 221.6 kB / 1.173 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.2962, allocations: 4 kB / 1.173 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.438e-05/0.2963, allocations: 4.188 kB / 1.173 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.2963, allocations: 0 / 1.173 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.501e-05/0.2963, allocations: 7.922 kB / 1.173 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.2963, allocations: 0 / 1.173 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.2963, allocations: 4 kB / 1.173 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002959/0.2966, allocations: 145.3 kB / 1.173 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 7.903e-05/0.2967, allocations: 101 kB / 1.173 GB, free: 15.47 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.248e-05/0.2968, allocations: 0 / 1.173 GB, free: 15.47 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.393e-05/0.2968, allocations: 8 kB / 1.173 GB, free: 15.46 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.109e-05/0.2969, allocations: 15.92 kB / 1.173 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/0.2969, allocations: 0 / 1.173 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0002172/0.2971, allocations: 200.4 kB / 1.174 GB, free: 15.25 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.71e-07/0.2971, allocations: 0 / 1.174 GB, free: 15.25 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002859/0.2974, allocations: 31.94 kB / 1.174 GB, free: 15.22 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.001637/0.2991, allocations: 1.001 MB / 1.175 GB, free: 14.36 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000253/0.2994, allocations: 67.91 kB / 1.175 GB, free: 14.29 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.2994, allocations: 4 kB / 1.175 GB, free: 14.29 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001062/0.2995, allocations: 35.97 kB / 1.175 GB, free: 14.25 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003407/0.2998, allocations: 49.8 kB / 1.175 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002408/0.3022, allocations: 1.947 MB / 1.177 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002798/0.3025, allocations: 0.7239 MB / 1.177 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.739e-05/0.3026, allocations: 25.38 kB / 1.177 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.349e-05/0.3027, allocations: 51.41 kB / 1.177 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of SimCode: time 2.11e-07/0.3027, allocations: 0 / 1.177 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02173/0.3245, allocations: 4.7 MB / 1.182 GB, free: 6.758 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.891/8.215, allocations: 14.41 kB / 1.182 GB, free: 6.746 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