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.00114/0.00114, allocations: 105 kB / 16.27 MB, free: 6.41 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.001179/0.001179, allocations: 184.6 kB / 17.19 MB, free: 5.953 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.299/1.299, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.72/0.72, allocations: 122.9 MB / 413.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 59.91 kB / 0.4912 GB, free: 7.336 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3486/0.35, allocations: 77.92 MB / 0.5673 GB, free: 32.71 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.IntegerReplicator): time 0.00284/0.3528, allocations: 1.752 MB / 0.569 GB, free: 31.49 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001436/0.3543, allocations: 1.1 MB / 0.5701 GB, free: 30.74 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.406e-05/0.3544, allocations: 6.062 kB / 0.5701 GB, free: 30.73 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000281/0.3547, allocations: 57.55 kB / 0.5701 GB, free: 30.71 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000226/0.3549, allocations: 75.53 kB / 0.5702 GB, free: 30.68 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005462/0.3555, allocations: 233.1 kB / 0.5704 GB, free: 30.56 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001832/0.3557, allocations: 149.2 kB / 0.5706 GB, free: 30.49 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.3558, allocations: 24.28 kB / 0.5706 GB, free: 30.48 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.655e-05/0.3559, allocations: 66.69 kB / 0.5706 GB, free: 30.45 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.996e-05/0.356, allocations: 62.91 kB / 0.5707 GB, free: 30.43 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.189e-05/0.356, allocations: 6.781 kB / 0.5707 GB, free: 30.43 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00014/0.3562, allocations: 68.02 kB / 0.5708 GB, free: 30.41 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.797e-05/0.3562, allocations: 43.23 kB / 0.5708 GB, free: 30.39 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 5.942e-05/0.3563, allocations: 54.83 kB / 0.5709 GB, free: 30.35 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002559/0.3566, allocations: 208.2 kB / 0.5711 GB, free: 30.26 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3566, allocations: 0.75 kB / 0.5711 GB, free: 30.26 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.3566, allocations: 0 / 0.5711 GB, free: 30.26 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.3566, allocations: 1.031 kB / 0.5711 GB, free: 30.26 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.0005129/0.3571, allocations: 487.6 kB / 0.5715 GB, free: 29.8 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.3572, allocations: 10.41 kB / 0.5715 GB, free: 29.8 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.022e-05/0.3572, allocations: 38.83 kB / 0.5716 GB, free: 29.75 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.755e-05/0.3573, allocations: 16.28 kB / 0.5716 GB, free: 29.75 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002407/0.3575, allocations: 255 kB / 0.5718 GB, free: 29.51 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.534e-05/0.3575, allocations: 2.5 kB / 0.5718 GB, free: 29.51 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.794e-05/0.3575, allocations: 16.5 kB / 0.5719 GB, free: 29.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001915/0.3577, allocations: 90.11 kB / 0.5719 GB, free: 29.43 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.3578, allocations: 0 / 0.5719 GB, free: 29.43 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.3578, allocations: 2.516 kB / 0.572 GB, free: 29.43 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.715e-05/0.3578, allocations: 2.734 kB / 0.572 GB, free: 29.43 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000103/0.3579, allocations: 40.14 kB / 0.572 GB, free: 29.41 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004333/0.3584, allocations: 360.7 kB / 0.5723 GB, free: 29.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002141/0.3586, allocations: 89.08 kB / 0.5724 GB, free: 29.05 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.282e-05/0.3587, allocations: 33.62 kB / 0.5725 GB, free: 29.04 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/0.3587, allocations: 1.531 kB / 0.5725 GB, free: 29.04 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002084/0.3589, allocations: 86 kB / 0.5725 GB, free: 28.97 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.573e-06/0.3589, allocations: 0.5938 kB / 0.5725 GB, free: 28.97 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003207/0.3592, allocations: 140.9 kB / 0.5727 GB, free: 28.91 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.184e-05/0.3593, allocations: 108.2 kB / 0.5728 GB, free: 28.78 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002336/0.3595, allocations: 268 kB / 0.573 GB, free: 28.62 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.517e-05/0.3595, allocations: 35.03 kB / 0.5731 GB, free: 28.59 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.471e-05/0.3596, allocations: 118.2 kB / 0.5732 GB, free: 28.48 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.217e-05/0.3596, allocations: 19.77 kB / 0.5732 GB, free: 28.46 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.315e-05/0.3597, allocations: 26.67 kB / 0.5732 GB, free: 28.45 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.706e-05/0.3598, allocations: 330.1 kB / 0.5735 GB, free: 28.12 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.071e-05/0.3598, allocations: 26.12 kB / 0.5736 GB, free: 28.12 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.689e-05/0.3599, allocations: 70.2 kB / 0.5736 GB, free: 28.07 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001296/0.3601, allocations: 71 kB / 0.5737 GB, free: 28.03 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.3601, allocations: 0.8906 kB / 0.5737 GB, free: 28.03 MB / 446.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002011/0.3603, allocations: 114 kB / 0.5738 GB, free: 27.96 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/0.3603, allocations: 9.344 kB / 0.5738 GB, free: 27.96 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.3603, allocations: 2.844 kB / 0.5738 GB, free: 27.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.3603, allocations: 0 / 0.5738 GB, free: 27.96 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.223e-05/0.3604, allocations: 18.28 kB / 0.5738 GB, free: 27.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.83e-06/0.3604, allocations: 0 / 0.5738 GB, free: 27.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.406e-05/0.3605, allocations: 14.02 kB / 0.5738 GB, free: 27.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.475e-06/0.3605, allocations: 3.781 kB / 0.5738 GB, free: 27.95 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 8.952e-05/0.3606, allocations: 141.2 kB / 0.574 GB, free: 27.82 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.762e-05/0.3607, allocations: 15.56 kB / 0.574 GB, free: 27.82 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.08e-05/0.3607, allocations: 19.8 kB / 0.574 GB, free: 27.81 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/0.3607, allocations: 2.953 kB / 0.574 GB, free: 27.81 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.3607, allocations: 0 / 0.574 GB, free: 27.81 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.3607, allocations: 6.797 kB / 0.574 GB, free: 27.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001334/0.3609, allocations: 231.7 kB / 0.5742 GB, free: 27.58 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.3609, allocations: 1.406 kB / 0.5742 GB, free: 27.58 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.83e-05/0.3609, allocations: 4.75 kB / 0.5743 GB, free: 27.58 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.3609, allocations: 1.344 kB / 0.5743 GB, free: 27.58 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/0.361, allocations: 5.609 kB / 0.5743 GB, free: 27.58 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.361, allocations: 0 / 0.5743 GB, free: 27.58 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.361, allocations: 3.938 kB / 0.5743 GB, free: 27.58 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002059/0.3612, allocations: 148.4 kB / 0.5744 GB, free: 27.48 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.286e-05/0.3612, allocations: 95.86 kB / 0.5745 GB, free: 27.37 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.78e-05/0.3612, allocations: 2.016 kB / 0.5745 GB, free: 27.37 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.288e-05/0.3613, allocations: 3.656 kB / 0.5745 GB, free: 27.37 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.804e-05/0.3614, allocations: 16.19 kB / 0.5745 GB, free: 27.36 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.191e-05/0.3614, allocations: 3.203 kB / 0.5745 GB, free: 27.36 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001479/0.3615, allocations: 195.2 kB / 0.5747 GB, free: 27.26 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3615, allocations: 0 / 0.5747 GB, free: 27.26 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002426/0.3618, allocations: 34.33 kB / 0.5747 GB, free: 27.25 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.001223/0.363, allocations: 0.9948 MB / 0.5757 GB, free: 26.56 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002325/0.3633, allocations: 80.12 kB / 0.5758 GB, free: 26.54 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3633, allocations: 0 / 0.5758 GB, free: 26.54 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 9.494e-05/0.3634, allocations: 38.8 kB / 0.5758 GB, free: 26.52 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003065/0.3637, allocations: 51.12 kB / 0.5759 GB, free: 26.51 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001915/0.3656, allocations: 1.922 MB / 0.5778 GB, free: 25.14 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001434/0.3658, allocations: 0.7252 MB / 0.5785 GB, free: 24.43 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.417e-05/0.3659, allocations: 31.09 kB / 0.5785 GB, free: 24.42 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.211e-05/0.3659, allocations: 49.66 kB / 0.5785 GB, free: 24.39 MB / 446.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3659, allocations: 0 / 0.5785 GB, free: 24.39 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01954/0.3855, allocations: 4.59 MB / 0.583 GB, free: 22.89 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.218/7.603, allocations: 14.59 kB / 0.583 GB, free: 22.88 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 & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)