Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="BuildingSystems_BuildingSystems_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.0049/0.0049, allocations: 101 kB / 15.73 MB, free: 6.055 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.001341/0.001341, allocations: 195.2 kB / 16.67 MB, free: 5.969 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.372/1.372, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002479/0.002479, allocations: 288.7 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9778/0.9778, allocations: 169.3 MB / 0.4983 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.005055/0.005055, allocations: 95.86 kB / 0.681 GB, free: 7.473 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5186/0.5237, allocations: 86.98 MB / 0.7659 GB, free: 3.883 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.003174/0.5269, allocations: 1.766 MB / 0.7676 GB, free: 2.102 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001859/0.5288, allocations: 1.105 MB / 0.7687 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.539e-05/0.5289, allocations: 0 / 0.7687 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0003485/0.5293, allocations: 63.67 kB / 0.7688 GB, free: 0.9258 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002482/0.5295, allocations: 79.61 kB / 0.7689 GB, free: 0.8477 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007238/0.5303, allocations: 225 kB / 0.7691 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.000253/0.5305, allocations: 147.6 kB / 0.7692 GB, free: 496 kB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.5307, allocations: 21.09 kB / 0.7692 GB, free: 476 kB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001078/0.5308, allocations: 55.78 kB / 0.7693 GB, free: 420 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001221/0.5309, allocations: 63.75 kB / 0.7693 GB, free: 356 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.644e-05/0.5309, allocations: 8 kB / 0.7694 GB, free: 348 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001785/0.5311, allocations: 79.88 kB / 0.7694 GB, free: 268 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.591e-05/0.5312, allocations: 43.84 kB / 0.7695 GB, free: 224 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 7.711e-05/0.5313, allocations: 55.66 kB / 0.7695 GB, free: 168 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003469/0.5317, allocations: 200.3 kB / 0.7697 GB, free: 15.98 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.5317, allocations: 0 / 0.7697 GB, free: 15.98 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.663e-06/0.5317, allocations: 0 / 0.7697 GB, free: 15.98 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.672e-06/0.5317, allocations: 0 / 0.7697 GB, free: 15.98 MB / 0.545 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.0007363/0.5324, allocations: 0.496 MB / 0.7702 GB, free: 15.43 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.5325, allocations: 8.031 kB / 0.7702 GB, free: 15.42 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.529e-05/0.5325, allocations: 38.73 kB / 0.7702 GB, free: 15.37 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.507e-05/0.5326, allocations: 20.84 kB / 0.7703 GB, free: 15.35 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003524/0.5329, allocations: 241 kB / 0.7705 GB, free: 15.07 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.79e-05/0.533, allocations: 8.375 kB / 0.7705 GB, free: 15.07 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.006e-05/0.533, allocations: 15.91 kB / 0.7705 GB, free: 15.05 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002332/0.5332, allocations: 92.17 kB / 0.7706 GB, free: 14.95 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.5333, allocations: 0 / 0.7706 GB, free: 14.95 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.638e-05/0.5333, allocations: 7.984 kB / 0.7706 GB, free: 14.94 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.376e-05/0.5333, allocations: 8 kB / 0.7706 GB, free: 14.93 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001116/0.5334, allocations: 31.98 kB / 0.7707 GB, free: 14.9 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005619/0.534, allocations: 356.6 kB / 0.771 GB, free: 14.5 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002295/0.5342, allocations: 86.66 kB / 0.7711 GB, free: 14.41 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.609e-05/0.5343, allocations: 28.84 kB / 0.7711 GB, free: 14.38 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.256e-05/0.5344, allocations: 8.031 kB / 0.7711 GB, free: 14.37 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001942/0.5346, allocations: 91.31 kB / 0.7712 GB, free: 14.27 MB / 0.545 GB Notification: Performance of pre-optimization done (n=8): time 1.663e-06/0.5346, allocations: 0 / 0.7712 GB, free: 14.27 MB / 0.545 GB Notification: Performance of matching and sorting (n=8): time 0.0004001/0.535, allocations: 137.5 kB / 0.7713 GB, free: 14.12 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.852e-05/0.5351, allocations: 106.8 kB / 0.7714 GB, free: 14 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003875/0.5355, allocations: 267.6 kB / 0.7717 GB, free: 13.73 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.69e-05/0.5356, allocations: 33.7 kB / 0.7717 GB, free: 13.69 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.5358, allocations: 112.1 kB / 0.7718 GB, free: 13.57 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.836e-05/0.5358, allocations: 31.72 kB / 0.7719 GB, free: 13.54 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.01e-05/0.5359, allocations: 21.72 kB / 0.7719 GB, free: 13.52 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0002036/0.5361, allocations: 338.8 kB / 0.7722 GB, free: 13.18 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.561e-05/0.5362, allocations: 23.98 kB / 0.7722 GB, free: 13.15 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001175/0.5363, allocations: 68.28 kB / 0.7723 GB, free: 13.07 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001724/0.5365, allocations: 73.67 kB / 0.7724 GB, free: 12.99 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.169e-06/0.5365, allocations: 0 / 0.7724 GB, free: 12.99 MB / 0.545 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002397/0.5367, allocations: 113.5 kB / 0.7725 GB, free: 12.88 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.5367, allocations: 4 kB / 0.7725 GB, free: 12.87 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.5368, allocations: 4.391 kB / 0.7725 GB, free: 12.87 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.5368, allocations: 0 / 0.7725 GB, free: 12.87 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/0.5369, allocations: 19.92 kB / 0.7725 GB, free: 12.85 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.5369, allocations: 4.031 kB / 0.7725 GB, free: 12.84 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.358e-05/0.537, allocations: 7.938 kB / 0.7725 GB, free: 12.84 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.629e-06/0.537, allocations: 0 / 0.7725 GB, free: 12.84 MB / 0.545 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.000182/0.5372, allocations: 141.8 kB / 0.7726 GB, free: 12.69 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.166e-05/0.5373, allocations: 15.91 kB / 0.7727 GB, free: 12.67 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.996e-05/0.5373, allocations: 21.38 kB / 0.7727 GB, free: 12.65 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.118e-05/0.5373, allocations: 4 kB / 0.7727 GB, free: 12.64 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.5373, allocations: 0 / 0.7727 GB, free: 12.64 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.5374, allocations: 7.938 kB / 0.7727 GB, free: 12.64 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002834/0.5376, allocations: 229.5 kB / 0.7729 GB, free: 12.36 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.5377, allocations: 4 kB / 0.7729 GB, free: 12.36 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.297e-05/0.5377, allocations: 7.984 kB / 0.7729 GB, free: 12.35 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.5377, allocations: 0 / 0.7729 GB, free: 12.35 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/0.5377, allocations: 0 / 0.7729 GB, free: 12.35 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.057e-06/0.5377, allocations: 4 kB / 0.7729 GB, free: 12.35 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.5378, allocations: 4 kB / 0.7729 GB, free: 12.34 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002856/0.538, allocations: 149.1 kB / 0.7731 GB, free: 12.18 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 8.954e-05/0.5381, allocations: 93.02 kB / 0.7732 GB, free: 12.07 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.933e-05/0.5382, allocations: 3.938 kB / 0.7732 GB, free: 12.07 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.53e-05/0.5382, allocations: 7.984 kB / 0.7732 GB, free: 12.06 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.055e-05/0.5383, allocations: 11.94 kB / 0.7732 GB, free: 12.05 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.5383, allocations: 3.984 kB / 0.7732 GB, free: 12.04 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002143/0.5386, allocations: 192.6 kB / 0.7734 GB, free: 11.86 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5386, allocations: 0 / 0.7734 GB, free: 11.86 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002799/0.5388, allocations: 31.94 kB / 0.7734 GB, free: 11.82 MB / 0.545 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.00219/0.541, allocations: 1.009 MB / 0.7744 GB, free: 10.95 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002503/0.5413, allocations: 71.89 kB / 0.7744 GB, free: 10.88 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.5413, allocations: 4 kB / 0.7745 GB, free: 10.88 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.675e-05/0.5414, allocations: 39.98 kB / 0.7745 GB, free: 10.84 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003177/0.5418, allocations: 44.34 kB / 0.7745 GB, free: 10.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002628/0.5444, allocations: 1.945 MB / 0.7764 GB, free: 8.77 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004898/0.5449, allocations: 0.7201 MB / 0.7771 GB, free: 8.023 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0001163/0.545, allocations: 29.36 kB / 0.7772 GB, free: 7.992 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001088/0.5452, allocations: 51.36 kB / 0.7772 GB, free: 7.941 MB / 0.545 GB Notification: Performance of SimCode: time 8.61e-07/0.5452, allocations: 0 / 0.7772 GB, free: 7.941 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02699/0.5722, allocations: 4.705 MB / 0.7818 GB, free: 3.395 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.098/8.67, allocations: 4.625 kB / 0.7818 GB, free: 3.391 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)