Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001284/0.001284, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001508/0.001508, allocations: 217 kB / 22.25 MB, free: 5.082 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.535/1.535, allocations: 230.6 MB / 256 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 3.011/3.011, allocations: 476.8 MB / 0.7707 GB, free: 4.281 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_11_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.002196/0.002196, allocations: 65.78 kB / 1.117 GB, free: 39.88 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3385/0.3407, allocations: 170 MB / 1.283 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003709/0.3444, allocations: 1.82 MB / 1.285 GB, free: 9.723 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002276/0.3467, allocations: 1.284 MB / 1.286 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.776e-05/0.3468, allocations: 0 / 1.286 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.000318/0.3471, allocations: 59.67 kB / 1.286 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0003816/0.3475, allocations: 123.5 kB / 1.287 GB, free: 8.254 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006341/0.3481, allocations: 203.1 kB / 1.287 GB, free: 8.059 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002679/0.3484, allocations: 155.5 kB / 1.287 GB, free: 7.906 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.3485, allocations: 17.62 kB / 1.287 GB, free: 7.887 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001376/0.3487, allocations: 67.7 kB / 1.287 GB, free: 7.82 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000137/0.3488, allocations: 71.73 kB / 1.287 GB, free: 7.75 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.788e-05/0.3488, allocations: 8 kB / 1.287 GB, free: 7.742 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002079/0.349, allocations: 87.86 kB / 1.287 GB, free: 7.656 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.398e-05/0.3491, allocations: 47.83 kB / 1.287 GB, free: 7.609 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.328e-05/0.3492, allocations: 55.62 kB / 1.287 GB, free: 7.555 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003433/0.3495, allocations: 202.8 kB / 1.287 GB, free: 7.359 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.3495, allocations: 7.938 kB / 1.287 GB, free: 7.352 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.433e-06/0.3495, allocations: 0 / 1.287 GB, free: 7.352 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.748e-06/0.3496, allocations: 0 / 1.287 GB, free: 7.352 MB / 0.9825 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.00069/0.3502, allocations: 434.8 kB / 1.288 GB, free: 6.891 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.3503, allocations: 8.031 kB / 1.288 GB, free: 6.883 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.824e-05/0.3503, allocations: 34.69 kB / 1.288 GB, free: 6.84 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.461e-05/0.3504, allocations: 16.84 kB / 1.288 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003831/0.3508, allocations: 206.1 kB / 1.288 GB, free: 6.598 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.177e-05/0.3508, allocations: 8.375 kB / 1.288 GB, free: 6.59 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.912e-05/0.3509, allocations: 7.938 kB / 1.288 GB, free: 6.582 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002164/0.3511, allocations: 96.16 kB / 1.288 GB, free: 6.473 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.3511, allocations: 0 / 1.288 GB, free: 6.473 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.3511, allocations: 4 kB / 1.288 GB, free: 6.469 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.782e-05/0.3511, allocations: 4 kB / 1.288 GB, free: 6.465 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001074/0.3512, allocations: 35.92 kB / 1.288 GB, free: 6.43 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000567/0.3518, allocations: 335.7 kB / 1.289 GB, free: 6.059 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002398/0.352, allocations: 82.75 kB / 1.289 GB, free: 5.969 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.691e-05/0.3521, allocations: 32.78 kB / 1.289 GB, free: 5.934 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.301e-05/0.3521, allocations: 8 kB / 1.289 GB, free: 5.926 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001984/0.3523, allocations: 79.38 kB / 1.289 GB, free: 5.836 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.603e-06/0.3523, allocations: 0 / 1.289 GB, free: 5.836 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.0003975/0.3527, allocations: 141.8 kB / 1.289 GB, free: 5.691 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.108e-05/0.3528, allocations: 106.8 kB / 1.289 GB, free: 5.562 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003178/0.3531, allocations: 275.1 kB / 1.289 GB, free: 5.281 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.472e-05/0.3531, allocations: 29.7 kB / 1.289 GB, free: 5.246 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/0.3533, allocations: 132 kB / 1.289 GB, free: 5.113 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.781e-05/0.3533, allocations: 15.89 kB / 1.289 GB, free: 5.098 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.76e-05/0.3534, allocations: 25.72 kB / 1.289 GB, free: 5.066 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002393/0.3536, allocations: 330.8 kB / 1.29 GB, free: 4.734 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.828e-05/0.3537, allocations: 27.98 kB / 1.29 GB, free: 4.707 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001129/0.3538, allocations: 64.28 kB / 1.29 GB, free: 4.629 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001593/0.354, allocations: 77.62 kB / 1.29 GB, free: 4.547 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.354, allocations: 0 / 1.29 GB, free: 4.547 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000248/0.3542, allocations: 113.5 kB / 1.29 GB, free: 4.43 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.3542, allocations: 4.188 kB / 1.29 GB, free: 4.426 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.3542, allocations: 0 / 1.29 GB, free: 4.426 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.3542, allocations: 7.938 kB / 1.29 GB, free: 4.418 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.87e-05/0.3543, allocations: 19.92 kB / 1.29 GB, free: 4.398 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.3544, allocations: 8.031 kB / 1.29 GB, free: 4.391 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.832e-05/0.3544, allocations: 7.875 kB / 1.29 GB, free: 4.383 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.149e-05/0.3544, allocations: 4 kB / 1.29 GB, free: 4.379 MB / 0.9825 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.0001597/0.3546, allocations: 145.8 kB / 1.29 GB, free: 4.227 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.148e-05/0.3546, allocations: 15.91 kB / 1.29 GB, free: 4.211 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002933/0.3549, allocations: 126.9 kB / 1.29 GB, free: 4.078 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.3549, allocations: 4 kB / 1.29 GB, free: 4.074 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3549, allocations: 0 / 1.29 GB, free: 4.074 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.3549, allocations: 7.938 kB / 1.29 GB, free: 4.066 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000235/0.3552, allocations: 196.6 kB / 1.291 GB, free: 3.832 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.3552, allocations: 4 kB / 1.291 GB, free: 3.828 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.069e-05/0.3552, allocations: 4 kB / 1.291 GB, free: 3.824 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.3552, allocations: 0 / 1.291 GB, free: 3.824 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.358e-06/0.3552, allocations: 0 / 1.291 GB, free: 3.824 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.3552, allocations: 0 / 1.291 GB, free: 3.824 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3552, allocations: 0 / 1.291 GB, free: 3.824 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002856/0.3555, allocations: 148.9 kB / 1.291 GB, free: 3.66 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.569e-05/0.3556, allocations: 19.89 kB / 1.291 GB, free: 3.641 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.008e-05/0.3556, allocations: 3.984 kB / 1.291 GB, free: 3.637 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.577e-05/0.3557, allocations: 4 kB / 1.291 GB, free: 3.633 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.519e-05/0.3557, allocations: 23.8 kB / 1.291 GB, free: 3.609 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.113e-05/0.3557, allocations: 0 / 1.291 GB, free: 3.609 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002334/0.356, allocations: 204.6 kB / 1.291 GB, free: 3.41 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.356, allocations: 0 / 1.291 GB, free: 3.41 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002699/0.3562, allocations: 31.94 kB / 1.291 GB, free: 3.379 MB / 0.9825 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 (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.002199/0.3584, allocations: 1.001 MB / 1.292 GB, free: 2.512 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002528/0.3587, allocations: 71.89 kB / 1.292 GB, free: 2.441 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3587, allocations: 0 / 1.292 GB, free: 2.441 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.633e-05/0.3588, allocations: 36.03 kB / 1.292 GB, free: 2.406 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003284/0.3591, allocations: 53.14 kB / 1.292 GB, free: 2.363 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002602/0.3617, allocations: 1.979 MB / 1.294 GB, free: 296 kB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004814/0.3622, allocations: 0.7241 MB / 1.295 GB, free: 15.54 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001096/0.3623, allocations: 29.38 kB / 1.295 GB, free: 15.51 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.3624, allocations: 51.42 kB / 1.295 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of SimCode: time 6.62e-07/0.3624, allocations: 0 / 1.295 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03532/0.3977, allocations: 4.964 MB / 1.3 GB, free: 10.57 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.62, allocations: 17.17 kB / 1.3 GB, free: 10.56 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.708803394809365]