Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_latest_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.001096/0.0011, 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.001332/0.001332, allocations: 194.4 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.298/1.298, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.626/2.626, allocations: 469.4 MB / 0.742 GB, free: 7.766 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 72.92 kB / 0.9083 GB, free: 34.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2758/0.277, allocations: 159.1 MB / 1.064 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.00308/0.2802, allocations: 1.771 MB / 1.065 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001728/0.2819, allocations: 1.111 MB / 1.066 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.087e-05/0.282, allocations: 3.938 kB / 1.066 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002978/0.2823, allocations: 55.73 kB / 1.067 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002432/0.2826, allocations: 75.67 kB / 1.067 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006296/0.2832, allocations: 229.5 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002095/0.2834, allocations: 139.7 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.2836, allocations: 29.05 kB / 1.067 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001065/0.2837, allocations: 59.77 kB / 1.067 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001136/0.2838, allocations: 67.75 kB / 1.067 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.617e-05/0.2838, allocations: 8 kB / 1.067 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001625/0.284, allocations: 63.97 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.857e-05/0.2841, allocations: 47.77 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.393e-05/0.2842, allocations: 59.61 kB / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002866/0.2845, allocations: 195.7 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.2845, allocations: 0 / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.122e-06/0.2845, allocations: 0 / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.052e-06/0.2845, allocations: 0 / 1.067 GB, free: 10.66 MB / 0.8262 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.0006176/0.2851, allocations: 492.2 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.2852, allocations: 8.031 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.893e-05/0.2852, allocations: 42.69 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.297e-05/0.2853, allocations: 16.75 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002788/0.2856, allocations: 248.9 kB / 1.068 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.49e-05/0.2856, allocations: 4.375 kB / 1.068 GB, free: 9.762 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.289e-05/0.2856, allocations: 3.938 kB / 1.068 GB, free: 9.758 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001999/0.2858, allocations: 96.17 kB / 1.068 GB, free: 9.648 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.762e-06/0.2858, allocations: 0 / 1.068 GB, free: 9.648 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.2858, allocations: 4 kB / 1.068 GB, free: 9.645 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.812e-05/0.2859, allocations: 7.984 kB / 1.068 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000109/0.286, allocations: 35.97 kB / 1.068 GB, free: 9.602 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000521/0.2865, allocations: 364.5 kB / 1.069 GB, free: 9.195 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002238/0.2867, allocations: 82.67 kB / 1.069 GB, free: 9.105 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.455e-05/0.2868, allocations: 36.84 kB / 1.069 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.668e-05/0.2869, allocations: 0 / 1.069 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002015/0.2871, allocations: 79.41 kB / 1.069 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.462e-06/0.2871, allocations: 0 / 1.069 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.0003562/0.2874, allocations: 145.4 kB / 1.069 GB, free: 8.828 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.339e-05/0.2875, allocations: 106.8 kB / 1.069 GB, free: 8.699 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002613/0.2878, allocations: 270.9 kB / 1.069 GB, free: 8.426 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.682e-05/0.2878, allocations: 29.69 kB / 1.069 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.318e-05/0.2879, allocations: 120.1 kB / 1.07 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.624e-05/0.2879, allocations: 15.72 kB / 1.07 GB, free: 8.254 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.892e-05/0.288, allocations: 29.7 kB / 1.07 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001188/0.2881, allocations: 326.8 kB / 1.07 GB, free: 7.891 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.207e-05/0.2882, allocations: 27.98 kB / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.827e-05/0.2883, allocations: 72.2 kB / 1.07 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001524/0.2885, allocations: 70 kB / 1.07 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.2885, allocations: 0 / 1.07 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002186/0.2887, allocations: 117.4 kB / 1.07 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.2887, allocations: 4 kB / 1.07 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.2887, allocations: 0 / 1.07 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.2887, allocations: 4 kB / 1.07 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.036e-05/0.2888, allocations: 16.02 kB / 1.07 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.2888, allocations: 0 / 1.07 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.062e-05/0.2889, allocations: 15.88 kB / 1.07 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.849e-06/0.2889, allocations: 4 kB / 1.07 GB, free: 7.539 MB / 0.8262 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.0001347/0.2891, allocations: 159.4 kB / 1.07 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.075e-05/0.2891, allocations: 11.81 kB / 1.07 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.516e-05/0.2892, allocations: 17.41 kB / 1.07 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.115e-05/0.2892, allocations: 4 kB / 1.07 GB, free: 7.344 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.2892, allocations: 4 kB / 1.07 GB, free: 7.34 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.2892, allocations: 7.922 kB / 1.07 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001937/0.2894, allocations: 217.6 kB / 1.071 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.2894, allocations: 0 / 1.071 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.108e-05/0.2895, allocations: 4 kB / 1.071 GB, free: 7.066 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.2895, allocations: 4 kB / 1.071 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.2895, allocations: 0 / 1.071 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.2895, allocations: 0 / 1.071 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2895, allocations: 0 / 1.071 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002521/0.2897, allocations: 148.8 kB / 1.071 GB, free: 6.898 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.247e-05/0.2898, allocations: 96.84 kB / 1.071 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.98e-05/0.2899, allocations: 8 kB / 1.071 GB, free: 6.777 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.313e-05/0.2899, allocations: 0 / 1.071 GB, free: 6.777 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.541e-05/0.29, allocations: 12.11 kB / 1.071 GB, free: 6.766 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.375e-05/0.29, allocations: 11.94 kB / 1.071 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001756/0.2902, allocations: 196.5 kB / 1.071 GB, free: 6.562 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2902, allocations: 0 / 1.071 GB, free: 6.562 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002525/0.2904, allocations: 31.98 kB / 1.071 GB, free: 6.531 MB / 0.8262 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.001362/0.2918, allocations: 1.001 MB / 1.072 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000239/0.2921, allocations: 71.89 kB / 1.072 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2921, allocations: 0 / 1.072 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.117e-05/0.2922, allocations: 43.98 kB / 1.072 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.2925, allocations: 42.28 kB / 1.072 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002189/0.2947, allocations: 1.94 MB / 1.074 GB, free: 3.48 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002948/0.295, allocations: 0.7201 MB / 1.075 GB, free: 2.734 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.626e-05/0.2951, allocations: 25.08 kB / 1.075 GB, free: 2.707 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.845e-05/0.2951, allocations: 47.42 kB / 1.075 GB, free: 2.66 MB / 0.8262 GB Notification: Performance of SimCode: time 6.51e-07/0.2952, allocations: 0 / 1.075 GB, free: 2.66 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02304/0.3182, allocations: 4.61 MB / 1.079 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.608/7.926, allocations: 7.766 kB / 1.079 GB, free: 14.16 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches