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.008574/0.008573, allocations: 101.3 kB / 15.73 MB, free: 6.012 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.001991/0.001991, allocations: 194.4 kB / 16.67 MB, free: 5.949 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.429/1.429, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.836/2.836, allocations: 461.9 MB / 0.7348 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 71.84 kB / 1.054 GB, free: 7.605 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.2949, allocations: 157.4 MB / 1.207 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003478/0.2984, allocations: 1.772 MB / 1.209 GB, free: 8.324 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001995/0.3004, allocations: 1.107 MB / 1.21 GB, free: 7.211 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001387/0.3006, allocations: 3.938 kB / 1.21 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0003826/0.301, allocations: 63.73 kB / 1.21 GB, free: 7.145 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002867/0.3013, allocations: 75.67 kB / 1.21 GB, free: 7.07 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006897/0.302, allocations: 221.5 kB / 1.21 GB, free: 6.855 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002524/0.3023, allocations: 151.6 kB / 1.211 GB, free: 6.707 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001123/0.3024, allocations: 25.11 kB / 1.211 GB, free: 6.684 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001267/0.3025, allocations: 59.77 kB / 1.211 GB, free: 6.625 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001259/0.3027, allocations: 67.69 kB / 1.211 GB, free: 6.559 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.47e-05/0.3027, allocations: 4 kB / 1.211 GB, free: 6.555 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000186/0.3029, allocations: 71.95 kB / 1.211 GB, free: 6.484 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.6e-05/0.303, allocations: 43.83 kB / 1.211 GB, free: 6.441 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 8.184e-05/0.3031, allocations: 55.61 kB / 1.211 GB, free: 6.387 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003574/0.3034, allocations: 199.7 kB / 1.211 GB, free: 6.191 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3034, allocations: 0 / 1.211 GB, free: 6.191 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.713e-06/0.3035, allocations: 0 / 1.211 GB, free: 6.191 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.384e-05/0.3035, allocations: 8 kB / 1.211 GB, free: 6.184 MB / 0.9669 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.0007606/0.3042, allocations: 488.2 kB / 1.212 GB, free: 5.652 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.3043, allocations: 16.61 kB / 1.212 GB, free: 5.637 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.846e-05/0.3043, allocations: 30.75 kB / 1.212 GB, free: 5.598 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.242e-05/0.3044, allocations: 20.75 kB / 1.212 GB, free: 5.578 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003817/0.3048, allocations: 244.9 kB / 1.212 GB, free: 5.297 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.62e-05/0.3048, allocations: 4.375 kB / 1.212 GB, free: 5.293 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.617e-05/0.3048, allocations: 11.92 kB / 1.212 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002072/0.3051, allocations: 92.23 kB / 1.212 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.158e-06/0.3051, allocations: 3.938 kB / 1.212 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.463e-05/0.3051, allocations: 8 kB / 1.212 GB, free: 5.164 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.819e-05/0.3051, allocations: 4 kB / 1.212 GB, free: 5.16 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001163/0.3052, allocations: 31.97 kB / 1.212 GB, free: 5.129 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00052/0.3058, allocations: 360.5 kB / 1.212 GB, free: 4.727 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002353/0.306, allocations: 94.69 kB / 1.212 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.79e-05/0.3061, allocations: 32.84 kB / 1.212 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.141e-05/0.3061, allocations: 0 / 1.212 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001768/0.3063, allocations: 79.38 kB / 1.213 GB, free: 4.5 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.833e-06/0.3063, allocations: 4 kB / 1.213 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.0003908/0.3067, allocations: 149.4 kB / 1.213 GB, free: 4.344 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.884e-05/0.3068, allocations: 110.8 kB / 1.213 GB, free: 4.211 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002546/0.3071, allocations: 256.2 kB / 1.213 GB, free: 3.953 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.3071, allocations: 33.7 kB / 1.213 GB, free: 3.914 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.628e-05/0.3072, allocations: 120 kB / 1.213 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.764e-05/0.3072, allocations: 19.8 kB / 1.213 GB, free: 3.773 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.058e-05/0.3073, allocations: 21.72 kB / 1.213 GB, free: 3.746 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001123/0.3074, allocations: 334.8 kB / 1.214 GB, free: 3.41 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.638e-05/0.3075, allocations: 23.98 kB / 1.214 GB, free: 3.387 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.942e-05/0.3076, allocations: 68.28 kB / 1.214 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001646/0.3078, allocations: 73.62 kB / 1.214 GB, free: 3.227 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.3078, allocations: 0 / 1.214 GB, free: 3.227 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002312/0.308, allocations: 117.7 kB / 1.214 GB, free: 3.105 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.308, allocations: 8 kB / 1.214 GB, free: 3.098 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.308, allocations: 0 / 1.214 GB, free: 3.098 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.3081, allocations: 0 / 1.214 GB, free: 3.098 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.791e-05/0.3082, allocations: 15.98 kB / 1.214 GB, free: 3.082 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.3082, allocations: 4.062 kB / 1.214 GB, free: 3.078 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.96e-05/0.3082, allocations: 11.88 kB / 1.214 GB, free: 3.066 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.172e-05/0.3083, allocations: 8 kB / 1.214 GB, free: 3.059 MB / 0.9669 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.0001217/0.3084, allocations: 141.8 kB / 1.214 GB, free: 2.91 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.085e-05/0.3084, allocations: 15.81 kB / 1.214 GB, free: 2.895 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.904e-05/0.3085, allocations: 21.39 kB / 1.214 GB, free: 2.871 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.3085, allocations: 0 / 1.214 GB, free: 2.871 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3085, allocations: 0 / 1.214 GB, free: 2.871 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.3085, allocations: 7.938 kB / 1.214 GB, free: 2.863 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001876/0.3087, allocations: 221.5 kB / 1.214 GB, free: 2.598 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.3087, allocations: 3.938 kB / 1.214 GB, free: 2.594 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.531e-05/0.3088, allocations: 7.984 kB / 1.214 GB, free: 2.586 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.3088, allocations: 0 / 1.214 GB, free: 2.586 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.3088, allocations: 12.19 kB / 1.214 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3088, allocations: 0 / 1.214 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3088, allocations: 3.938 kB / 1.214 GB, free: 2.57 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000258/0.3091, allocations: 152.8 kB / 1.214 GB, free: 2.402 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.163e-05/0.3091, allocations: 88.92 kB / 1.215 GB, free: 2.297 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.62e-05/0.3092, allocations: 0 / 1.215 GB, free: 2.297 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.007e-05/0.3092, allocations: 11.98 kB / 1.215 GB, free: 2.285 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.881e-05/0.3093, allocations: 11.94 kB / 1.215 GB, free: 2.273 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.432e-05/0.3093, allocations: 7.984 kB / 1.215 GB, free: 2.266 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001708/0.3095, allocations: 191.3 kB / 1.215 GB, free: 2.078 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.3e-07/0.3095, allocations: 4 kB / 1.215 GB, free: 2.074 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002752/0.3098, allocations: 35.98 kB / 1.215 GB, free: 2.039 MB / 0.9669 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.001407/0.3112, allocations: 0.9937 MB / 1.216 GB, free: 1.18 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000237/0.3114, allocations: 75.88 kB / 1.216 GB, free: 1.105 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3115, allocations: 0 / 1.216 GB, free: 1.105 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.983e-05/0.3116, allocations: 35.98 kB / 1.216 GB, free: 1.07 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003296/0.3119, allocations: 45.03 kB / 1.216 GB, free: 1.027 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002265/0.3142, allocations: 1.955 MB / 1.218 GB, free: 14.98 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002841/0.3145, allocations: 0.7201 MB / 1.218 GB, free: 14.24 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.496e-05/0.3146, allocations: 25.38 kB / 1.219 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.598e-05/0.3147, allocations: 47.42 kB / 1.219 GB, free: 14.17 MB / 0.9825 GB Notification: Performance of SimCode: time 3.81e-07/0.3147, allocations: 4 kB / 1.219 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02273/0.3374, allocations: 4.739 MB / 1.223 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.831/8.169, allocations: 12.66 kB / 1.223 GB, free: 9.543 MB / 0.9825 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) "" Variables in the reference:time,intRep.u,intRep.y[2],intRep.y[1] Variables in the result:intRep.nout,intRep.u,intRep.y[1],intRep.y[2],intTab.combiTimeTable.columns[1],intTab.combiTimeTable.extrapolation,intTab.combiTimeTable.nout,intTab.combiTimeTable.offset[1],intTab.combiTimeTable.shiftTime,intTab.combiTimeTable.smoothness,intTab.combiTimeTable.startTime,intTab.combiTimeTable.t_max,intTab.combiTimeTable.t_maxScaled,intTab.combiTimeTable.t_min,intTab.combiTimeTable.t_minScaled,intTab.combiTimeTable.tableOnFile,intTab.combiTimeTable.table[1,1],intTab.combiTimeTable.table[1,2],intTab.combiTimeTable.table[2,1],intTab.combiTimeTable.table[2,2],intTab.combiTimeTable.table[3,1],intTab.combiTimeTable.table[3,2],intTab.combiTimeTable.table[4,1],intTab.combiTimeTable.table[4,2],intTab.combiTimeTable.timeEvents,intTab.combiTimeTable.timeScale,intTab.combiTimeTable.verboseExtrapolation,intTab.combiTimeTable.verboseRead,intTab.combiTimeTable.y[1],intTab.extrapolation,intTab.realToInteger.u,intTab.realToInteger.y,intTab.shiftTime,intTab.startTime,intTab.table[1,1],intTab.table[1,2],intTab.table[2,1],intTab.table[2,2],intTab.table[3,1],intTab.table[3,2],intTab.table[4,1],intTab.table[4,2],intTab.y,time