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.001874/0.001874, allocations: 114.8 kB / 17.17 MB, free: 5.887 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.002576/0.002576, allocations: 206.2 kB / 20.13 MB, free: 2.941 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.602/1.602, allocations: 230.6 MB / 253.5 MB, free: 15.09 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 2.955/2.955, allocations: 476.7 MB / 0.7678 GB, free: 9.332 MB / 0.6075 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_11_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.002054/0.002054, allocations: 71.89 kB / 1.113 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.144/1.146, allocations: 169.9 MB / 1.279 GB, free: 11.73 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.004234/1.15, allocations: 1.806 MB / 1.281 GB, free: 10.46 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002606/1.153, allocations: 1.261 MB / 1.282 GB, free: 9.609 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000154/1.153, allocations: 5.75 kB / 1.282 GB, free: 9.605 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003996/1.153, allocations: 58.12 kB / 1.282 GB, free: 9.582 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0005237/1.154, allocations: 123.5 kB / 1.282 GB, free: 9.52 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009013/1.155, allocations: 193.4 kB / 1.282 GB, free: 9.418 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0004106/1.155, allocations: 158.6 kB / 1.282 GB, free: 9.344 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001554/1.155, allocations: 14.62 kB / 1.282 GB, free: 9.336 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002749/1.156, allocations: 74.56 kB / 1.283 GB, free: 9.301 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002664/1.156, allocations: 76.45 kB / 1.283 GB, free: 9.27 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.811e-05/1.156, allocations: 7.406 kB / 1.283 GB, free: 9.27 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003436/1.156, allocations: 70.12 kB / 1.283 GB, free: 9.254 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001515/1.156, allocations: 42.81 kB / 1.283 GB, free: 9.234 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001337/1.157, allocations: 58.5 kB / 1.283 GB, free: 9.191 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0007013/1.157, allocations: 215.6 kB / 1.283 GB, free: 9.102 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.754e-06/1.157, allocations: 0.9375 kB / 1.283 GB, free: 9.102 MB / 0.9981 GB Notification: Performance of FrontEnd: time 3.556e-06/1.157, allocations: 0 / 1.283 GB, free: 9.102 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.277e-05/1.157, allocations: 0 / 1.283 GB, free: 9.102 MB / 0.9981 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.001321/1.159, allocations: 0.4958 MB / 1.283 GB, free: 8.621 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 6.236e-05/1.159, allocations: 14.77 kB / 1.283 GB, free: 8.617 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.27e-05/1.159, allocations: 1.5 kB / 1.283 GB, free: 8.617 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.578e-05/1.159, allocations: 41.55 kB / 1.284 GB, free: 8.57 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001045/1.159, allocations: 16.78 kB / 1.284 GB, free: 8.562 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006879/1.16, allocations: 271.9 kB / 1.284 GB, free: 8.309 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.151e-05/1.16, allocations: 5.562 kB / 1.284 GB, free: 8.305 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.644e-05/1.16, allocations: 4.828 kB / 1.284 GB, free: 8.305 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003317/1.16, allocations: 100.5 kB / 1.284 GB, free: 8.227 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/1.16, allocations: 0 / 1.284 GB, free: 8.227 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.209e-05/1.16, allocations: 1.891 kB / 1.284 GB, free: 8.227 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.791e-05/1.16, allocations: 1.406 kB / 1.284 GB, free: 8.227 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001602/1.16, allocations: 31.86 kB / 1.284 GB, free: 8.219 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009133/1.161, allocations: 357.1 kB / 1.284 GB, free: 7.906 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003155/1.161, allocations: 89.3 kB / 1.284 GB, free: 7.855 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.543e-05/1.161, allocations: 30.08 kB / 1.284 GB, free: 7.84 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.262e-05/1.161, allocations: 1.031 kB / 1.284 GB, free: 7.84 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002483/1.162, allocations: 79.89 kB / 1.284 GB, free: 7.781 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=8): time 1.703e-06/1.162, allocations: 4 kB / 1.284 GB, free: 7.777 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8): time 0.0005228/1.162, allocations: 146.8 kB / 1.285 GB, free: 7.703 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.778e-05/1.162, allocations: 104.7 kB / 1.285 GB, free: 7.578 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004444/1.163, allocations: 269.7 kB / 1.285 GB, free: 7.434 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.044e-05/1.163, allocations: 31.02 kB / 1.285 GB, free: 7.398 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/1.163, allocations: 120.9 kB / 1.285 GB, free: 7.289 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.845e-05/1.163, allocations: 21.56 kB / 1.285 GB, free: 7.273 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.856e-05/1.163, allocations: 26.3 kB / 1.285 GB, free: 7.254 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000212/1.163, allocations: 332 kB / 1.285 GB, free: 6.93 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.337e-05/1.163, allocations: 27.33 kB / 1.286 GB, free: 6.922 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001407/1.164, allocations: 74.8 kB / 1.286 GB, free: 6.863 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001824/1.164, allocations: 70.53 kB / 1.286 GB, free: 6.824 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/1.164, allocations: 5.375 kB / 1.286 GB, free: 6.82 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003149/1.164, allocations: 126.1 kB / 1.286 GB, free: 6.746 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/1.164, allocations: 5.438 kB / 1.286 GB, free: 6.746 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/1.164, allocations: 0 / 1.286 GB, free: 6.746 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.275e-05/1.164, allocations: 5.344 kB / 1.286 GB, free: 6.742 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001172/1.164, allocations: 13.59 kB / 1.286 GB, free: 6.742 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.188e-05/1.164, allocations: 3.938 kB / 1.286 GB, free: 6.738 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.556e-05/1.164, allocations: 5.219 kB / 1.286 GB, free: 6.738 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.313e-05/1.164, allocations: 3.578 kB / 1.286 GB, free: 6.738 MB / 0.9981 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.0002084/1.164, allocations: 147.2 kB / 1.286 GB, free: 6.609 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.862e-05/1.165, allocations: 20.5 kB / 1.286 GB, free: 6.598 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.151e-05/1.165, allocations: 23.81 kB / 1.286 GB, free: 6.574 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.168e-05/1.165, allocations: 1.219 kB / 1.286 GB, free: 6.574 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.376e-05/1.165, allocations: 6.156 kB / 1.286 GB, free: 6.57 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/1.165, allocations: 0 / 1.286 GB, free: 6.57 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003135/1.165, allocations: 221.3 kB / 1.286 GB, free: 6.359 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/1.165, allocations: 0.7031 kB / 1.286 GB, free: 6.359 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.641e-05/1.165, allocations: 4.953 kB / 1.286 GB, free: 6.359 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/1.165, allocations: 1.922 kB / 1.286 GB, free: 6.359 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.757e-05/1.165, allocations: 10.56 kB / 1.286 GB, free: 6.352 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/1.165, allocations: 0 / 1.286 GB, free: 6.352 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.253e-06/1.165, allocations: 4.594 kB / 1.286 GB, free: 6.348 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003408/1.165, allocations: 138.8 kB / 1.286 GB, free: 6.254 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.894e-05/1.165, allocations: 96.58 kB / 1.286 GB, free: 6.148 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.568e-05/1.166, allocations: 5.984 kB / 1.286 GB, free: 6.145 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.801e-05/1.166, allocations: 4.375 kB / 1.286 GB, free: 6.145 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.972e-05/1.166, allocations: 14.36 kB / 1.286 GB, free: 6.137 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.128e-05/1.166, allocations: 12.11 kB / 1.286 GB, free: 6.129 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0003034/1.166, allocations: 204.1 kB / 1.287 GB, free: 6.016 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8e-08/1.166, allocations: 1.125 kB / 1.287 GB, free: 6.016 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003384/1.166, allocations: 31.34 kB / 1.287 GB, free: 6.012 MB / 0.9981 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.00243/1.169, allocations: 1.008 MB / 1.288 GB, free: 5.273 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.000285/1.169, allocations: 70.94 kB / 1.288 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/1.169, allocations: 0 / 1.288 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001114/1.169, allocations: 32.72 kB / 1.288 GB, free: 5.242 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000353/1.169, allocations: 37.92 kB / 1.288 GB, free: 5.23 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003175/1.173, allocations: 1.99 MB / 1.29 GB, free: 3.82 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004407/1.173, allocations: 0.7276 MB / 1.29 GB, free: 3.117 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001076/1.173, allocations: 24.25 kB / 1.291 GB, free: 3.113 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/1.173, allocations: 47.62 kB / 1.291 GB, free: 3.082 MB / 0.9981 GB Notification: Performance of SimCode: time 6.11e-07/1.173, allocations: 4 kB / 1.291 GB, free: 3.078 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02826/1.202, allocations: 4.868 MB / 1.295 GB, free: 2.184 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.903/10.1, allocations: 10.94 kB / 1.295 GB, free: 2.176 MB / 0.9981 GB " [Timeout remaining time 290] (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] [Calling os._exit(0), Time elapsed: 16.735666091029998] Failed to read output from testmodel.py, exit status != 0: 10.286355932010338 10.302710095 9.142214653 Calling exit ...