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.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.001844/0.001844, allocations: 104.3 kB / 16.45 MB, free: 6.387 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.001537/0.001537, allocations: 218.3 kB / 19.43 MB, free: 3.727 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.514/1.514, allocations: 230.6 MB / 252.8 MB, free: 8.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.408/3.408, allocations: 0.505 GB / 0.8066 GB, free: 23.12 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_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: 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.002293/0.002293, allocations: 69.48 kB / 1.172 GB, free: 17.42 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3757/0.3779, allocations: 180.2 MB / 1.348 GB, free: 9.953 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003295/0.3812, allocations: 1.804 MB / 1.35 GB, free: 8.137 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002282/0.3835, allocations: 1.277 MB / 1.351 GB, free: 6.855 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.707e-05/0.3836, allocations: 4 kB / 1.351 GB, free: 6.852 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0003002/0.3839, allocations: 51.69 kB / 1.351 GB, free: 6.801 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0003489/0.3843, allocations: 127.5 kB / 1.351 GB, free: 6.676 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005428/0.3848, allocations: 189.8 kB / 1.351 GB, free: 6.492 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.000226/0.385, allocations: 151.6 kB / 1.351 GB, free: 6.344 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.3851, allocations: 21.42 kB / 1.351 GB, free: 6.32 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000117/0.3852, allocations: 71.64 kB / 1.351 GB, free: 6.25 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001248/0.3854, allocations: 71.73 kB / 1.351 GB, free: 6.18 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.994e-05/0.3854, allocations: 8 kB / 1.351 GB, free: 6.172 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001617/0.3856, allocations: 75.94 kB / 1.352 GB, free: 6.098 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 7.698e-05/0.3856, allocations: 39.8 kB / 1.352 GB, free: 6.059 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 9.482e-05/0.3857, allocations: 67.59 kB / 1.352 GB, free: 5.992 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003388/0.3861, allocations: 203.5 kB / 1.352 GB, free: 5.793 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.3861, allocations: 4 kB / 1.352 GB, free: 5.789 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.303e-06/0.3861, allocations: 0 / 1.352 GB, free: 5.789 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.974e-06/0.3861, allocations: 0 / 1.352 GB, free: 5.789 MB / 1.045 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.0007542/0.3868, allocations: 0.496 MB / 1.352 GB, free: 5.238 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.3869, allocations: 11.98 kB / 1.352 GB, free: 5.227 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.207e-05/0.3869, allocations: 34.75 kB / 1.352 GB, free: 5.184 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.695e-05/0.387, allocations: 24.73 kB / 1.352 GB, free: 5.16 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003893/0.3874, allocations: 260 kB / 1.353 GB, free: 4.867 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.065e-05/0.3874, allocations: 4.312 kB / 1.353 GB, free: 4.863 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.216e-05/0.3874, allocations: 7.938 kB / 1.353 GB, free: 4.855 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002153/0.3876, allocations: 96.17 kB / 1.353 GB, free: 4.746 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.3876, allocations: 0 / 1.353 GB, free: 4.746 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.3876, allocations: 0 / 1.353 GB, free: 4.746 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.98e-05/0.3877, allocations: 7.984 kB / 1.353 GB, free: 4.738 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001105/0.3878, allocations: 31.98 kB / 1.353 GB, free: 4.707 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005417/0.3883, allocations: 356.6 kB / 1.353 GB, free: 4.309 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002351/0.3885, allocations: 82.66 kB / 1.353 GB, free: 4.219 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.019e-05/0.3886, allocations: 32.84 kB / 1.353 GB, free: 4.184 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.3886, allocations: 3.984 kB / 1.353 GB, free: 4.18 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001829/0.3888, allocations: 87.41 kB / 1.353 GB, free: 4.082 MB / 1.045 GB Notification: Performance of pre-optimization done (n=8): time 1.833e-06/0.3888, allocations: 0 / 1.353 GB, free: 4.082 MB / 1.045 GB Notification: Performance of matching and sorting (n=8): time 0.0003767/0.3892, allocations: 141.5 kB / 1.353 GB, free: 3.938 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.306e-05/0.3893, allocations: 102.8 kB / 1.354 GB, free: 3.812 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003236/0.3896, allocations: 279 kB / 1.354 GB, free: 3.527 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.266e-05/0.3896, allocations: 29.7 kB / 1.354 GB, free: 3.492 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 9.604e-05/0.3897, allocations: 120.1 kB / 1.354 GB, free: 3.371 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.335e-05/0.3897, allocations: 31.77 kB / 1.354 GB, free: 3.34 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.227e-05/0.3898, allocations: 21.72 kB / 1.354 GB, free: 3.312 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001552/0.39, allocations: 334.8 kB / 1.354 GB, free: 2.977 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.189e-05/0.39, allocations: 27.92 kB / 1.354 GB, free: 2.949 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000113/0.3901, allocations: 64.28 kB / 1.354 GB, free: 2.871 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001597/0.3903, allocations: 73.69 kB / 1.354 GB, free: 2.793 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3903, allocations: 0 / 1.354 GB, free: 2.793 MB / 1.045 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002416/0.3906, allocations: 113.5 kB / 1.355 GB, free: 2.676 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.3906, allocations: 4 kB / 1.355 GB, free: 2.672 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.894e-06/0.3906, allocations: 7.938 kB / 1.355 GB, free: 2.664 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.3906, allocations: 0 / 1.355 GB, free: 2.664 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.624e-05/0.3907, allocations: 12.17 kB / 1.355 GB, free: 2.652 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.962e-06/0.3907, allocations: 4 kB / 1.355 GB, free: 2.648 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.852e-05/0.3908, allocations: 19.86 kB / 1.355 GB, free: 2.629 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-06/0.3908, allocations: 4.328 kB / 1.355 GB, free: 2.625 MB / 1.045 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.0001417/0.3909, allocations: 145.8 kB / 1.355 GB, free: 2.473 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.649e-05/0.3909, allocations: 19.91 kB / 1.355 GB, free: 2.453 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.515e-05/0.391, allocations: 21.39 kB / 1.355 GB, free: 2.43 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.826e-06/0.391, allocations: 48 / 1.355 GB, free: 2.43 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.391, allocations: 3.984 kB / 1.355 GB, free: 2.426 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.391, allocations: 3.938 kB / 1.355 GB, free: 2.422 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000224/0.3912, allocations: 229.5 kB / 1.355 GB, free: 2.148 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3912, allocations: 4 kB / 1.355 GB, free: 2.145 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.581e-05/0.3913, allocations: 8 kB / 1.355 GB, free: 2.137 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.3913, allocations: 0 / 1.355 GB, free: 2.137 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.186e-05/0.3913, allocations: 4 kB / 1.355 GB, free: 2.133 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.3913, allocations: 0 / 1.355 GB, free: 2.133 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3913, allocations: 3.984 kB / 1.355 GB, free: 2.129 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002749/0.3916, allocations: 148.9 kB / 1.355 GB, free: 1.965 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 6.872e-05/0.3916, allocations: 96.95 kB / 1.355 GB, free: 1.852 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.072e-05/0.3917, allocations: 12 kB / 1.355 GB, free: 1.84 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.496e-05/0.3917, allocations: 0 / 1.355 GB, free: 1.84 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.425e-05/0.3918, allocations: 11.92 kB / 1.355 GB, free: 1.828 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.3918, allocations: 4 kB / 1.355 GB, free: 1.824 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0002184/0.392, allocations: 204.6 kB / 1.356 GB, free: 1.625 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.392, allocations: 0 / 1.356 GB, free: 1.625 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002654/0.3923, allocations: 31.94 kB / 1.356 GB, free: 1.594 MB / 1.045 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.00215/0.3944, allocations: 1.001 MB / 1.357 GB, free: 0.7227 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002469/0.3947, allocations: 59.97 kB / 1.357 GB, free: 0.6641 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3947, allocations: 4 kB / 1.357 GB, free: 0.6602 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001031/0.3948, allocations: 39.89 kB / 1.357 GB, free: 0.6211 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003192/0.3951, allocations: 41.89 kB / 1.357 GB, free: 0.5859 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002521/0.3976, allocations: 1.988 MB / 1.359 GB, free: 14.5 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003352/0.398, allocations: 0.7163 MB / 1.359 GB, free: 13.76 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.253e-05/0.398, allocations: 33.36 kB / 1.359 GB, free: 13.73 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.255e-05/0.3981, allocations: 47.42 kB / 1.359 GB, free: 13.68 MB / 1.061 GB Notification: Performance of SimCode: time 4.51e-07/0.3981, allocations: 0 / 1.359 GB, free: 13.68 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03134/0.4295, allocations: 4.825 MB / 1.364 GB, free: 8.934 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.268/8.698, allocations: 5.703 kB / 1.364 GB, free: 8.93 MB / 1.061 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.csv --start-time 0 --stop-time 2 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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.csv","/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) [Timeout 300] "Error: Could not read variable intRep.u in file Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.csv. Warning: Get data of variable intRep.u from file Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.csv failed! Error: Could not read variable intRep.y[2] in file Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.csv. Warning: Get data of variable intRep.y[2] from file Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.csv failed! Error: Could not read variable intRep.y[1] in file Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.csv. Warning: Get data of variable intRep.y[1] from file Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.031280759954825]