Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 107 kB / 15.98 MB, free: 6.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001286/0.001287, allocations: 191.4 kB / 16.91 MB, free: 6.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.454/1.454, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.765/0.765, allocations: 115.3 MB / 406.1 MB, free: 6.406 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00181/0.00181, allocations: 67.89 kB / 493.2 MB, free: 0.6211 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5021/0.5039, allocations: 76.16 MB / 0.556 GB, free: 35.73 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.IntegerReplicator): time 0.00282/0.5068, allocations: 1.826 MB / 0.5578 GB, free: 34.48 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001408/0.5082, allocations: 1.088 MB / 0.5589 GB, free: 33.73 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.522e-05/0.5083, allocations: 3.094 kB / 0.5589 GB, free: 33.73 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000253/0.5086, allocations: 51.62 kB / 0.5589 GB, free: 33.71 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001771/0.5088, allocations: 64.53 kB / 0.559 GB, free: 33.68 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000492/0.5093, allocations: 206.9 kB / 0.5592 GB, free: 33.59 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001683/0.5095, allocations: 148.8 kB / 0.5593 GB, free: 33.52 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.88e-05/0.5096, allocations: 22.14 kB / 0.5593 GB, free: 33.51 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.916e-05/0.5097, allocations: 69.88 kB / 0.5594 GB, free: 33.48 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.55e-05/0.5098, allocations: 66.31 kB / 0.5595 GB, free: 33.45 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.983e-05/0.5098, allocations: 6.5 kB / 0.5595 GB, free: 33.45 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001541/0.5099, allocations: 68.72 kB / 0.5595 GB, free: 33.43 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.941e-05/0.51, allocations: 42.58 kB / 0.5596 GB, free: 33.41 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 6.33e-05/0.5101, allocations: 55.12 kB / 0.5596 GB, free: 33.38 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002522/0.5104, allocations: 205.4 kB / 0.5598 GB, free: 33.29 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.5104, allocations: 2.719 kB / 0.5598 GB, free: 33.29 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.5104, allocations: 0 / 0.5598 GB, free: 33.29 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.427e-05/0.5104, allocations: 0 / 0.5598 GB, free: 33.29 MB / 446.1 MB 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.0005146/0.5109, allocations: 485.8 kB / 0.5603 GB, free: 32.83 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.511, allocations: 10.12 kB / 0.5603 GB, free: 32.83 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.917e-05/0.511, allocations: 34.09 kB / 0.5603 GB, free: 32.79 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.179e-05/0.511, allocations: 21.53 kB / 0.5604 GB, free: 32.78 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002328/0.5113, allocations: 246.2 kB / 0.5606 GB, free: 32.55 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.575e-05/0.5113, allocations: 7 kB / 0.5606 GB, free: 32.54 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.546e-05/0.5113, allocations: 8.391 kB / 0.5606 GB, free: 32.54 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001948/0.5115, allocations: 95.61 kB / 0.5607 GB, free: 32.47 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.323e-06/0.5115, allocations: 0 / 0.5607 GB, free: 32.47 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.43e-05/0.5116, allocations: 5.938 kB / 0.5607 GB, free: 32.46 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.664e-05/0.5116, allocations: 5.125 kB / 0.5607 GB, free: 32.46 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001017/0.5117, allocations: 40.14 kB / 0.5607 GB, free: 32.45 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004297/0.5121, allocations: 358.4 kB / 0.5611 GB, free: 32.13 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002138/0.5124, allocations: 90.47 kB / 0.5612 GB, free: 32.09 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.352e-05/0.5124, allocations: 30.28 kB / 0.5612 GB, free: 32.07 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.005e-05/0.5125, allocations: 4.078 kB / 0.5612 GB, free: 32.07 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002355/0.5127, allocations: 83.11 kB / 0.5613 GB, free: 32.01 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.533e-06/0.5127, allocations: 1.625 kB / 0.5613 GB, free: 32.01 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003379/0.5131, allocations: 140.3 kB / 0.5614 GB, free: 31.94 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.693e-05/0.5131, allocations: 108.5 kB / 0.5615 GB, free: 31.81 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002367/0.5134, allocations: 264.8 kB / 0.5618 GB, free: 31.66 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.455e-05/0.5134, allocations: 33.33 kB / 0.5618 GB, free: 31.63 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.144e-05/0.5134, allocations: 114.8 kB / 0.5619 GB, free: 31.53 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.341e-05/0.5135, allocations: 24.88 kB / 0.5619 GB, free: 31.51 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.294e-05/0.5135, allocations: 25.97 kB / 0.562 GB, free: 31.49 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.375e-05/0.5136, allocations: 329 kB / 0.5623 GB, free: 31.17 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.794e-05/0.5136, allocations: 28.92 kB / 0.5623 GB, free: 31.16 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.69e-05/0.5137, allocations: 69.77 kB / 0.5624 GB, free: 31.11 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001277/0.5139, allocations: 67.89 kB / 0.5624 GB, free: 31.07 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.5139, allocations: 1.156 kB / 0.5624 GB, free: 31.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001975/0.5141, allocations: 121.6 kB / 0.5626 GB, free: 31 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.5141, allocations: 6.5 kB / 0.5626 GB, free: 31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.5141, allocations: 0 / 0.5626 GB, free: 31 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.007e-05/0.5141, allocations: 2.469 kB / 0.5626 GB, free: 31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.657e-05/0.5142, allocations: 12.98 kB / 0.5626 GB, free: 31 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.108e-06/0.5142, allocations: 1.125 kB / 0.5626 GB, free: 31 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.308e-05/0.5143, allocations: 10.48 kB / 0.5626 GB, free: 31 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.568e-06/0.5143, allocations: 6.781 kB / 0.5626 GB, free: 30.99 MB / 446.1 MB 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 9.497e-05/0.5144, allocations: 143.5 kB / 0.5627 GB, free: 30.87 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.729e-05/0.5145, allocations: 16.27 kB / 0.5627 GB, free: 30.86 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.17e-05/0.5145, allocations: 20.31 kB / 0.5628 GB, free: 30.85 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.528e-06/0.5145, allocations: 2.062 kB / 0.5628 GB, free: 30.85 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.5145, allocations: 8.031 kB / 0.5628 GB, free: 30.85 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.5145, allocations: 3.938 kB / 0.5628 GB, free: 30.84 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001467/0.5147, allocations: 223.3 kB / 0.563 GB, free: 30.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.5147, allocations: 0 / 0.563 GB, free: 30.63 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.907e-05/0.5147, allocations: 5.922 kB / 0.563 GB, free: 30.63 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.5148, allocations: 3.438 kB / 0.563 GB, free: 30.63 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.04e-05/0.5148, allocations: 5.5 kB / 0.563 GB, free: 30.62 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.5148, allocations: 0 / 0.563 GB, free: 30.62 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.5148, allocations: 2.406 kB / 0.563 GB, free: 30.62 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002139/0.515, allocations: 155.9 kB / 0.5632 GB, free: 30.52 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.622e-05/0.515, allocations: 94.47 kB / 0.5632 GB, free: 30.41 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.76e-05/0.5151, allocations: 4.703 kB / 0.5632 GB, free: 30.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.432e-05/0.5151, allocations: 7.75 kB / 0.5633 GB, free: 30.41 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.254e-05/0.5152, allocations: 11.27 kB / 0.5633 GB, free: 30.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.257e-05/0.5152, allocations: 4.391 kB / 0.5633 GB, free: 30.41 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001586/0.5154, allocations: 197.3 kB / 0.5635 GB, free: 30.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5154, allocations: 0 / 0.5635 GB, free: 30.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002497/0.5156, allocations: 35.44 kB / 0.5635 GB, free: 30.29 MB / 446.1 MB 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.001272/0.5169, allocations: 0.9909 MB / 0.5645 GB, free: 29.61 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002206/0.5171, allocations: 74.95 kB / 0.5645 GB, free: 29.59 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.5172, allocations: 1.438 kB / 0.5645 GB, free: 29.59 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 8.689e-05/0.5172, allocations: 38.77 kB / 0.5646 GB, free: 29.58 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002812/0.5175, allocations: 46.06 kB / 0.5646 GB, free: 29.56 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001824/0.5194, allocations: 1.958 MB / 0.5665 GB, free: 28.15 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001383/0.5195, allocations: 0.7253 MB / 0.5672 GB, free: 27.45 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.128e-05/0.5196, allocations: 26.3 kB / 0.5673 GB, free: 27.44 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.342e-05/0.5197, allocations: 46.91 kB / 0.5673 GB, free: 27.41 MB / 446.1 MB Notification: Performance of SimCode: time 2.81e-07/0.5197, allocations: 0 / 0.5673 GB, free: 27.41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0281/0.5478, allocations: 4.488 MB / 0.5717 GB, free: 26.84 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002627/0.5481, allocations: 243.4 kB / 0.5719 GB, free: 26.58 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.993/2.541, allocations: 0 / 0.5719 GB, free: 26.58 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)