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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0009634/0.0009634, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.00609/0.00609, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.364/1.364, allocations: 223.3 MB / 240.3 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.675/2.675, allocations: 462.6 MB / 0.7364 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003324/0.0003324, allocations: 11.22 kB / 0.9029 GB, free: 36.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2826/0.2829, allocations: 159.6 MB / 1.059 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.001669/0.2846, allocations: 1.492 MB / 1.06 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00147/0.2861, allocations: 1.064 MB / 1.061 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.631e-05/0.2862, allocations: 3.938 kB / 1.061 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001853/0.2864, allocations: 55.88 kB / 1.061 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001714/0.2866, allocations: 71.73 kB / 1.061 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005022/0.2871, allocations: 195.1 kB / 1.062 GB, free: 2 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001558/0.2872, allocations: 135.5 kB / 1.062 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.426e-05/0.2873, allocations: 25.11 kB / 1.062 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.605e-05/0.2874, allocations: 59.75 kB / 1.062 GB, free: 1.785 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.688e-05/0.2875, allocations: 59.7 kB / 1.062 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.286e-05/0.2875, allocations: 0 / 1.062 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001192/0.2876, allocations: 59.95 kB / 1.062 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.56e-05/0.2877, allocations: 35.84 kB / 1.062 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.95e-05/0.2878, allocations: 77.31 kB / 1.062 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002166/0.288, allocations: 195.6 kB / 1.062 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.288, allocations: 4 kB / 1.062 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.51e-07/0.288, allocations: 4 kB / 1.062 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.362e-06/0.288, allocations: 0 / 1.062 GB, free: 1.352 MB / 0.8106 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.000422/0.2885, allocations: 460.5 kB / 1.063 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.618e-05/0.2885, allocations: 11.97 kB / 1.063 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.12e-05/0.2885, allocations: 38.73 kB / 1.063 GB, free: 0.7891 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.298e-05/0.2886, allocations: 16.75 kB / 1.063 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002178/0.2888, allocations: 252.8 kB / 1.063 GB, free: 496 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.958e-06/0.2888, allocations: 384 / 1.063 GB, free: 496 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.515e-05/0.2888, allocations: 15.94 kB / 1.063 GB, free: 480 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001571/0.289, allocations: 92.22 kB / 1.063 GB, free: 372 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.917e-06/0.289, allocations: 0 / 1.063 GB, free: 372 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.289, allocations: 4 kB / 1.063 GB, free: 368 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.354e-05/0.289, allocations: 4 kB / 1.063 GB, free: 364 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.913e-05/0.2891, allocations: 35.92 kB / 1.063 GB, free: 328 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004019/0.2895, allocations: 364.6 kB / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001902/0.2897, allocations: 90.69 kB / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.435e-05/0.2898, allocations: 28.84 kB / 1.064 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.366e-05/0.2898, allocations: 4 kB / 1.064 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001592/0.29, allocations: 83.38 kB / 1.064 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.623e-06/0.29, allocations: 0 / 1.064 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.0002891/0.2903, allocations: 137.4 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.771e-05/0.2904, allocations: 110.8 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002444/0.2906, allocations: 266.9 kB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.598e-05/0.2906, allocations: 25.7 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.186e-05/0.2907, allocations: 124 kB / 1.064 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.92e-05/0.2907, allocations: 19.75 kB / 1.064 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.669e-05/0.2908, allocations: 21.7 kB / 1.064 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.024e-05/0.2909, allocations: 326.8 kB / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.561e-05/0.2909, allocations: 27.98 kB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.876e-05/0.291, allocations: 68.27 kB / 1.065 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000129/0.2912, allocations: 69.64 kB / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.2912, allocations: 4 kB / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000197/0.2914, allocations: 109.5 kB / 1.065 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.2914, allocations: 5.562 kB / 1.065 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.2914, allocations: 3.938 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.784e-06/0.2914, allocations: 4 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.508e-05/0.2915, allocations: 11.98 kB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.016e-06/0.2915, allocations: 0 / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.76e-05/0.2916, allocations: 15.86 kB / 1.065 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.734e-06/0.2916, allocations: 7.984 kB / 1.065 GB, free: 14.27 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.000104/0.2917, allocations: 146.6 kB / 1.065 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.368e-05/0.2917, allocations: 15.81 kB / 1.065 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.206e-05/0.2918, allocations: 13.41 kB / 1.065 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.2918, allocations: 8.031 kB / 1.065 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.2918, allocations: 3.984 kB / 1.065 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.2918, allocations: 3.938 kB / 1.065 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001643/0.292, allocations: 221.5 kB / 1.065 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-06/0.292, allocations: 0 / 1.065 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.117e-05/0.292, allocations: 11.94 kB / 1.065 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.292, allocations: 4 kB / 1.065 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-06/0.2921, allocations: 0 / 1.065 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.2921, allocations: 0 / 1.065 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.2921, allocations: 0 / 1.065 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002152/0.2923, allocations: 148.8 kB / 1.065 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.214e-05/0.2924, allocations: 96.91 kB / 1.066 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.393e-05/0.2924, allocations: 8 kB / 1.066 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.639e-05/0.2924, allocations: 8 kB / 1.066 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.135e-05/0.2925, allocations: 11.92 kB / 1.066 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.307e-06/0.2925, allocations: 0 / 1.066 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001606/0.2927, allocations: 196.6 kB / 1.066 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.8e-07/0.2927, allocations: 3.938 kB / 1.066 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002275/0.2929, allocations: 36.19 kB / 1.066 GB, free: 13.25 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.001182/0.2941, allocations: 0.9898 MB / 1.067 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001719/0.2943, allocations: 71.91 kB / 1.067 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2943, allocations: 0 / 1.067 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.389e-05/0.2944, allocations: 43.95 kB / 1.067 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002588/0.2946, allocations: 36.23 kB / 1.067 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001859/0.2965, allocations: 1.974 MB / 1.069 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002112/0.2967, allocations: 0.7204 MB / 1.07 GB, free: 9.43 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.823e-05/0.2968, allocations: 21.08 kB / 1.07 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.756e-05/0.2969, allocations: 43.42 kB / 1.07 GB, free: 9.367 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.2969, allocations: 0 / 1.07 GB, free: 9.367 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.289/1.585, allocations: 4.2 MB / 1.074 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00028/1.586, allocations: 251.4 kB / 1.074 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.153/3.739, allocations: 0 / 1.074 GB, free: 5.062 MB / 0.8262 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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