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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 104.4 kB / 16.46 MB, free: 6.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 191.8 kB / 19.41 MB, free: 3.664 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.52/1.52, allocations: 225.6 MB / 247.8 MB, free: 13.92 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.245/3.245, allocations: 497.2 MB / 0.7811 GB, free: 33.64 MB / 0.6231 GB " [Timeout remaining time 176] 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: "" <> 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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 67.69 kB / 1.134 GB, free: 33.6 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3742/0.3761, allocations: 173.9 MB / 1.304 GB, free: 1.523 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003453/0.3795, allocations: 1.771 MB / 1.306 GB, free: 15.74 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001965/0.3815, allocations: 1.122 MB / 1.307 GB, free: 14.61 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001112/0.3816, allocations: 0 / 1.307 GB, free: 14.61 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.000309/0.3819, allocations: 63.73 kB / 1.307 GB, free: 14.55 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0002821/0.3822, allocations: 79.67 kB / 1.307 GB, free: 14.47 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007023/0.3829, allocations: 226.5 kB / 1.307 GB, free: 14.25 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002543/0.3831, allocations: 139.7 kB / 1.307 GB, free: 14.11 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.3833, allocations: 21.11 kB / 1.307 GB, free: 14.09 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001382/0.3834, allocations: 71.64 kB / 1.307 GB, free: 14.02 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001457/0.3835, allocations: 67.73 kB / 1.307 GB, free: 13.96 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.363e-05/0.3836, allocations: 8 kB / 1.307 GB, free: 13.95 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001896/0.3838, allocations: 75.94 kB / 1.308 GB, free: 13.88 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 8.571e-05/0.3838, allocations: 47.78 kB / 1.308 GB, free: 13.83 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 7.279e-05/0.3839, allocations: 51.67 kB / 1.308 GB, free: 13.78 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0003372/0.3843, allocations: 199.5 kB / 1.308 GB, free: 13.58 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.3843, allocations: 0 / 1.308 GB, free: 13.58 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.393e-06/0.3843, allocations: 0 / 1.308 GB, free: 13.58 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.116e-05/0.3843, allocations: 0 / 1.308 GB, free: 13.58 MB / 1.014 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.0007444/0.385, allocations: 0.4999 MB / 1.308 GB, free: 13.03 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.385, allocations: 8.922 kB / 1.308 GB, free: 13.02 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.972e-05/0.3851, allocations: 46.67 kB / 1.308 GB, free: 12.96 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.509e-05/0.3852, allocations: 16.8 kB / 1.308 GB, free: 12.95 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003919/0.3855, allocations: 241.1 kB / 1.309 GB, free: 12.67 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.39e-05/0.3856, allocations: 12.38 kB / 1.309 GB, free: 12.66 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.945e-05/0.3856, allocations: 7.938 kB / 1.309 GB, free: 12.65 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002294/0.3858, allocations: 100.2 kB / 1.309 GB, free: 12.54 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.3858, allocations: 0 / 1.309 GB, free: 12.54 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.397e-05/0.3858, allocations: 4 kB / 1.309 GB, free: 12.54 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.976e-05/0.3859, allocations: 0 / 1.309 GB, free: 12.54 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001101/0.386, allocations: 31.98 kB / 1.309 GB, free: 12.5 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005622/0.3865, allocations: 360.6 kB / 1.309 GB, free: 12.1 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002436/0.3868, allocations: 86.66 kB / 1.309 GB, free: 12.01 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.76e-05/0.3869, allocations: 28.84 kB / 1.309 GB, free: 11.98 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.199e-05/0.3869, allocations: 0 / 1.309 GB, free: 11.98 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001879/0.3871, allocations: 87.39 kB / 1.309 GB, free: 11.88 MB / 1.014 GB Notification: Performance of pre-optimization done (n=8): time 1.352e-06/0.3871, allocations: 4 kB / 1.309 GB, free: 11.88 MB / 1.014 GB Notification: Performance of matching and sorting (n=8): time 0.0003908/0.3875, allocations: 137.5 kB / 1.309 GB, free: 11.73 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.864e-05/0.3875, allocations: 102.8 kB / 1.309 GB, free: 11.61 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002838/0.3878, allocations: 270.9 kB / 1.31 GB, free: 11.34 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.962e-05/0.3878, allocations: 25.7 kB / 1.31 GB, free: 11.3 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 8.658e-05/0.3879, allocations: 120.1 kB / 1.31 GB, free: 11.18 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.786e-05/0.3879, allocations: 15.91 kB / 1.31 GB, free: 11.17 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.151e-05/0.388, allocations: 33.62 kB / 1.31 GB, free: 11.13 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001479/0.3881, allocations: 330.8 kB / 1.31 GB, free: 10.8 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.673e-05/0.3882, allocations: 31.92 kB / 1.31 GB, free: 10.77 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001088/0.3883, allocations: 68.27 kB / 1.31 GB, free: 10.68 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001518/0.3885, allocations: 65.7 kB / 1.31 GB, free: 10.61 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3885, allocations: 0 / 1.31 GB, free: 10.61 MB / 1.014 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002293/0.3887, allocations: 121.5 kB / 1.311 GB, free: 10.49 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.3887, allocations: 4.188 kB / 1.311 GB, free: 10.48 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.3887, allocations: 4 kB / 1.311 GB, free: 10.48 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.3887, allocations: 3.938 kB / 1.311 GB, free: 10.48 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.747e-05/0.3888, allocations: 8 kB / 1.311 GB, free: 10.47 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.3888, allocations: 4 kB / 1.311 GB, free: 10.46 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.075e-05/0.3889, allocations: 15.81 kB / 1.311 GB, free: 10.45 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.194e-06/0.3889, allocations: 4 kB / 1.311 GB, free: 10.45 MB / 1.014 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.0001392/0.3891, allocations: 150.9 kB / 1.311 GB, free: 10.29 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.091e-05/0.3891, allocations: 19.91 kB / 1.311 GB, free: 10.27 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.833e-05/0.3891, allocations: 17.39 kB / 1.311 GB, free: 10.24 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/0.3891, allocations: 4 kB / 1.311 GB, free: 10.24 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3892, allocations: 0 / 1.311 GB, free: 10.24 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.3892, allocations: 3.938 kB / 1.311 GB, free: 10.23 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002134/0.3894, allocations: 221.6 kB / 1.311 GB, free: 9.969 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.3894, allocations: 3.984 kB / 1.311 GB, free: 9.965 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.186e-05/0.3894, allocations: 12 kB / 1.311 GB, free: 9.953 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.3894, allocations: 0 / 1.311 GB, free: 9.953 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.215e-05/0.3894, allocations: 3.984 kB / 1.311 GB, free: 9.949 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3894, allocations: 4 kB / 1.311 GB, free: 9.945 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3894, allocations: 0 / 1.311 GB, free: 9.945 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002589/0.3897, allocations: 148.8 kB / 1.311 GB, free: 9.781 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 7.446e-05/0.3898, allocations: 93.02 kB / 1.311 GB, free: 9.672 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.532e-05/0.3898, allocations: 4 kB / 1.311 GB, free: 9.668 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.086e-05/0.3898, allocations: 0 / 1.311 GB, free: 9.668 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.036e-05/0.3899, allocations: 15.92 kB / 1.311 GB, free: 9.652 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.051e-05/0.3899, allocations: 4 kB / 1.311 GB, free: 9.648 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001936/0.3901, allocations: 208.1 kB / 1.311 GB, free: 9.445 MB / 1.014 GB Notification: Performance of sort global known variables: time 9e-08/0.3901, allocations: 0 / 1.311 GB, free: 9.445 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002564/0.3904, allocations: 35.92 kB / 1.311 GB, free: 9.41 MB / 1.014 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.002015/0.3924, allocations: 1.008 MB / 1.312 GB, free: 8.551 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0002303/0.3926, allocations: 63.97 kB / 1.313 GB, free: 8.488 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3926, allocations: 0 / 1.313 GB, free: 8.488 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 9.37e-05/0.3927, allocations: 39.91 kB / 1.313 GB, free: 8.449 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002948/0.393, allocations: 36.22 kB / 1.313 GB, free: 8.414 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0024/0.3954, allocations: 1.956 MB / 1.315 GB, free: 6.371 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003488/0.3957, allocations: 0.7201 MB / 1.315 GB, free: 5.625 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 8.408e-05/0.3958, allocations: 25.02 kB / 1.315 GB, free: 5.602 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.941e-05/0.3959, allocations: 47.41 kB / 1.315 GB, free: 5.555 MB / 1.014 GB Notification: Performance of SimCode: time 8.01e-07/0.3959, allocations: 0 / 1.315 GB, free: 5.555 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03045/0.4264, allocations: 4.727 MB / 1.32 GB, free: 0.9141 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.267/8.693, allocations: 8 kB / 1.32 GB, free: 0.9062 MB / 1.014 GB " [Timeout remaining time 291] (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 --stepSize=0.0008 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) [Timeout 840.0] 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_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.671301594004035]