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.001344/0.001344, 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.001383/0.001383, allocations: 193.8 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.34/1.34, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.659/2.659, allocations: 461.9 MB / 0.7346 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 66.98 kB / 0.8992 GB, free: 36.94 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2981/0.2993, allocations: 157.4 MB / 1.053 GB, free: 8.312 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.004211/0.3036, allocations: 1.789 MB / 1.055 GB, free: 6.508 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00191/0.3055, allocations: 1.111 MB / 1.056 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001424/0.3057, allocations: 4 kB / 1.056 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0004003/0.3061, allocations: 59.72 kB / 1.056 GB, free: 5.328 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000299/0.3065, allocations: 75.67 kB / 1.056 GB, free: 5.254 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007104/0.3072, allocations: 226.5 kB / 1.056 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002479/0.3075, allocations: 143.7 kB / 1.056 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.3076, allocations: 29.09 kB / 1.056 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001222/0.3077, allocations: 59.77 kB / 1.056 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001231/0.3078, allocations: 67.69 kB / 1.056 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.582e-05/0.3079, allocations: 8 kB / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001745/0.3081, allocations: 67.97 kB / 1.056 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.859e-05/0.3081, allocations: 35.84 kB / 1.056 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.8e-05/0.3082, allocations: 63.53 kB / 1.057 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003392/0.3086, allocations: 191.7 kB / 1.057 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.3086, allocations: 4 kB / 1.057 GB, free: 4.379 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3086, allocations: 0 / 1.057 GB, free: 4.379 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.843e-06/0.3086, allocations: 0 / 1.057 GB, free: 4.379 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.0007043/0.3093, allocations: 496.2 kB / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.3094, allocations: 12.61 kB / 1.057 GB, free: 3.828 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.829e-05/0.3094, allocations: 38.75 kB / 1.057 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.003e-05/0.3095, allocations: 16.75 kB / 1.057 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000297/0.3098, allocations: 244.9 kB / 1.057 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.471e-05/0.3098, allocations: 4.375 kB / 1.057 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.863e-05/0.3098, allocations: 19.92 kB / 1.057 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002182/0.3101, allocations: 92.23 kB / 1.058 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.3101, allocations: 0 / 1.058 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/0.3101, allocations: 0 / 1.058 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.716e-05/0.3101, allocations: 3.938 kB / 1.058 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001108/0.3102, allocations: 31.98 kB / 1.058 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005378/0.3108, allocations: 360.6 kB / 1.058 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002343/0.311, allocations: 86.69 kB / 1.058 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.234e-05/0.3111, allocations: 32.84 kB / 1.058 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.098e-05/0.3112, allocations: 3.938 kB / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002663/0.3114, allocations: 91.36 kB / 1.058 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.643e-06/0.3114, allocations: 0 / 1.058 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0003975/0.3118, allocations: 141.4 kB / 1.058 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.867e-05/0.3119, allocations: 106.8 kB / 1.058 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002613/0.3122, allocations: 259.1 kB / 1.059 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.3122, allocations: 25.7 kB / 1.059 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.889e-05/0.3123, allocations: 116.1 kB / 1.059 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.336e-05/0.3123, allocations: 31.69 kB / 1.059 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.027e-05/0.3124, allocations: 25.72 kB / 1.059 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001216/0.3125, allocations: 330.8 kB / 1.059 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.935e-05/0.3126, allocations: 23.98 kB / 1.059 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.462e-05/0.3127, allocations: 64.28 kB / 1.059 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001567/0.3129, allocations: 77.62 kB / 1.059 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.3129, allocations: 0 / 1.059 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002244/0.3131, allocations: 113.4 kB / 1.059 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.3131, allocations: 5.406 kB / 1.059 GB, free: 1.305 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.3131, allocations: 4 kB / 1.059 GB, free: 1.301 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.3132, allocations: 0 / 1.059 GB, free: 1.301 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.749e-05/0.3133, allocations: 11.98 kB / 1.059 GB, free: 1.289 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.3133, allocations: 4 kB / 1.059 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.723e-05/0.3134, allocations: 15.88 kB / 1.059 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-06/0.3134, allocations: 4.031 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.0001315/0.3135, allocations: 138.5 kB / 1.06 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.249e-05/0.3136, allocations: 15.81 kB / 1.06 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.197e-05/0.3136, allocations: 25.42 kB / 1.06 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.08e-05/0.3136, allocations: 4 kB / 1.06 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.3136, allocations: 0 / 1.06 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.3137, allocations: 3.938 kB / 1.06 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000197/0.3139, allocations: 217.6 kB / 1.06 GB, free: 0.8125 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.3139, allocations: 4 kB / 1.06 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.391e-05/0.3139, allocations: 15.92 kB / 1.06 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.3139, allocations: 4 kB / 1.06 GB, free: 0.7891 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.171e-05/0.314, allocations: 4 kB / 1.06 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.314, allocations: 400 / 1.06 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.314, allocations: 0 / 1.06 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002444/0.3142, allocations: 145 kB / 1.06 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.801e-05/0.3143, allocations: 92.92 kB / 1.06 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.179e-05/0.3143, allocations: 7.922 kB / 1.06 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.298e-05/0.3144, allocations: 15.98 kB / 1.06 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.65e-05/0.3145, allocations: 11.88 kB / 1.06 GB, free: 492 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.298e-05/0.3145, allocations: 3.984 kB / 1.06 GB, free: 488 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001748/0.3147, allocations: 196.4 kB / 1.06 GB, free: 292 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3147, allocations: 0 / 1.06 GB, free: 292 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002701/0.3149, allocations: 32 kB / 1.06 GB, free: 260 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.001449/0.3164, allocations: 0.9973 MB / 1.061 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002507/0.3167, allocations: 83.83 kB / 1.061 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3167, allocations: 0 / 1.061 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.222e-05/0.3168, allocations: 31.98 kB / 1.061 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003049/0.3171, allocations: 37.47 kB / 1.061 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002267/0.3194, allocations: 1.948 MB / 1.063 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002439/0.3196, allocations: 0.7201 MB / 1.064 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.058e-05/0.3197, allocations: 21.38 kB / 1.064 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.448e-05/0.3198, allocations: 55.41 kB / 1.064 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.3198, allocations: 4 kB / 1.064 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02118/0.341, allocations: 4.594 MB / 1.069 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.522/7.863, allocations: 0 / 1.069 GB, free: 7.887 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