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.001349/0.001349, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001548/0.001548, allocations: 212.3 kB / 22.25 MB, free: 4.859 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.529/1.529, allocations: 230.6 MB / 256 MB, free: 7.797 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.325/3.325, allocations: 0.4892 GB / 0.7943 GB, free: 35.43 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.002093/0.002093, allocations: 65.38 kB / 1.153 GB, free: 25.75 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3726/0.3747, allocations: 176.1 MB / 1.325 GB, free: 2.34 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003742/0.3784, allocations: 1.768 MB / 1.327 GB, free: 0.5625 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002294/0.3807, allocations: 1.203 MB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001099/0.3808, allocations: 7.938 kB / 1.328 GB, free: 15.35 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0003199/0.3811, allocations: 59.73 kB / 1.328 GB, free: 15.29 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0004001/0.3815, allocations: 119.5 kB / 1.328 GB, free: 15.17 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006696/0.3822, allocations: 203.3 kB / 1.328 GB, free: 14.97 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002612/0.3825, allocations: 155.6 kB / 1.328 GB, free: 14.82 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001282/0.3826, allocations: 13.91 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001364/0.3827, allocations: 71.7 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001681/0.3829, allocations: 71.67 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.614e-05/0.3829, allocations: 8 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002203/0.3832, allocations: 75.94 kB / 1.329 GB, free: 14.58 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.49e-05/0.3833, allocations: 43.84 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.819e-05/0.3833, allocations: 43.72 kB / 1.329 GB, free: 14.49 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003752/0.3837, allocations: 215.1 kB / 1.329 GB, free: 14.28 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3837, allocations: 0 / 1.329 GB, free: 14.28 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.394e-06/0.3837, allocations: 0 / 1.329 GB, free: 14.28 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.317e-06/0.3837, allocations: 0 / 1.329 GB, free: 14.28 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.000813/0.3845, allocations: 426.9 kB / 1.329 GB, free: 13.83 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.3846, allocations: 8.031 kB / 1.329 GB, free: 13.82 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.502e-05/0.3846, allocations: 42.73 kB / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.64e-05/0.3847, allocations: 16.84 kB / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004335/0.3851, allocations: 198.8 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.768e-05/0.3852, allocations: 384 / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.758e-05/0.3852, allocations: 11.94 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000251/0.3854, allocations: 117 kB / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.3854, allocations: 0 / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.3854, allocations: 3.984 kB / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/0.3855, allocations: 7.938 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001219/0.3856, allocations: 39.97 kB / 1.33 GB, free: 13.34 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000606/0.3862, allocations: 311.8 kB / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002496/0.3864, allocations: 90.69 kB / 1.33 GB, free: 12.89 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.247e-05/0.3865, allocations: 32.84 kB / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.354e-05/0.3865, allocations: 4 kB / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001902/0.3867, allocations: 79.38 kB / 1.33 GB, free: 12.77 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.924e-06/0.3867, allocations: 0 / 1.33 GB, free: 12.77 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0003958/0.3871, allocations: 153.4 kB / 1.33 GB, free: 12.61 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.072e-05/0.3872, allocations: 77.11 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003212/0.3875, allocations: 287 kB / 1.331 GB, free: 12.22 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.456e-05/0.3875, allocations: 29.7 kB / 1.331 GB, free: 12.19 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.318e-05/0.3876, allocations: 120.1 kB / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.017e-05/0.3877, allocations: 23.78 kB / 1.331 GB, free: 12.04 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.642e-05/0.3877, allocations: 29.72 kB / 1.331 GB, free: 12.01 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001489/0.3879, allocations: 330.8 kB / 1.331 GB, free: 11.68 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.234e-05/0.3879, allocations: 27.98 kB / 1.331 GB, free: 11.65 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001396/0.3881, allocations: 114.8 kB / 1.331 GB, free: 11.51 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001591/0.3882, allocations: 69.64 kB / 1.332 GB, free: 11.44 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3882, allocations: 0 / 1.332 GB, free: 11.44 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002508/0.3885, allocations: 129.5 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.3885, allocations: 4 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.313e-06/0.3885, allocations: 4.062 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.3885, allocations: 0 / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/0.3886, allocations: 12 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.3886, allocations: 0 / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.372e-05/0.3887, allocations: 11.92 kB / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.409e-05/0.3887, allocations: 8 kB / 1.332 GB, free: 11.27 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.0001441/0.3889, allocations: 135.5 kB / 1.332 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.801e-05/0.3889, allocations: 19.86 kB / 1.332 GB, free: 11.11 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003131/0.3892, allocations: 139.3 kB / 1.332 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/0.3892, allocations: 4 kB / 1.332 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3892, allocations: 0 / 1.332 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.261e-06/0.3892, allocations: 3.938 kB / 1.332 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000214/0.3895, allocations: 184.6 kB / 1.332 GB, free: 10.73 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.3895, allocations: 0 / 1.332 GB, free: 10.73 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.318e-05/0.3895, allocations: 15.98 kB / 1.332 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.3895, allocations: 0 / 1.332 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.412e-05/0.3895, allocations: 3.984 kB / 1.332 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.3895, allocations: 4 kB / 1.332 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.3895, allocations: 7.875 kB / 1.332 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002997/0.3898, allocations: 148.9 kB / 1.332 GB, free: 10.54 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.235e-05/0.3899, allocations: 23.84 kB / 1.332 GB, free: 10.51 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.012e-05/0.3899, allocations: 4 kB / 1.332 GB, free: 10.51 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.867e-05/0.39, allocations: 4 kB / 1.332 GB, free: 10.5 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.987e-05/0.39, allocations: 11.92 kB / 1.332 GB, free: 10.49 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.538e-05/0.39, allocations: 4 kB / 1.332 GB, free: 10.49 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002144/0.3902, allocations: 208.6 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3902, allocations: 3.938 kB / 1.333 GB, free: 10.28 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002658/0.3905, allocations: 31.94 kB / 1.333 GB, free: 10.25 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.002214/0.3927, allocations: 1.039 MB / 1.334 GB, free: 9.371 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000239/0.393, allocations: 71.95 kB / 1.334 GB, free: 9.301 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.393, allocations: 0 / 1.334 GB, free: 9.301 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001059/0.3931, allocations: 35.92 kB / 1.334 GB, free: 9.266 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003279/0.3934, allocations: 45.14 kB / 1.334 GB, free: 9.227 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002597/0.396, allocations: 2.008 MB / 1.336 GB, free: 7.129 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000125/0.3961, allocations: 118.6 kB / 1.336 GB, free: 6.996 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.472e-05/0.3962, allocations: 21.72 kB / 1.336 GB, free: 6.973 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001039/0.3963, allocations: 51.42 kB / 1.336 GB, free: 6.922 MB / 1.029 GB Notification: Performance of SimCode: time 5.51e-07/0.3963, allocations: 0 / 1.336 GB, free: 6.922 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03453/0.4308, allocations: 5.489 MB / 1.341 GB, free: 1.5 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.73, allocations: 14.5 kB / 1.341 GB, free: 1.488 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.98950055381283]