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.00141/0.00141, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001964/0.001964, allocations: 212.2 kB / 23.04 MB, free: 5.074 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 / 256.8 MB, free: 7.98 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.282/3.282, allocations: 0.49 GB / 0.7959 GB, free: 33.34 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="cs",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.003284/0.003284, allocations: 67.3 kB / 1.155 GB, free: 25.65 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.421/0.4243, allocations: 176.1 MB / 1.327 GB, free: 1.965 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003848/0.4281, allocations: 1.811 MB / 1.328 GB, free: 148 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00266/0.4308, allocations: 1.286 MB / 1.33 GB, free: 14.85 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001383/0.4309, allocations: 3.938 kB / 1.33 GB, free: 14.85 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0004012/0.4313, allocations: 59.73 kB / 1.33 GB, free: 14.79 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0003923/0.4317, allocations: 123.5 kB / 1.33 GB, free: 14.67 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006278/0.4323, allocations: 195.4 kB / 1.33 GB, free: 14.48 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002655/0.4326, allocations: 163.6 kB / 1.33 GB, free: 14.32 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001177/0.4327, allocations: 13.91 kB / 1.33 GB, free: 14.3 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001233/0.4328, allocations: 71.7 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001302/0.433, allocations: 71.67 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.477e-05/0.433, allocations: 8 kB / 1.33 GB, free: 14.15 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001813/0.4332, allocations: 79.94 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 8.483e-05/0.4333, allocations: 47.83 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.658e-05/0.4333, allocations: 55.62 kB / 1.331 GB, free: 13.97 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003396/0.4337, allocations: 207.1 kB / 1.331 GB, free: 13.77 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.4337, allocations: 3.984 kB / 1.331 GB, free: 13.76 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.623e-06/0.4337, allocations: 4 kB / 1.331 GB, free: 13.76 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.627e-05/0.4337, allocations: 4 kB / 1.331 GB, free: 13.75 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.0007313/0.4344, allocations: 426.9 kB / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.4345, allocations: 8.031 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.285e-05/0.4345, allocations: 192 / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.12e-05/0.4345, allocations: 38.75 kB / 1.331 GB, free: 13.25 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.689e-05/0.4346, allocations: 16.84 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003826/0.435, allocations: 202.8 kB / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.553e-05/0.435, allocations: 8.125 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.762e-05/0.435, allocations: 7.938 kB / 1.331 GB, free: 12.99 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002581/0.4353, allocations: 104.1 kB / 1.332 GB, free: 12.88 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.4353, allocations: 0 / 1.332 GB, free: 12.88 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.4353, allocations: 0 / 1.332 GB, free: 12.88 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.809e-05/0.4353, allocations: 4 kB / 1.332 GB, free: 12.87 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001151/0.4354, allocations: 31.98 kB / 1.332 GB, free: 12.84 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005335/0.4359, allocations: 335.7 kB / 1.332 GB, free: 12.47 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002339/0.4362, allocations: 86.69 kB / 1.332 GB, free: 12.38 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.995e-05/0.4363, allocations: 28.84 kB / 1.332 GB, free: 12.34 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.047e-05/0.4363, allocations: 0 / 1.332 GB, free: 12.34 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000192/0.4365, allocations: 79.38 kB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.553e-06/0.4365, allocations: 0 / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0003929/0.4369, allocations: 145.5 kB / 1.332 GB, free: 12.11 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.198e-05/0.4369, allocations: 102.8 kB / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003237/0.4373, allocations: 287 kB / 1.333 GB, free: 11.69 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.245e-05/0.4373, allocations: 25.7 kB / 1.333 GB, free: 11.66 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.703e-05/0.4374, allocations: 116.1 kB / 1.333 GB, free: 11.54 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.829e-05/0.4374, allocations: 27.84 kB / 1.333 GB, free: 11.51 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.562e-05/0.4375, allocations: 29.66 kB / 1.333 GB, free: 11.48 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001564/0.4376, allocations: 330.8 kB / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.443e-05/0.4377, allocations: 23.98 kB / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001127/0.4378, allocations: 72.22 kB / 1.333 GB, free: 11.04 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001498/0.438, allocations: 73.98 kB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.438, allocations: 4 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002361/0.4382, allocations: 113.5 kB / 1.333 GB, free: 10.84 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.4382, allocations: 8 kB / 1.333 GB, free: 10.83 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.4382, allocations: 0 / 1.333 GB, free: 10.83 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.4382, allocations: 0 / 1.333 GB, free: 10.83 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001062/0.4384, allocations: 15.98 kB / 1.333 GB, free: 10.81 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.4384, allocations: 4.125 kB / 1.333 GB, free: 10.81 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.396e-05/0.4384, allocations: 11.94 kB / 1.333 GB, free: 10.8 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.4384, allocations: 11.97 kB / 1.333 GB, free: 10.79 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.0001419/0.4386, allocations: 139.3 kB / 1.334 GB, free: 10.64 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.491e-05/0.4386, allocations: 19.86 kB / 1.334 GB, free: 10.62 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003617/0.439, allocations: 135 kB / 1.334 GB, free: 10.48 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.457e-06/0.439, allocations: 0 / 1.334 GB, free: 10.48 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.874e-06/0.439, allocations: 3.938 kB / 1.334 GB, free: 10.48 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.439, allocations: 0 / 1.334 GB, free: 10.48 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002356/0.4392, allocations: 196.7 kB / 1.334 GB, free: 10.24 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.4392, allocations: 4 kB / 1.334 GB, free: 10.24 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.378e-05/0.4393, allocations: 4 kB / 1.334 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.4393, allocations: 0 / 1.334 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/0.4393, allocations: 4 kB / 1.334 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.4393, allocations: 0 / 1.334 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.4393, allocations: 3.938 kB / 1.334 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002632/0.4396, allocations: 144.9 kB / 1.334 GB, free: 10.07 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.671e-05/0.4396, allocations: 15.89 kB / 1.334 GB, free: 10.05 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.469e-05/0.4396, allocations: 12 kB / 1.334 GB, free: 10.04 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.587e-05/0.4397, allocations: 0 / 1.334 GB, free: 10.04 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.294e-05/0.4398, allocations: 15.92 kB / 1.334 GB, free: 10.02 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.386e-05/0.4398, allocations: 4 kB / 1.334 GB, free: 10.02 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002011/0.44, allocations: 200.6 kB / 1.334 GB, free: 9.824 MB / 1.029 GB Notification: Performance of sort global known variables: time 7.1e-08/0.44, allocations: 0 / 1.334 GB, free: 9.824 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002777/0.4402, allocations: 39.89 kB / 1.334 GB, free: 9.785 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 (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.002113/0.4424, allocations: 1.01 MB / 1.335 GB, free: 8.91 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002347/0.4426, allocations: 67.94 kB / 1.335 GB, free: 8.844 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.4426, allocations: 0 / 1.335 GB, free: 8.844 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001124/0.4427, allocations: 35.92 kB / 1.335 GB, free: 8.809 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003156/0.443, allocations: 41.86 kB / 1.335 GB, free: 8.773 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/0.4455, allocations: 1.985 MB / 1.337 GB, free: 6.695 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003566/0.4458, allocations: 0.7279 MB / 1.338 GB, free: 5.941 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.684e-05/0.4459, allocations: 25.08 kB / 1.338 GB, free: 5.918 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.958e-05/0.446, allocations: 43.42 kB / 1.338 GB, free: 5.875 MB / 1.029 GB Notification: Performance of SimCode: time 6.81e-07/0.446, allocations: 0 / 1.338 GB, free: 5.875 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02656/0.4726, allocations: 5.014 MB / 1.343 GB, free: 0.957 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.87, allocations: 15.72 kB / 1.343 GB, free: 0.9453 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] [Calling os._exit(0), Time elapsed: 18.982445833971724] Failed to read output from testmodel.py, exit status != 0: 12.098636013048235 12.114275858 11.67719233 Calling exit ...