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.001318/0.001318, allocations: 108.2 kB / 16.45 MB, free: 6.5 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.001443/0.001443, allocations: 210.4 kB / 19.43 MB, free: 3.656 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.486/1.486, allocations: 230.6 MB / 252.8 MB, free: 8.969 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.364/3.364, allocations: 0.49 GB / 0.7916 GB, free: 33.36 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.002048/0.002048, allocations: 68.06 kB / 1.149 GB, free: 26.36 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3471/0.3492, allocations: 176.1 MB / 1.321 GB, free: 3.34 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003385/0.3525, allocations: 1.8 MB / 1.323 GB, free: 1.527 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002134/0.3547, allocations: 1.27 MB / 1.324 GB, free: 256 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.347e-05/0.3548, allocations: 3.938 kB / 1.324 GB, free: 252 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0003037/0.3551, allocations: 63.73 kB / 1.324 GB, free: 188 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0003328/0.3554, allocations: 115.5 kB / 1.324 GB, free: 72 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000566/0.356, allocations: 198.6 kB / 1.324 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002382/0.3562, allocations: 151.6 kB / 1.324 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.3563, allocations: 17.44 kB / 1.324 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001218/0.3564, allocations: 79.69 kB / 1.324 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001225/0.3566, allocations: 71.67 kB / 1.324 GB, free: 15.56 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.059e-05/0.3566, allocations: 8 kB / 1.324 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001698/0.3567, allocations: 79.94 kB / 1.325 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 7.97e-05/0.3568, allocations: 35.84 kB / 1.325 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.917e-05/0.3569, allocations: 59.56 kB / 1.325 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003253/0.3572, allocations: 211.5 kB / 1.325 GB, free: 15.18 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3572, allocations: 0 / 1.325 GB, free: 15.18 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.242e-06/0.3572, allocations: 0 / 1.325 GB, free: 15.18 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.162e-06/0.3572, allocations: 0 / 1.325 GB, free: 15.18 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.0007256/0.358, allocations: 0.5 MB / 1.325 GB, free: 14.62 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.358, allocations: 15.98 kB / 1.325 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.974e-05/0.358, allocations: 34.69 kB / 1.325 GB, free: 14.56 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.382e-05/0.3581, allocations: 20.84 kB / 1.325 GB, free: 14.54 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003419/0.3584, allocations: 259.9 kB / 1.326 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.554e-05/0.3585, allocations: 4.375 kB / 1.326 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.594e-05/0.3585, allocations: 7.938 kB / 1.326 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002213/0.3587, allocations: 100.2 kB / 1.326 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.612e-06/0.3587, allocations: 4 kB / 1.326 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.3587, allocations: 0 / 1.326 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.692e-05/0.3587, allocations: 0 / 1.326 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001169/0.3588, allocations: 31.98 kB / 1.326 GB, free: 14.09 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005537/0.3594, allocations: 356.8 kB / 1.326 GB, free: 13.69 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002391/0.3596, allocations: 90.59 kB / 1.326 GB, free: 13.59 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.725e-05/0.3597, allocations: 28.84 kB / 1.326 GB, free: 13.56 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.635e-05/0.3597, allocations: 0 / 1.326 GB, free: 13.56 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001823/0.3599, allocations: 87.36 kB / 1.326 GB, free: 13.46 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.313e-06/0.3599, allocations: 0 / 1.326 GB, free: 13.46 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0003839/0.3603, allocations: 137.5 kB / 1.326 GB, free: 13.32 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.957e-05/0.3604, allocations: 114.8 kB / 1.327 GB, free: 13.19 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002961/0.3607, allocations: 275 kB / 1.327 GB, free: 12.91 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.327e-05/0.3607, allocations: 29.7 kB / 1.327 GB, free: 12.88 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.77e-05/0.3608, allocations: 120.1 kB / 1.327 GB, free: 12.75 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.371e-05/0.3608, allocations: 27.78 kB / 1.327 GB, free: 12.73 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.382e-05/0.3609, allocations: 29.69 kB / 1.327 GB, free: 12.69 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000147/0.361, allocations: 326.8 kB / 1.327 GB, free: 12.36 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.889e-05/0.3611, allocations: 35.92 kB / 1.327 GB, free: 12.33 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001118/0.3612, allocations: 72.2 kB / 1.327 GB, free: 12.24 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001544/0.3614, allocations: 70 kB / 1.328 GB, free: 12.17 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3614, allocations: 0 / 1.328 GB, free: 12.17 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002372/0.3616, allocations: 113.5 kB / 1.328 GB, free: 12.05 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.3616, allocations: 8.219 kB / 1.328 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.3616, allocations: 0 / 1.328 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.096e-05/0.3616, allocations: 3.938 kB / 1.328 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.723e-05/0.3617, allocations: 15.98 kB / 1.328 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.3617, allocations: 0 / 1.328 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.654e-05/0.3618, allocations: 7.938 kB / 1.328 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.073e-05/0.3618, allocations: 4 kB / 1.328 GB, free: 12.01 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.0001382/0.362, allocations: 144.9 kB / 1.328 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.495e-05/0.362, allocations: 23.84 kB / 1.328 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.094e-05/0.362, allocations: 25.41 kB / 1.328 GB, free: 11.81 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/0.3621, allocations: 4 kB / 1.328 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3621, allocations: 0 / 1.328 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.3621, allocations: 7.922 kB / 1.328 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002245/0.3623, allocations: 225.5 kB / 1.328 GB, free: 11.53 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3623, allocations: 4 kB / 1.328 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.191e-05/0.3623, allocations: 4 kB / 1.328 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.644e-06/0.3623, allocations: 0 / 1.328 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.515e-05/0.3623, allocations: 7.984 kB / 1.328 GB, free: 11.51 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.3624, allocations: 0 / 1.328 GB, free: 11.51 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.3624, allocations: 8 kB / 1.328 GB, free: 11.5 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002633/0.3626, allocations: 133 kB / 1.328 GB, free: 11.36 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.926e-05/0.3627, allocations: 97 kB / 1.328 GB, free: 11.24 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.575e-05/0.3627, allocations: 0 / 1.328 GB, free: 11.24 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.205e-05/0.3628, allocations: 8 kB / 1.328 GB, free: 11.23 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.395e-05/0.3628, allocations: 15.86 kB / 1.328 GB, free: 11.22 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.043e-05/0.3628, allocations: 0 / 1.328 GB, free: 11.22 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002175/0.3631, allocations: 208.6 kB / 1.329 GB, free: 11.02 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3631, allocations: 0 / 1.329 GB, free: 11.02 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002707/0.3633, allocations: 43.88 kB / 1.329 GB, free: 10.97 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.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.002119/0.3654, allocations: 0.9925 MB / 1.33 GB, free: 10.11 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002441/0.3657, allocations: 67.91 kB / 1.33 GB, free: 10.05 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3657, allocations: 0 / 1.33 GB, free: 10.05 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.916e-05/0.3658, allocations: 35.97 kB / 1.33 GB, free: 10.01 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003127/0.3661, allocations: 43.8 kB / 1.33 GB, free: 9.973 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002492/0.3686, allocations: 1.984 MB / 1.332 GB, free: 7.887 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003461/0.3689, allocations: 0.728 MB / 1.332 GB, free: 7.133 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.768e-05/0.369, allocations: 21.08 kB / 1.332 GB, free: 7.113 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.56e-05/0.3691, allocations: 55.36 kB / 1.332 GB, free: 7.059 MB / 1.029 GB Notification: Performance of SimCode: time 4.91e-07/0.3691, allocations: 0 / 1.332 GB, free: 7.059 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02896/0.3981, allocations: 4.822 MB / 1.337 GB, free: 2.312 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.238/8.636, allocations: 10.5 kB / 1.337 GB, free: 2.305 MB / 1.029 GB " [Timeout remaining time 291] (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: 15.552924955962226]