Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_8_Buildings_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.0009734/0.0009734, allocations: 91.38 kB / 15.06 MB, free: 1.094 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.001067/0.001067, allocations: 172.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.726/1.726, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.817/1.817, allocations: 292.7 MB / 0.5499 GB, free: 14.56 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006251/0.0006253, allocations: 14.94 kB / 0.6738 GB, free: 26.11 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2687, allocations: 116.3 MB / 0.7874 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002436/0.2712, allocations: 1.455 MB / 0.7888 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001435/0.2727, allocations: 0.9457 MB / 0.7897 GB, free: 9.426 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.335e-05/0.2728, allocations: 4 kB / 0.7897 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002755/0.2731, allocations: 51.81 kB / 0.7898 GB, free: 9.371 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001966/0.2733, allocations: 67.73 kB / 0.7899 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004896/0.2738, allocations: 167 kB / 0.79 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001697/0.274, allocations: 123.5 kB / 0.7901 GB, free: 9.023 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.644e-05/0.2741, allocations: 29.09 kB / 0.7902 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.637e-05/0.2742, allocations: 51.77 kB / 0.7902 GB, free: 8.945 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.132e-05/0.2742, allocations: 47.77 kB / 0.7903 GB, free: 8.898 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.324e-05/0.2743, allocations: 4 kB / 0.7903 GB, free: 8.895 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001248/0.2744, allocations: 59.89 kB / 0.7903 GB, free: 8.836 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 5.983e-05/0.2745, allocations: 31.91 kB / 0.7904 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.86e-05/0.2745, allocations: 49.58 kB / 0.7904 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001979/0.2747, allocations: 144 kB / 0.7905 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.2747, allocations: 8 kB / 0.7905 GB, free: 8.602 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.743e-06/0.2747, allocations: 0 / 0.7905 GB, free: 8.602 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.933e-06/0.2748, allocations: 0 / 0.7905 GB, free: 8.602 MB / 0.6075 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.0005879/0.2754, allocations: 464.3 kB / 0.791 GB, free: 8.094 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.2754, allocations: 12.03 kB / 0.791 GB, free: 8.082 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.71e-05/0.2755, allocations: 34.55 kB / 0.791 GB, free: 8.039 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.053e-05/0.2755, allocations: 19.77 kB / 0.7911 GB, free: 8.02 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000272/0.2758, allocations: 239.7 kB / 0.7913 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.786e-05/0.2758, allocations: 7.938 kB / 0.7913 GB, free: 7.734 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.423e-05/0.2758, allocations: 12 kB / 0.7913 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002078/0.276, allocations: 92.22 kB / 0.7914 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.804e-06/0.2761, allocations: 0 / 0.7914 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/0.2761, allocations: 0 / 0.7914 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.962e-05/0.2761, allocations: 8 kB / 0.7914 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001002/0.2762, allocations: 31.92 kB / 0.7914 GB, free: 7.578 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004957/0.2767, allocations: 364.6 kB / 0.7918 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002119/0.2769, allocations: 90.69 kB / 0.7919 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.689e-05/0.277, allocations: 28.84 kB / 0.7919 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2e-05/0.277, allocations: 4 kB / 0.7919 GB, free: 7.039 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002036/0.2772, allocations: 87.31 kB / 0.792 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.623e-06/0.2773, allocations: 0 / 0.792 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8): time 0.0003219/0.2776, allocations: 141.3 kB / 0.7921 GB, free: 6.797 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.337e-05/0.2777, allocations: 106.8 kB / 0.7922 GB, free: 6.668 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002457/0.2779, allocations: 267.4 kB / 0.7925 GB, free: 6.395 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.851e-05/0.2779, allocations: 29.7 kB / 0.7925 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.683e-05/0.278, allocations: 112.1 kB / 0.7926 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.421e-05/0.278, allocations: 31.64 kB / 0.7926 GB, free: 6.215 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.531e-06/0.2781, allocations: 0 / 0.7926 GB, free: 6.215 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001182/0.2782, allocations: 326.8 kB / 0.7929 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.398e-05/0.2783, allocations: 27.98 kB / 0.793 GB, free: 5.859 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.488e-05/0.2784, allocations: 68.27 kB / 0.793 GB, free: 5.777 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.362e-05/0.2784, allocations: 36.31 kB / 0.7931 GB, free: 5.742 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.2784, allocations: 0 / 0.7931 GB, free: 5.742 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000195/0.2786, allocations: 117.4 kB / 0.7932 GB, free: 5.621 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.2787, allocations: 7.984 kB / 0.7932 GB, free: 5.613 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.2787, allocations: 3.953 kB / 0.7932 GB, free: 5.609 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.049e-05/0.2787, allocations: 0 / 0.7932 GB, free: 5.609 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.294e-05/0.2788, allocations: 15.94 kB / 0.7932 GB, free: 5.594 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.2788, allocations: 0 / 0.7932 GB, free: 5.594 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.618e-05/0.2789, allocations: 15.92 kB / 0.7932 GB, free: 5.578 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.714e-05/0.2789, allocations: 4 kB / 0.7932 GB, free: 5.574 MB / 0.6075 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 ($whenCondition1,$PRE.intTab.combiTimeTable.nextTimeEvent,intTab.y,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001591/0.2791, allocations: 137.9 kB / 0.7934 GB, free: 5.43 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.717e-05/0.2791, allocations: 19.81 kB / 0.7934 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.389e-05/0.2792, allocations: 21.39 kB / 0.7934 GB, free: 5.387 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.345e-05/0.2792, allocations: 3.953 kB / 0.7934 GB, free: 5.383 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.2792, allocations: 4 kB / 0.7934 GB, free: 5.379 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.2792, allocations: 0 / 0.7934 GB, free: 5.379 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000244/0.2795, allocations: 213.6 kB / 0.7936 GB, free: 5.121 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.2795, allocations: 0 / 0.7936 GB, free: 5.121 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.114e-05/0.2795, allocations: 8 kB / 0.7936 GB, free: 5.113 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.2796, allocations: 4.047 kB / 0.7936 GB, free: 5.109 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.918e-05/0.2796, allocations: 15.91 kB / 0.7936 GB, free: 5.094 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2796, allocations: 0 / 0.7936 GB, free: 5.094 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.2796, allocations: 3.953 kB / 0.7936 GB, free: 5.09 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002185/0.2798, allocations: 144.8 kB / 0.7938 GB, free: 4.93 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.723e-05/0.2799, allocations: 96.91 kB / 0.7939 GB, free: 4.816 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.67e-05/0.2799, allocations: 4 kB / 0.7939 GB, free: 4.812 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.362e-05/0.28, allocations: 7.984 kB / 0.7939 GB, free: 4.805 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.117e-05/0.28, allocations: 11.95 kB / 0.7939 GB, free: 4.793 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.226e-05/0.2801, allocations: 7.984 kB / 0.7939 GB, free: 4.785 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000168/0.2802, allocations: 188.6 kB / 0.7941 GB, free: 4.602 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2802, allocations: 4 kB / 0.7941 GB, free: 4.598 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002457/0.2805, allocations: 44.02 kB / 0.7941 GB, free: 4.555 MB / 0.6075 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001414/0.2819, allocations: 0.9854 MB / 0.7951 GB, free: 3.703 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002188/0.2821, allocations: 71.94 kB / 0.7952 GB, free: 3.633 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2822, allocations: 0 / 0.7952 GB, free: 3.633 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.744e-05/0.2823, allocations: 39.92 kB / 0.7952 GB, free: 3.594 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002735/0.2825, allocations: 42.75 kB / 0.7952 GB, free: 3.555 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001491/0.284, allocations: 0.9635 MB / 0.7962 GB, free: 2.543 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002964/0.2844, allocations: 0.7243 MB / 0.7969 GB, free: 1.793 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 8.722e-05/0.2845, allocations: 33 kB / 0.7969 GB, free: 1.758 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.85e-05/0.2845, allocations: 47.41 kB / 0.797 GB, free: 1.715 MB / 0.6075 GB Notification: Performance of SimCode: time 2.91e-07/0.2845, allocations: 0 / 0.797 GB, free: 1.715 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01663/0.3012, allocations: 4.146 MB / 0.801 GB, free: 13.72 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001946/0.3014, allocations: 221.4 kB / 0.8012 GB, free: 13.48 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.956/2.258, allocations: 7.938 kB / 0.8012 GB, free: 13.48 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) Environment - environmentSimulation: