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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|intRep.u|intRep.y.2.|intRep.y.1.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator") translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|intRep.u|intRep.y.2.|intRep.y.1.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 102.8 kB / 16.27 MB, free: 6.414 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.00127/0.00127, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.402/1.402, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.756/2.756, allocations: 482.4 MB / 0.7553 GB, free: 6.969 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002123/0.002123, allocations: 68.3 kB / 0.9245 GB, free: 15.99 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9396/0.9418, allocations: 162.2 MB / 1.083 GB, free: 1.652 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003173/0.945, allocations: 1.773 MB / 1.085 GB, free: 416 kB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001737/0.9468, allocations: 1.097 MB / 1.086 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.803e-05/0.9469, allocations: 5.375 kB / 1.086 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0003109/0.9472, allocations: 58 kB / 1.086 GB, free: 15.63 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0002618/0.9475, allocations: 83.72 kB / 1.086 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006692/0.9482, allocations: 218.7 kB / 1.086 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002315/0.9484, allocations: 141.4 kB / 1.086 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.9485, allocations: 30.64 kB / 1.086 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001215/0.9487, allocations: 57.91 kB / 1.086 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001117/0.9488, allocations: 67.22 kB / 1.086 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.372e-05/0.9488, allocations: 6.188 kB / 1.086 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001721/0.949, allocations: 72.98 kB / 1.086 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 8.516e-05/0.9491, allocations: 37.05 kB / 1.086 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 8.435e-05/0.9492, allocations: 64.23 kB / 1.087 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003277/0.9495, allocations: 193.5 kB / 1.087 GB, free: 15.19 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.9495, allocations: 0 / 1.087 GB, free: 15.19 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.373e-06/0.9496, allocations: 3.938 kB / 1.087 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.712e-06/0.9496, allocations: 1.25 kB / 1.087 GB, free: 15.18 MB / 0.8419 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.0007955/0.9504, allocations: 495.7 kB / 1.087 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.9504, allocations: 9.156 kB / 1.087 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.822e-05/0.9505, allocations: 20.66 kB / 1.087 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003305/0.9508, allocations: 245 kB / 1.087 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.074e-05/0.9509, allocations: 7.5 kB / 1.087 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.79e-05/0.9509, allocations: 7.406 kB / 1.087 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002482/0.9511, allocations: 97.12 kB / 1.088 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.9512, allocations: 4.531 kB / 1.088 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.78e-05/0.9512, allocations: 9 kB / 1.088 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.079e-05/0.9512, allocations: 2.859 kB / 1.088 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001184/0.9513, allocations: 31.72 kB / 1.088 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006229/0.952, allocations: 355.9 kB / 1.088 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002585/0.9522, allocations: 87.52 kB / 1.088 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.478e-05/0.9523, allocations: 31.45 kB / 1.088 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.912e-05/0.9524, allocations: 1.219 kB / 1.088 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002324/0.9526, allocations: 88.14 kB / 1.088 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 1.684e-06/0.9526, allocations: 0 / 1.088 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.0004137/0.953, allocations: 138 kB / 1.088 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.154e-05/0.9531, allocations: 112.4 kB / 1.088 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003189/0.9535, allocations: 253.7 kB / 1.089 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.487e-05/0.9535, allocations: 31.7 kB / 1.089 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.484e-05/0.9536, allocations: 113.1 kB / 1.089 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.592e-05/0.9536, allocations: 28.59 kB / 1.089 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.832e-05/0.9537, allocations: 29.55 kB / 1.089 GB, free: 13.4 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001731/0.9539, allocations: 333.4 kB / 1.089 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.828e-05/0.954, allocations: 25.72 kB / 1.089 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001145/0.9541, allocations: 71.69 kB / 1.089 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001599/0.9543, allocations: 70.12 kB / 1.089 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.788e-06/0.9543, allocations: 0 / 1.089 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002403/0.9545, allocations: 114.4 kB / 1.089 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.9545, allocations: 5.078 kB / 1.089 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.9546, allocations: 4.031 kB / 1.089 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.207e-05/0.9546, allocations: 5.844 kB / 1.089 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001033/0.9547, allocations: 17.42 kB / 1.089 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.9547, allocations: 0.75 kB / 1.089 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.991e-05/0.9548, allocations: 8.531 kB / 1.089 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.283e-05/0.9548, allocations: 7.219 kB / 1.089 GB, free: 12.89 MB / 0.8419 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.0001541/0.955, allocations: 137.2 kB / 1.09 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.315e-05/0.955, allocations: 16.95 kB / 1.09 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.912e-05/0.9551, allocations: 25.77 kB / 1.09 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.9551, allocations: 3.062 kB / 1.09 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.9551, allocations: 0.7031 kB / 1.09 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.9551, allocations: 3.938 kB / 1.09 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002555/0.9554, allocations: 231.9 kB / 1.09 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.628e-05/0.9554, allocations: 0 / 1.09 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.301e-05/0.9554, allocations: 10.95 kB / 1.09 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.9554, allocations: 0 / 1.09 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.9555, allocations: 2.297 kB / 1.09 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.9555, allocations: 0.8438 kB / 1.09 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.9555, allocations: 0.75 kB / 1.09 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002893/0.9558, allocations: 154.6 kB / 1.09 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.715e-05/0.9558, allocations: 88.45 kB / 1.09 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.98e-05/0.9559, allocations: 2.078 kB / 1.09 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.567e-05/0.9559, allocations: 3.094 kB / 1.09 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.306e-05/0.956, allocations: 11.38 kB / 1.09 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.665e-05/0.956, allocations: 7.812 kB / 1.09 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001985/0.9562, allocations: 200.5 kB / 1.09 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9562, allocations: 4 kB / 1.09 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002845/0.9565, allocations: 32.66 kB / 1.09 GB, free: 12.18 MB / 0.8419 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.001577/0.9581, allocations: 427.5 kB / 1.091 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002698/0.9584, allocations: 71.38 kB / 1.091 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.9584, allocations: 0 / 1.091 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001169/0.9585, allocations: 37.75 kB / 1.091 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003333/0.9589, allocations: 56.5 kB / 1.091 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006273/0.9595, allocations: 324.8 kB / 1.091 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000398/0.9599, allocations: 0.7202 MB / 1.092 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.963e-05/0.96, allocations: 20.12 kB / 1.092 GB, free: 11 MB / 0.8419 GB Notification: Performance of SimCode: time 4.2e-07/0.96, allocations: 0 / 1.092 GB, free: 11 MB / 0.8419 GB Notification: Performance of Templates: time 0.005688/0.9657, allocations: 2.605 MB / 1.094 GB, free: 10.7 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile (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 & ./Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > 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