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.007885/0.007885, allocations: 98.55 kB / 15.73 MB, free: 6.043 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.002173/0.002173, allocations: 201.5 kB / 16.68 MB, free: 5.965 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.46/1.46, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002456/0.002456, allocations: 283 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.092/1.092, allocations: 178.6 MB / 0.5074 GB, free: 4.488 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002773/0.002773, allocations: 95.86 kB / 0.6943 GB, free: 3.613 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5748/0.5776, allocations: 89.14 MB / 0.7813 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.003312/0.5809, allocations: 1.78 MB / 0.7831 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001902/0.5829, allocations: 1.101 MB / 0.7842 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.622e-05/0.583, allocations: 5.312 kB / 0.7842 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0003313/0.5833, allocations: 54 kB / 0.7842 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002526/0.5836, allocations: 79.42 kB / 0.7843 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006686/0.5843, allocations: 219.6 kB / 0.7845 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002438/0.5845, allocations: 153.6 kB / 0.7846 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.5847, allocations: 18.12 kB / 0.7847 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001123/0.5848, allocations: 70.75 kB / 0.7847 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001204/0.5849, allocations: 67.09 kB / 0.7848 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.332e-05/0.5849, allocations: 7.031 kB / 0.7848 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001708/0.5851, allocations: 66.91 kB / 0.7849 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 8.019e-05/0.5852, allocations: 42.27 kB / 0.7849 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 7.813e-05/0.5853, allocations: 55.83 kB / 0.785 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003394/0.5856, allocations: 211 kB / 0.7852 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.5856, allocations: 0 / 0.7852 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.432e-06/0.5857, allocations: 0 / 0.7852 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.292e-06/0.5857, allocations: 0.75 kB / 0.7852 GB, free: 11.38 MB / 0.5606 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.0007236/0.5864, allocations: 495.7 kB / 0.7856 GB, free: 10.9 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.5864, allocations: 9.688 kB / 0.7856 GB, free: 10.9 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.459e-05/0.5865, allocations: 37.94 kB / 0.7857 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.131e-05/0.5866, allocations: 20.53 kB / 0.7857 GB, free: 10.85 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003636/0.5869, allocations: 258.2 kB / 0.7859 GB, free: 10.6 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/0.587, allocations: 2.844 kB / 0.7859 GB, free: 10.6 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.523e-05/0.587, allocations: 7.344 kB / 0.786 GB, free: 10.6 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002166/0.5872, allocations: 94.03 kB / 0.786 GB, free: 10.53 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.5872, allocations: 7.922 kB / 0.7861 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.5872, allocations: 0 / 0.7861 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.814e-05/0.5873, allocations: 7.438 kB / 0.7861 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001157/0.5874, allocations: 31.31 kB / 0.7861 GB, free: 10.51 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005605/0.5879, allocations: 355.4 kB / 0.7864 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002466/0.5882, allocations: 91.58 kB / 0.7865 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.054e-05/0.5883, allocations: 31.39 kB / 0.7865 GB, free: 10.13 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.269e-05/0.5883, allocations: 5.906 kB / 0.7866 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002025/0.5885, allocations: 84.36 kB / 0.7866 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.674e-06/0.5886, allocations: 0 / 0.7866 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.0004116/0.589, allocations: 146.7 kB / 0.7868 GB, free: 9.988 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.76e-05/0.5891, allocations: 103.6 kB / 0.7869 GB, free: 9.863 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003026/0.5894, allocations: 269.2 kB / 0.7871 GB, free: 9.711 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.35e-05/0.5894, allocations: 31.67 kB / 0.7872 GB, free: 9.676 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.013e-05/0.5895, allocations: 112.9 kB / 0.7873 GB, free: 9.574 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.698e-05/0.5895, allocations: 24.12 kB / 0.7873 GB, free: 9.555 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.438e-05/0.5896, allocations: 30.2 kB / 0.7873 GB, free: 9.531 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001494/0.5898, allocations: 328.6 kB / 0.7876 GB, free: 9.211 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.675e-05/0.5898, allocations: 26.28 kB / 0.7877 GB, free: 9.203 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001146/0.59, allocations: 71.59 kB / 0.7877 GB, free: 9.148 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001554/0.5901, allocations: 71.55 kB / 0.7878 GB, free: 9.109 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.5901, allocations: 0.6094 kB / 0.7878 GB, free: 9.109 MB / 0.5606 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002611/0.5904, allocations: 121.1 kB / 0.7879 GB, free: 9.039 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.5904, allocations: 4.812 kB / 0.7879 GB, free: 9.039 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.5904, allocations: 1.312 kB / 0.7879 GB, free: 9.039 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.5905, allocations: 5.641 kB / 0.7879 GB, free: 9.035 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.302e-05/0.5906, allocations: 11.88 kB / 0.7879 GB, free: 9.035 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.5906, allocations: 5.688 kB / 0.7879 GB, free: 9.031 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.786e-05/0.5906, allocations: 12.19 kB / 0.7879 GB, free: 9.023 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.457e-06/0.5907, allocations: 4.281 kB / 0.788 GB, free: 9.023 MB / 0.5606 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.0001396/0.5908, allocations: 135.6 kB / 0.7881 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.172e-05/0.5908, allocations: 16.05 kB / 0.7881 GB, free: 8.895 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.109e-05/0.5909, allocations: 23.81 kB / 0.7881 GB, free: 8.883 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.988e-06/0.5909, allocations: 1.25 kB / 0.7881 GB, free: 8.883 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.5909, allocations: 0.75 kB / 0.7881 GB, free: 8.883 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.5909, allocations: 9.188 kB / 0.7881 GB, free: 8.875 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002399/0.5912, allocations: 222.4 kB / 0.7883 GB, free: 8.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.5912, allocations: 5.312 kB / 0.7883 GB, free: 8.656 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.155e-05/0.5912, allocations: 6.156 kB / 0.7884 GB, free: 8.656 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.5913, allocations: 0.8438 kB / 0.7884 GB, free: 8.656 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/0.5913, allocations: 5.969 kB / 0.7884 GB, free: 8.652 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.5913, allocations: 1.344 kB / 0.7884 GB, free: 8.652 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.5913, allocations: 0 / 0.7884 GB, free: 8.652 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002808/0.5916, allocations: 150.1 kB / 0.7885 GB, free: 8.547 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.528e-05/0.5916, allocations: 92.69 kB / 0.7886 GB, free: 8.445 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.008e-05/0.5917, allocations: 1.984 kB / 0.7886 GB, free: 8.445 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.734e-05/0.5917, allocations: 7.734 kB / 0.7886 GB, free: 8.441 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.929e-05/0.5918, allocations: 10.69 kB / 0.7886 GB, free: 8.438 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.5918, allocations: 4.672 kB / 0.7886 GB, free: 8.438 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000194/0.592, allocations: 194.3 kB / 0.7888 GB, free: 8.332 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.41e-07/0.592, allocations: 0 / 0.7888 GB, free: 8.332 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002625/0.5923, allocations: 33.62 kB / 0.7888 GB, free: 8.324 MB / 0.5606 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.002009/0.5943, allocations: 1.002 MB / 0.7898 GB, free: 7.59 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002451/0.5946, allocations: 77.23 kB / 0.7899 GB, free: 7.562 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.5946, allocations: 0 / 0.7899 GB, free: 7.562 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 9.394e-05/0.5947, allocations: 38.53 kB / 0.7899 GB, free: 7.551 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003213/0.595, allocations: 44.12 kB / 0.79 GB, free: 7.535 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002645/0.5977, allocations: 1.952 MB / 0.7919 GB, free: 6.145 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003675/0.5981, allocations: 0.7205 MB / 0.7926 GB, free: 5.445 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 9.768e-05/0.5982, allocations: 28.05 kB / 0.7926 GB, free: 5.43 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.127e-05/0.5983, allocations: 47.06 kB / 0.7926 GB, free: 5.402 MB / 0.5606 GB Notification: Performance of SimCode: time 4.71e-07/0.5983, allocations: 0 / 0.7926 GB, free: 5.402 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02834/0.6266, allocations: 4.708 MB / 0.7972 GB, free: 3.941 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.044/8.67, allocations: 3.25 kB / 0.7972 GB, free: 3.941 MB / 0.5606 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)