Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001775/0.001775, allocations: 103.6 kB / 18.95 MB, free: 2.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001954/0.001954, allocations: 214.5 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.526/1.526, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.346/3.346, allocations: 0.49 GB / 0.7951 GB, free: 35.63 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002126/0.002126, allocations: 77.39 kB / 1.154 GB, free: 25.41 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4139/0.416, allocations: 176.1 MB / 1.326 GB, free: 1.52 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003279/0.4193, allocations: 1.784 MB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002215/0.4215, allocations: 1.185 MB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.353e-05/0.4216, allocations: 3.938 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.000331/0.4219, allocations: 59.73 kB / 1.329 GB, free: 14.47 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0003809/0.4223, allocations: 127.5 kB / 1.329 GB, free: 14.35 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005471/0.4229, allocations: 193.8 kB / 1.329 GB, free: 14.16 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002298/0.4231, allocations: 159.6 kB / 1.329 GB, free: 14 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001111/0.4232, allocations: 13.91 kB / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001095/0.4233, allocations: 71.7 kB / 1.329 GB, free: 13.91 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001308/0.4234, allocations: 75.67 kB / 1.329 GB, free: 13.84 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.108e-05/0.4235, allocations: 8 kB / 1.329 GB, free: 13.83 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001819/0.4236, allocations: 83.92 kB / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 8.17e-05/0.4237, allocations: 39.86 kB / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.723e-05/0.4238, allocations: 47.66 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003227/0.4241, allocations: 211.1 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.4241, allocations: 0 / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.603e-06/0.4241, allocations: 0 / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.431e-06/0.4241, allocations: 0 / 1.33 GB, free: 13.46 MB / 1.029 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.000669/0.4248, allocations: 426.9 kB / 1.33 GB, free: 13 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.4248, allocations: 12.03 kB / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.467e-05/0.4249, allocations: 42.69 kB / 1.33 GB, free: 12.94 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.721e-05/0.4249, allocations: 16.84 kB / 1.33 GB, free: 12.93 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003506/0.4253, allocations: 198.8 kB / 1.33 GB, free: 12.71 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.578e-05/0.4253, allocations: 384 / 1.33 GB, free: 12.71 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.898e-05/0.4253, allocations: 11.94 kB / 1.33 GB, free: 12.7 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002322/0.4256, allocations: 113 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.4256, allocations: 0 / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.483e-05/0.4256, allocations: 4 kB / 1.331 GB, free: 12.56 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.658e-05/0.4256, allocations: 7.969 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001118/0.4257, allocations: 39.98 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000556/0.4263, allocations: 319.8 kB / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002498/0.4265, allocations: 90.7 kB / 1.331 GB, free: 12.06 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.395e-05/0.4266, allocations: 32.83 kB / 1.331 GB, free: 12.03 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.119e-05/0.4266, allocations: 4 kB / 1.331 GB, free: 12.02 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001981/0.4268, allocations: 83.36 kB / 1.331 GB, free: 11.93 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.493e-06/0.4268, allocations: 0 / 1.331 GB, free: 11.93 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0004196/0.4272, allocations: 145.5 kB / 1.331 GB, free: 11.78 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.848e-05/0.4273, allocations: 81.11 kB / 1.331 GB, free: 11.68 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003526/0.4277, allocations: 283 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.763e-05/0.4277, allocations: 33.69 kB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001/0.4278, allocations: 116.1 kB / 1.332 GB, free: 11.24 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.706e-05/0.4278, allocations: 27.78 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.285e-05/0.4279, allocations: 25.7 kB / 1.332 GB, free: 11.18 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001551/0.428, allocations: 326.8 kB / 1.332 GB, free: 10.85 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.755e-05/0.4281, allocations: 27.98 kB / 1.332 GB, free: 10.82 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/0.4282, allocations: 118.8 kB / 1.332 GB, free: 10.68 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001584/0.4284, allocations: 77.72 kB / 1.332 GB, free: 10.6 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.4284, allocations: 0 / 1.332 GB, free: 10.6 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002431/0.4286, allocations: 117.8 kB / 1.332 GB, free: 10.48 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.4287, allocations: 4 kB / 1.332 GB, free: 10.48 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.4287, allocations: 0 / 1.332 GB, free: 10.48 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.4287, allocations: 192 / 1.332 GB, free: 10.48 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.752e-05/0.4288, allocations: 15.98 kB / 1.332 GB, free: 10.46 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.4288, allocations: 3.938 kB / 1.332 GB, free: 10.46 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.633e-05/0.4289, allocations: 11.94 kB / 1.332 GB, free: 10.45 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.171e-05/0.4289, allocations: 8.031 kB / 1.332 GB, free: 10.44 MB / 1.029 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.0001455/0.429, allocations: 139.1 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.473e-05/0.429, allocations: 19.86 kB / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003198/0.4294, allocations: 135 kB / 1.333 GB, free: 10.13 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/0.4294, allocations: 0 / 1.333 GB, free: 10.13 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.4294, allocations: 0 / 1.333 GB, free: 10.13 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.104e-06/0.4294, allocations: 7.922 kB / 1.333 GB, free: 10.12 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002483/0.4296, allocations: 192.6 kB / 1.333 GB, free: 9.895 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.4296, allocations: 0 / 1.333 GB, free: 9.895 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.911e-05/0.4297, allocations: 11.94 kB / 1.333 GB, free: 9.883 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.4297, allocations: 4 kB / 1.333 GB, free: 9.879 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.4297, allocations: 0 / 1.333 GB, free: 9.879 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.4297, allocations: 7.984 kB / 1.333 GB, free: 9.871 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.4297, allocations: 0 / 1.333 GB, free: 9.871 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003009/0.43, allocations: 152.9 kB / 1.333 GB, free: 9.703 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.694e-05/0.43, allocations: 15.86 kB / 1.333 GB, free: 9.688 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.471e-05/0.4301, allocations: 8 kB / 1.333 GB, free: 9.68 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.012e-05/0.4301, allocations: 3.984 kB / 1.333 GB, free: 9.676 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.345e-05/0.4302, allocations: 15.86 kB / 1.333 GB, free: 9.66 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.691e-05/0.4302, allocations: 7.984 kB / 1.333 GB, free: 9.652 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002204/0.4304, allocations: 208.6 kB / 1.333 GB, free: 9.449 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.4304, allocations: 0 / 1.333 GB, free: 9.449 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002636/0.4307, allocations: 35.92 kB / 1.333 GB, free: 9.414 MB / 1.029 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.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * 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.002211/0.4329, allocations: 1.04 MB / 1.334 GB, free: 8.535 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002372/0.4331, allocations: 63.97 kB / 1.334 GB, free: 8.473 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4331, allocations: 0 / 1.334 GB, free: 8.473 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001015/0.4332, allocations: 39.91 kB / 1.335 GB, free: 8.434 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003147/0.4336, allocations: 49.61 kB / 1.335 GB, free: 8.387 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002429/0.436, allocations: 1.996 MB / 1.337 GB, free: 6.301 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001165/0.4361, allocations: 114.6 kB / 1.337 GB, free: 6.172 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.151e-05/0.4362, allocations: 25.72 kB / 1.337 GB, free: 6.145 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.725e-05/0.4363, allocations: 59.34 kB / 1.337 GB, free: 6.086 MB / 1.029 GB Notification: Performance of SimCode: time 3.71e-07/0.4363, allocations: 0 / 1.337 GB, free: 6.086 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03401/0.4703, allocations: 5.519 MB / 1.342 GB, free: 0.6367 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.61, allocations: 5.375 kB / 1.342 GB, free: 0.6367 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 18.84591532801278]