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.00176/0.00176, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002525/0.002525, allocations: 214.2 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.564/1.564, 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.274/3.274, allocations: 0.4892 GB / 0.7943 GB, free: 35.53 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.002099/0.002099, allocations: 71.19 kB / 1.153 GB, free: 25.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3722/0.3743, allocations: 176.1 MB / 1.325 GB, free: 2.328 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003661/0.3779, allocations: 1.782 MB / 1.327 GB, free: 0.5391 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002189/0.3801, allocations: 1.193 MB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001/0.3802, allocations: 7.938 kB / 1.328 GB, free: 15.33 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0003601/0.3806, allocations: 55.73 kB / 1.328 GB, free: 15.28 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0004016/0.381, allocations: 123.5 kB / 1.328 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006038/0.3816, allocations: 203.3 kB / 1.328 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002515/0.3818, allocations: 155.6 kB / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001257/0.382, allocations: 13.92 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001213/0.3821, allocations: 71.75 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001416/0.3822, allocations: 75.61 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.324e-05/0.3822, allocations: 8 kB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001844/0.3824, allocations: 71.95 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 8.954e-05/0.3825, allocations: 39.89 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.868e-05/0.3826, allocations: 43.67 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003525/0.3829, allocations: 211.1 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 7.665e-06/0.3829, allocations: 8 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.613e-06/0.383, allocations: 0 / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.091e-06/0.383, allocations: 0 / 1.329 GB, free: 14.27 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.0007441/0.3837, allocations: 426.9 kB / 1.329 GB, free: 13.81 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.3837, allocations: 8.031 kB / 1.329 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.058e-05/0.3838, allocations: 46.67 kB / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.209e-05/0.3838, allocations: 12.84 kB / 1.329 GB, free: 13.74 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004122/0.3843, allocations: 202.8 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.203e-05/0.3843, allocations: 384 / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.381e-05/0.3843, allocations: 11.94 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002455/0.3845, allocations: 117.1 kB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.3845, allocations: 0 / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.22e-05/0.3846, allocations: 0 / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.4e-05/0.3846, allocations: 4 kB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001201/0.3847, allocations: 39.91 kB / 1.33 GB, free: 13.33 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000543/0.3852, allocations: 311.8 kB / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002387/0.3855, allocations: 90.69 kB / 1.33 GB, free: 12.88 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.036e-05/0.3856, allocations: 32.84 kB / 1.33 GB, free: 12.85 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.206e-05/0.3856, allocations: 4 kB / 1.33 GB, free: 12.84 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001935/0.3858, allocations: 79.38 kB / 1.33 GB, free: 12.75 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.333e-06/0.3858, allocations: 0 / 1.33 GB, free: 12.75 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0003927/0.3862, allocations: 149.5 kB / 1.33 GB, free: 12.6 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.249e-05/0.3862, allocations: 77.11 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003109/0.3865, allocations: 287 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.349e-05/0.3866, allocations: 29.7 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.764e-05/0.3867, allocations: 116.1 kB / 1.331 GB, free: 12.06 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.307e-05/0.3867, allocations: 27.78 kB / 1.331 GB, free: 12.04 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.886e-05/0.3867, allocations: 25.72 kB / 1.331 GB, free: 12 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001584/0.3869, allocations: 334.8 kB / 1.331 GB, free: 11.67 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.684e-05/0.387, allocations: 27.98 kB / 1.331 GB, free: 11.64 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000129/0.3871, allocations: 118.8 kB / 1.331 GB, free: 11.5 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001533/0.3872, allocations: 73.62 kB / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.3873, allocations: 0 / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000234/0.3875, allocations: 117.8 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.3875, allocations: 8.188 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.3875, allocations: 80 / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.3875, allocations: 8 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.509e-05/0.3876, allocations: 12 kB / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.876e-06/0.3876, allocations: 3.984 kB / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.942e-05/0.3877, allocations: 15.92 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.695e-06/0.3877, allocations: 0 / 1.332 GB, free: 11.25 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.0001561/0.3879, allocations: 143.1 kB / 1.332 GB, free: 11.11 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.469e-05/0.3879, allocations: 19.86 kB / 1.332 GB, free: 11.09 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003041/0.3882, allocations: 135 kB / 1.332 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.899e-06/0.3882, allocations: 4 kB / 1.332 GB, free: 10.94 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.3882, allocations: 4 kB / 1.332 GB, free: 10.94 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.3882, allocations: 3.938 kB / 1.332 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002078/0.3884, allocations: 192.6 kB / 1.332 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.3884, allocations: 0 / 1.332 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.958e-05/0.3885, allocations: 11.98 kB / 1.332 GB, free: 10.69 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.3885, allocations: 0 / 1.332 GB, free: 10.69 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.498e-06/0.3885, allocations: 0 / 1.332 GB, free: 10.69 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.3885, allocations: 0 / 1.332 GB, free: 10.69 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.3885, allocations: 3.938 kB / 1.332 GB, free: 10.69 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002628/0.3888, allocations: 148.9 kB / 1.332 GB, free: 10.52 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.993e-05/0.3888, allocations: 23.84 kB / 1.332 GB, free: 10.5 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.755e-05/0.3888, allocations: 4 kB / 1.332 GB, free: 10.5 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.795e-05/0.3889, allocations: 8 kB / 1.332 GB, free: 10.49 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.66e-05/0.3889, allocations: 11.92 kB / 1.332 GB, free: 10.48 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.528e-05/0.389, allocations: 4 kB / 1.332 GB, free: 10.47 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.000204/0.3892, allocations: 208.6 kB / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3892, allocations: 0 / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002707/0.3894, allocations: 35.88 kB / 1.333 GB, free: 10.23 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.002364/0.3918, allocations: 1.039 MB / 1.334 GB, free: 9.355 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002772/0.3921, allocations: 71.89 kB / 1.334 GB, free: 9.285 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3921, allocations: 4 kB / 1.334 GB, free: 9.281 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.857e-05/0.3922, allocations: 39.86 kB / 1.334 GB, free: 9.242 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003261/0.3925, allocations: 37.8 kB / 1.334 GB, free: 9.207 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002624/0.3951, allocations: 1.998 MB / 1.336 GB, free: 7.121 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001173/0.3952, allocations: 114.6 kB / 1.336 GB, free: 6.992 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.547e-05/0.3953, allocations: 25.72 kB / 1.336 GB, free: 6.965 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001016/0.3954, allocations: 51.42 kB / 1.336 GB, free: 6.914 MB / 1.029 GB Notification: Performance of SimCode: time 4.2e-07/0.3954, allocations: 0 / 1.336 GB, free: 6.914 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03566/0.4311, allocations: 5.509 MB / 1.341 GB, free: 1.477 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/12.11, allocations: 10.36 kB / 1.341 GB, free: 1.473 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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator_res.csv --start-time 0 --stop-time 2 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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.csv","/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] "Error: Could not read variable intRep.u in file Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator_res.csv. Warning: Get data of variable intRep.u from file Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator_res.csv failed! Error: Could not read variable intRep.y[2] in file Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator_res.csv. Warning: Get data of variable intRep.y[2] from file Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator_res.csv failed! Error: Could not read variable intRep.y[1] in file Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator_res.csv. Warning: Get data of variable intRep.y[1] from file Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.268952624872327]