Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Routing.Validation.RealReplicator.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.Controls.OBC.CDL.Routing.Validation.RealReplicator,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Routing_Validation_RealReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.RealReplicator,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Routing_Validation_RealReplicator",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.001653/0.001653, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001969/0.001969, allocations: 193.6 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.649/1.649, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.742/1.742, allocations: 292.3 MB / 0.5489 GB, free: 12.83 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.001476/0.001476, allocations: 71.14 kB / 0.6716 GB, free: 26.06 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2855/0.287, allocations: 114.5 MB / 0.7835 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealReplicator): time 0.002188/0.2892, allocations: 0.6497 MB / 0.7841 GB, free: 12.71 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0009514/0.2902, allocations: 0.801 MB / 0.7849 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.58e-05/0.2902, allocations: 0 / 0.7849 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001044/0.2904, allocations: 3.938 kB / 0.7849 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 2.309e-05/0.2904, allocations: 0 / 0.7849 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001222/0.2905, allocations: 11.92 kB / 0.7849 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.757e-05/0.2906, allocations: 27.92 kB / 0.7849 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001036/0.2907, allocations: 4 kB / 0.7849 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 4.624e-05/0.2908, allocations: 8 kB / 0.785 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.803e-05/0.2908, allocations: 11.91 kB / 0.785 GB, free: 11.83 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.916e-05/0.2908, allocations: 8 kB / 0.785 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.348e-06/0.2909, allocations: 4 kB / 0.785 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 5.586e-05/0.2909, allocations: 7.984 kB / 0.785 GB, free: 11.81 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.004e-05/0.291, allocations: 11.94 kB / 0.785 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 7.937e-05/0.2911, allocations: 31.83 kB / 0.785 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.2911, allocations: 4 kB / 0.785 GB, free: 11.76 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.114e-06/0.2911, allocations: 0 / 0.785 GB, free: 11.76 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.253e-06/0.2911, allocations: 0 / 0.785 GB, free: 11.76 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.000526/0.2916, allocations: 343.6 kB / 0.7854 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.2917, allocations: 16.03 kB / 0.7854 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.897e-05/0.2917, allocations: 30.75 kB / 0.7854 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.298e-05/0.2917, allocations: 4.938 kB / 0.7854 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001609/0.2919, allocations: 172.3 kB / 0.7856 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.04e-05/0.2919, allocations: 4.375 kB / 0.7856 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.251e-05/0.2919, allocations: 384 / 0.7856 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002214/0.2922, allocations: 62.22 kB / 0.7856 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.2922, allocations: 3.938 kB / 0.7856 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.2922, allocations: 0 / 0.7856 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.2922, allocations: 7.938 kB / 0.7856 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000167/0.2924, allocations: 39.89 kB / 0.7857 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000436/0.2928, allocations: 268.9 kB / 0.7859 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001147/0.293, allocations: 38.55 kB / 0.786 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.681e-05/0.293, allocations: 20.91 kB / 0.786 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.073e-05/0.2931, allocations: 3.938 kB / 0.786 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.2931, allocations: 30.56 kB / 0.786 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.2931, allocations: 0 / 0.786 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of matching and sorting (n=1): time 0.0003373/0.2935, allocations: 81.64 kB / 0.7861 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.598e-05/0.2935, allocations: 55.41 kB / 0.7862 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.623e-05/0.2936, allocations: 97.86 kB / 0.7863 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.317e-05/0.2936, allocations: 25.7 kB / 0.7863 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.703e-05/0.2937, allocations: 96.06 kB / 0.7864 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.755e-05/0.2937, allocations: 3.906 kB / 0.7864 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.788e-05/0.2937, allocations: 9.719 kB / 0.7864 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001333/0.2939, allocations: 322.8 kB / 0.7867 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.086e-05/0.294, allocations: 16.02 kB / 0.7867 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.079e-05/0.294, allocations: 19.91 kB / 0.7867 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001407/0.2942, allocations: 32.83 kB / 0.7868 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2942, allocations: 0 / 0.7868 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001817/0.2944, allocations: 65.72 kB / 0.7868 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.2944, allocations: 8 kB / 0.7868 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.2944, allocations: 0 / 0.7868 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.2944, allocations: 3.938 kB / 0.7868 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.311e-05/0.2945, allocations: 8.234 kB / 0.7868 GB, free: 9.672 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.2945, allocations: 0 / 0.7868 GB, free: 9.672 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.489e-05/0.2946, allocations: 8 kB / 0.7868 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.63e-06/0.2946, allocations: 0 / 0.7868 GB, free: 9.664 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * 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.108e-05/0.2947, allocations: 129.7 kB / 0.787 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.111e-05/0.2947, allocations: 0 / 0.787 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.151e-05/0.2947, allocations: 3.125 kB / 0.787 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.2947, allocations: 0 / 0.787 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.2948, allocations: 4 kB / 0.787 GB, free: 9.516 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.2948, allocations: 0 / 0.787 GB, free: 9.516 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001629/0.2949, allocations: 165.6 kB / 0.7871 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.2949, allocations: 0 / 0.7871 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.032e-05/0.295, allocations: 4 kB / 0.7871 GB, free: 9.301 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.295, allocations: 4 kB / 0.7871 GB, free: 9.297 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.714e-06/0.295, allocations: 4 kB / 0.7871 GB, free: 9.293 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.295, allocations: 0 / 0.7871 GB, free: 9.293 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.295, allocations: 0 / 0.7871 GB, free: 9.293 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000234/0.2953, allocations: 159.5 kB / 0.7873 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.104e-05/0.2953, allocations: 84.95 kB / 0.7874 GB, free: 9.02 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.58e-05/0.2953, allocations: 7.984 kB / 0.7874 GB, free: 9.012 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.312e-05/0.2954, allocations: 8.031 kB / 0.7874 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.054e-05/0.2955, allocations: 0 / 0.7874 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.328e-06/0.2955, allocations: 0 / 0.7874 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.85e-05/0.2955, allocations: 91.2 kB / 0.7875 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2955, allocations: 0 / 0.7875 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002902/0.2958, allocations: 4 kB / 0.7875 GB, free: 8.91 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * 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 Backend phase and start with SimCode phase: time 0.0006193/0.2965, allocations: 0.689 MB / 0.7882 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002057/0.2967, allocations: 31.95 kB / 0.7882 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.992e-06/0.2967, allocations: 4 kB / 0.7882 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.355e-05/0.2968, allocations: 24.02 kB / 0.7882 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003082/0.2971, allocations: 4.938 kB / 0.7882 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001554/0.2987, allocations: 1.218 MB / 0.7894 GB, free: 6.832 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003414/0.299, allocations: 0.6885 MB / 0.7901 GB, free: 6.117 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.28e-05/0.2991, allocations: 3.938 kB / 0.7901 GB, free: 6.113 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.285e-05/0.2991, allocations: 11.42 kB / 0.7901 GB, free: 6.102 MB / 0.6075 GB Notification: Performance of SimCode: time 5.51e-07/0.2991, allocations: 0 / 0.7901 GB, free: 6.102 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02147/0.3206, allocations: 1.252 MB / 0.7913 GB, free: 4.926 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.675/7.996, allocations: 20.77 kB / 0.7913 GB, free: 4.914 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Routing.Validation.RealReplicator.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Routing.Validation.RealReplicator.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Routing.Validation.RealReplicator.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Routing.Validation.RealReplicator.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.CDL.Routing.Validation.RealReplicator_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Routing_Validation_RealReplicator.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Routing.Validation.RealReplicator.pipe 2>&1)