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.001279/0.001279, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001329/0.001329, allocations: 193.6 kB / 16.14 MB, free: 6.645 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.228/1.228, allocations: 222.9 MB / 239.8 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.446/2.446, allocations: 461.8 MB / 0.7342 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 65.91 kB / 0.8985 GB, free: 37.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.2804, allocations: 157.4 MB / 1.052 GB, free: 8.281 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003259/0.2837, allocations: 1.839 MB / 1.054 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001835/0.2856, allocations: 1.099 MB / 1.055 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001011/0.2857, allocations: 3.938 kB / 1.055 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003175/0.2861, allocations: 47.88 kB / 1.055 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002131/0.2863, allocations: 75.73 kB / 1.055 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005691/0.2869, allocations: 190.7 kB / 1.055 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001876/0.2871, allocations: 139.6 kB / 1.056 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.375e-05/0.2872, allocations: 13.12 kB / 1.056 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.854e-05/0.2873, allocations: 55.78 kB / 1.056 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001021/0.2874, allocations: 67.67 kB / 1.056 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.288e-05/0.2874, allocations: 7.938 kB / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001465/0.2876, allocations: 63.89 kB / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.801e-05/0.2877, allocations: 35.91 kB / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.026e-05/0.2877, allocations: 51.61 kB / 1.056 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002631/0.288, allocations: 195.7 kB / 1.056 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.288, allocations: 0 / 1.056 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.52e-07/0.288, allocations: 0 / 1.056 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.288, allocations: 0 / 1.056 GB, free: 4.395 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.0006258/0.2887, allocations: 0.4885 MB / 1.056 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.2887, allocations: 11.97 kB / 1.056 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.976e-05/0.2888, allocations: 34.73 kB / 1.056 GB, free: 3.797 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.235e-05/0.2888, allocations: 20.75 kB / 1.057 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003091/0.2891, allocations: 252.8 kB / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.319e-05/0.2892, allocations: 8.375 kB / 1.057 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.386e-05/0.2892, allocations: 3.938 kB / 1.057 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002008/0.2894, allocations: 96.22 kB / 1.057 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.2894, allocations: 0 / 1.057 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.614e-05/0.2894, allocations: 8 kB / 1.057 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.598e-05/0.2894, allocations: 0 / 1.057 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001078/0.2896, allocations: 35.92 kB / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005158/0.2901, allocations: 360.6 kB / 1.057 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002258/0.2903, allocations: 90.69 kB / 1.057 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.512e-05/0.2904, allocations: 32.84 kB / 1.057 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.785e-05/0.2904, allocations: 0 / 1.057 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000213/0.2906, allocations: 83.36 kB / 1.057 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.543e-06/0.2907, allocations: 0 / 1.057 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0003546/0.291, allocations: 141.6 kB / 1.058 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.544e-05/0.2911, allocations: 106.8 kB / 1.058 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002483/0.2913, allocations: 266.9 kB / 1.058 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.2914, allocations: 33.64 kB / 1.058 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.775e-05/0.2915, allocations: 112.1 kB / 1.058 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.472e-05/0.2915, allocations: 19.72 kB / 1.058 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.923e-05/0.2915, allocations: 29.69 kB / 1.058 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001075/0.2916, allocations: 326.8 kB / 1.058 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.951e-05/0.2917, allocations: 31.98 kB / 1.058 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.867e-05/0.2918, allocations: 72.2 kB / 1.059 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001404/0.292, allocations: 73.7 kB / 1.059 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.292, allocations: 0 / 1.059 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002249/0.2922, allocations: 117.5 kB / 1.059 GB, free: 1.305 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.2923, allocations: 4 kB / 1.059 GB, free: 1.301 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.2923, allocations: 3.938 kB / 1.059 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.2923, allocations: 4 kB / 1.059 GB, free: 1.293 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.825e-05/0.2924, allocations: 8 kB / 1.059 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.089e-06/0.2924, allocations: 0 / 1.059 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.839e-05/0.2925, allocations: 15.86 kB / 1.059 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.378e-06/0.2925, allocations: 4 kB / 1.059 GB, free: 1.266 MB / 0.8106 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.0001275/0.2926, allocations: 145.8 kB / 1.059 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.824e-05/0.2926, allocations: 15.81 kB / 1.059 GB, free: 1.098 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.265e-05/0.2927, allocations: 21.39 kB / 1.059 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.234e-05/0.2927, allocations: 4 kB / 1.059 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.2927, allocations: 0 / 1.059 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.2927, allocations: 3.938 kB / 1.059 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002015/0.2929, allocations: 221.6 kB / 1.059 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.2929, allocations: 4 kB / 1.059 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.187e-05/0.293, allocations: 7.938 kB / 1.059 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.293, allocations: 4 kB / 1.059 GB, free: 0.7891 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.204e-05/0.293, allocations: 3.984 kB / 1.059 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.293, allocations: 4 kB / 1.059 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.293, allocations: 0 / 1.059 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002482/0.2933, allocations: 144.8 kB / 1.059 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.153e-05/0.2933, allocations: 88.92 kB / 1.059 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.953e-05/0.2934, allocations: 7.938 kB / 1.059 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.267e-05/0.2934, allocations: 0 / 1.059 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.852e-05/0.2935, allocations: 15.92 kB / 1.059 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.362e-05/0.2935, allocations: 4 kB / 1.059 GB, free: 500 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001699/0.2937, allocations: 200.6 kB / 1.06 GB, free: 300 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.91e-07/0.2937, allocations: 0 / 1.06 GB, free: 300 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000244/0.2939, allocations: 35.98 kB / 1.06 GB, free: 264 kB / 0.8106 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.001352/0.2953, allocations: 1.005 MB / 1.061 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002055/0.2955, allocations: 67.91 kB / 1.061 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2955, allocations: 0 / 1.061 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.083e-05/0.2956, allocations: 35.97 kB / 1.061 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002935/0.2959, allocations: 43.45 kB / 1.061 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002173/0.2981, allocations: 1.971 MB / 1.063 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002985/0.2984, allocations: 0.7243 MB / 1.063 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.286e-05/0.2985, allocations: 21.08 kB / 1.063 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.885e-05/0.2986, allocations: 43.42 kB / 1.063 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of SimCode: time 2.81e-07/0.2986, allocations: 0 / 1.063 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.714/2.013, allocations: 4.388 MB / 1.068 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002156/2.013, allocations: 255.5 kB / 1.068 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.942/3.955, allocations: 1 kB / 1.068 GB, free: 7.84 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