Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel.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.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Lines_Examples_RCModel",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.001157/0.001157, allocations: 108 kB / 15.61 MB, free: 152 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.001287/0.001287, allocations: 196.9 kB / 16.53 MB, free: 6.664 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.545/1.545, allocations: 205.1 MB / 222.4 MB, free: 4.605 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.849/1.849, allocations: 292.3 MB / 0.5489 GB, free: 12.86 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.001469/0.00147, allocations: 68.98 kB / 0.6716 GB, free: 26.37 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2757, allocations: 114.6 MB / 0.7835 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006027/0.2817, allocations: 4.332 MB / 0.7877 GB, free: 9.051 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002939/0.2847, allocations: 1.863 MB / 0.7895 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002089/0.2849, allocations: 11.94 kB / 0.7895 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001552/0.2865, allocations: 0.5985 MB / 0.7901 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0005012/0.287, allocations: 254.6 kB / 0.7904 GB, free: 6.316 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000565/0.2876, allocations: 255.3 kB / 0.7906 GB, free: 6.066 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0006477/0.2883, allocations: 0.6074 MB / 0.7912 GB, free: 5.457 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000692/0.289, allocations: 467 kB / 0.7916 GB, free: 4.996 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002666/0.2892, allocations: 251.2 kB / 0.7919 GB, free: 4.75 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004371/0.2897, allocations: 271 kB / 0.7921 GB, free: 4.484 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 6.82e-05/0.2898, allocations: 36 kB / 0.7922 GB, free: 4.449 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004356/0.2902, allocations: 251.4 kB / 0.7924 GB, free: 4.203 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001485/0.2904, allocations: 147.6 kB / 0.7926 GB, free: 4.059 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002228/0.2906, allocations: 219 kB / 0.7928 GB, free: 3.844 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0007246/0.2913, allocations: 0.6036 MB / 0.7934 GB, free: 3.238 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.2913, allocations: 0 / 0.7934 GB, free: 3.238 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.903e-06/0.2914, allocations: 0 / 0.7934 GB, free: 3.238 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.788e-06/0.2914, allocations: 4 kB / 0.7934 GB, free: 3.234 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001282/0.2927, allocations: 0.7174 MB / 0.7941 GB, free: 2.469 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.2927, allocations: 8.031 kB / 0.7941 GB, free: 2.461 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.283e-05/0.2928, allocations: 78.72 kB / 0.7941 GB, free: 2.375 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009744/0.2938, allocations: 152.2 kB / 0.7943 GB, free: 2.227 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004463/0.2942, allocations: 334.4 kB / 0.7946 GB, free: 1.859 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.644e-05/0.2943, allocations: 25.38 kB / 0.7946 GB, free: 1.836 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.923e-05/0.2943, allocations: 32.38 kB / 0.7947 GB, free: 1.805 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007257/0.2951, allocations: 0.5355 MB / 0.7952 GB, free: 1.234 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.2951, allocations: 0 / 0.7952 GB, free: 1.234 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.145e-05/0.2951, allocations: 16 kB / 0.7952 GB, free: 1.219 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.958e-05/0.2952, allocations: 28.64 kB / 0.7952 GB, free: 1.188 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005518/0.2958, allocations: 386.3 kB / 0.7956 GB, free: 0.8086 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002562/0.2983, allocations: 2.411 MB / 0.798 GB, free: 14.18 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000567/0.2989, allocations: 262.4 kB / 0.7982 GB, free: 13.91 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001581/0.2991, allocations: 112.8 kB / 0.7983 GB, free: 13.8 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 1.334e-05/0.2991, allocations: 0 / 0.7983 GB, free: 13.8 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.489e-05/0.2992, allocations: 38.56 kB / 0.7983 GB, free: 13.75 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=20): time 1.242e-06/0.2992, allocations: 4 kB / 0.7983 GB, free: 13.75 MB / 0.6231 GB Notification: Performance of matching and sorting (n=23): time 0.002323/0.3015, allocations: 1.125 MB / 0.7994 GB, free: 12.52 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.305e-05/0.3015, allocations: 59.41 kB / 0.7995 GB, free: 12.45 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003309/0.3019, allocations: 300.4 kB / 0.7998 GB, free: 12.16 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 3.008e-05/0.3019, allocations: 37.64 kB / 0.7998 GB, free: 12.11 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001718/0.3021, allocations: 227.6 kB / 0.8 GB, free: 11.88 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 6.757e-05/0.3022, allocations: 82.81 kB / 0.8001 GB, free: 11.8 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/0.3023, allocations: 61.94 kB / 0.8002 GB, free: 11.73 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001484/0.3024, allocations: 342.8 kB / 0.8005 GB, free: 11.39 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001659/0.3026, allocations: 104.6 kB / 0.8006 GB, free: 11.29 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002218/0.3028, allocations: 187.8 kB / 0.8008 GB, free: 11.07 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004005/0.3033, allocations: 320.6 kB / 0.8011 GB, free: 10.72 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.3033, allocations: 0 / 0.8011 GB, free: 10.72 MB / 0.6231 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007231/0.304, allocations: 440.1 kB / 0.8015 GB, free: 10.28 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.304, allocations: 8.938 kB / 0.8015 GB, free: 10.27 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.304, allocations: 4 kB / 0.8015 GB, free: 10.27 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000364/0.3044, allocations: 98.66 kB / 0.8016 GB, free: 10.16 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002765/0.3047, allocations: 59.91 kB / 0.8017 GB, free: 10.1 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003346/0.308, allocations: 4.395 MB / 0.806 GB, free: 5.281 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002519/0.3083, allocations: 15.98 kB / 0.806 GB, free: 5.266 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.026e-05/0.3084, allocations: 12.12 kB / 0.806 GB, free: 5.254 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002332/0.3086, allocations: 177.7 kB / 0.8062 GB, free: 5.07 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.964e-05/0.3087, allocations: 31.66 kB / 0.8062 GB, free: 5.039 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.619e-05/0.3087, allocations: 42.31 kB / 0.8062 GB, free: 5 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.3088, allocations: 4 kB / 0.8062 GB, free: 4.996 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.3088, allocations: 0 / 0.8062 GB, free: 4.996 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.3088, allocations: 96 / 0.8062 GB, free: 4.996 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004857/0.3093, allocations: 405.4 kB / 0.8066 GB, free: 4.551 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.3093, allocations: 7.922 kB / 0.8066 GB, free: 4.543 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001881/0.3095, allocations: 43.91 kB / 0.8067 GB, free: 4.5 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002966/0.3098, allocations: 94.44 kB / 0.8068 GB, free: 4.398 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.999e-05/0.3098, allocations: 8 kB / 0.8068 GB, free: 4.391 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0033/0.3131, allocations: 4.376 MB / 0.811 GB, free: 15.59 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.3132, allocations: 7.969 kB / 0.8111 GB, free: 15.59 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008165/0.314, allocations: 0.5583 MB / 0.8116 GB, free: 15 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001471/0.3141, allocations: 124.7 kB / 0.8117 GB, free: 14.86 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.653e-05/0.3142, allocations: 4 kB / 0.8117 GB, free: 14.86 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001974/0.3144, allocations: 16.05 kB / 0.8117 GB, free: 14.84 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.452e-05/0.3145, allocations: 15.98 kB / 0.8118 GB, free: 14.83 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.576e-05/0.3145, allocations: 12 kB / 0.8118 GB, free: 14.82 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0002209/0.3147, allocations: 215 kB / 0.812 GB, free: 14.61 MB / 0.6387 GB Notification: Performance of sort global known variables: time 2.3e-07/0.3147, allocations: 0 / 0.812 GB, free: 14.61 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0004844/0.3152, allocations: 96 kB / 0.8121 GB, free: 14.52 MB / 0.6387 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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 (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001062/0.3163, allocations: 1.096 MB / 0.8131 GB, free: 13.39 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.0008787/0.3172, allocations: 0.6441 MB / 0.8138 GB, free: 12.7 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3172, allocations: 0 / 0.8138 GB, free: 12.7 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0004759/0.3177, allocations: 472.6 kB / 0.8142 GB, free: 12.2 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005204/0.3182, allocations: 75.91 kB / 0.8143 GB, free: 12.13 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004429/0.3226, allocations: 3.393 MB / 0.8176 GB, free: 8.578 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004439/0.3231, allocations: 0.835 MB / 0.8184 GB, free: 7.719 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0002283/0.3233, allocations: 58.92 kB / 0.8185 GB, free: 7.66 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001469/0.3235, allocations: 115.4 kB / 0.8186 GB, free: 7.551 MB / 0.6387 GB Notification: Performance of SimCode: time 6.81e-07/0.3235, allocations: 0 / 0.8186 GB, free: 7.551 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03348/0.357, allocations: 7.62 MB / 0.826 GB, free: 56 kB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.254/9.611, allocations: 19.53 kB / 0.826 GB, free: 40 kB / 0.6387 GB (rm -f Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1)