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.001276/0.001276, allocations: 109.4 kB / 15.69 MB, free: 128 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.001113/0.001113, allocations: 186 kB / 16.62 MB, free: 6.613 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.341/1.341, allocations: 205.1 MB / 222.5 MB, free: 4.543 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.648/1.648, allocations: 292.3 MB / 0.549 GB, free: 12.74 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.001419/0.001419, allocations: 69.36 kB / 0.6718 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2083/0.2098, allocations: 114.5 MB / 0.7836 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005741/0.2155, allocations: 4.338 MB / 0.7879 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002918/0.2185, allocations: 1.859 MB / 0.7897 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002329/0.2188, allocations: 8 kB / 0.7897 GB, free: 7.035 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001544/0.2203, allocations: 0.5984 MB / 0.7903 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0005518/0.2209, allocations: 258.6 kB / 0.7905 GB, free: 6.184 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005921/0.2215, allocations: 251.4 kB / 0.7908 GB, free: 5.938 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005984/0.2221, allocations: 0.615 MB / 0.7914 GB, free: 5.32 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006345/0.2228, allocations: 475 kB / 0.7918 GB, free: 4.852 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002382/0.223, allocations: 243.1 kB / 0.792 GB, free: 4.613 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004396/0.2235, allocations: 267 kB / 0.7923 GB, free: 4.352 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.505e-05/0.2235, allocations: 40 kB / 0.7923 GB, free: 4.312 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004079/0.2239, allocations: 251.5 kB / 0.7926 GB, free: 4.066 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001341/0.2241, allocations: 151.5 kB / 0.7927 GB, free: 3.918 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002026/0.2243, allocations: 215 kB / 0.7929 GB, free: 3.707 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0006115/0.2249, allocations: 0.6114 MB / 0.7935 GB, free: 3.094 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.2249, allocations: 7.938 kB / 0.7935 GB, free: 3.086 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.373e-06/0.2249, allocations: 0 / 0.7935 GB, free: 3.086 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.636e-06/0.225, allocations: 0 / 0.7935 GB, free: 3.086 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.001155/0.2261, allocations: 0.7174 MB / 0.7942 GB, free: 2.32 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.2262, allocations: 12.03 kB / 0.7942 GB, free: 2.309 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.518e-05/0.2263, allocations: 74.7 kB / 0.7943 GB, free: 2.227 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000916/0.2272, allocations: 148.2 kB / 0.7944 GB, free: 2.082 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004387/0.2276, allocations: 346.4 kB / 0.7948 GB, free: 1.703 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.348e-05/0.2277, allocations: 25.36 kB / 0.7948 GB, free: 1.68 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.071e-05/0.2277, allocations: 36.38 kB / 0.7948 GB, free: 1.645 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007231/0.2285, allocations: 0.5355 MB / 0.7954 GB, free: 1.074 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.2285, allocations: 0 / 0.7954 GB, free: 1.074 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.601e-05/0.2285, allocations: 12 kB / 0.7954 GB, free: 1.062 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.596e-05/0.2286, allocations: 32.64 kB / 0.7954 GB, free: 1.027 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005447/0.2291, allocations: 386.3 kB / 0.7958 GB, free: 0.6484 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002357/0.2315, allocations: 2.403 MB / 0.7981 GB, free: 14.02 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005111/0.232, allocations: 268.8 kB / 0.7984 GB, free: 13.75 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001585/0.2322, allocations: 108.8 kB / 0.7985 GB, free: 13.64 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 1.463e-05/0.2322, allocations: 0 / 0.7985 GB, free: 13.64 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.757e-05/0.2322, allocations: 38.56 kB / 0.7985 GB, free: 13.6 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=20): time 9.22e-07/0.2322, allocations: 0 / 0.7985 GB, free: 13.6 MB / 0.6231 GB Notification: Performance of matching and sorting (n=23): time 0.002082/0.2343, allocations: 1.129 MB / 0.7996 GB, free: 12.37 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.57e-05/0.2344, allocations: 55.41 kB / 0.7997 GB, free: 12.3 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003034/0.2347, allocations: 300.4 kB / 0.8 GB, free: 12.01 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 2.558e-05/0.2347, allocations: 33.7 kB / 0.8 GB, free: 11.97 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001437/0.2349, allocations: 227.6 kB / 0.8002 GB, free: 11.74 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 5.861e-05/0.2349, allocations: 86.81 kB / 0.8003 GB, free: 11.65 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.588e-05/0.235, allocations: 61.94 kB / 0.8003 GB, free: 11.58 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001372/0.2352, allocations: 342.8 kB / 0.8007 GB, free: 11.24 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.2354, allocations: 104.5 kB / 0.8008 GB, free: 11.14 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002061/0.2356, allocations: 191.8 kB / 0.801 GB, free: 10.91 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003753/0.236, allocations: 308.7 kB / 0.8013 GB, free: 10.57 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.236, allocations: 3.938 kB / 0.8013 GB, free: 10.57 MB / 0.6231 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007073/0.2367, allocations: 439.9 kB / 0.8017 GB, free: 10.13 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.2367, allocations: 8 kB / 0.8017 GB, free: 10.12 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.2367, allocations: 7.938 kB / 0.8017 GB, free: 10.11 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003485/0.2371, allocations: 94.84 kB / 0.8018 GB, free: 10.01 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002678/0.2374, allocations: 63.91 kB / 0.8018 GB, free: 9.949 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00302/0.2404, allocations: 4.399 MB / 0.8061 GB, free: 5.125 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002149/0.2406, allocations: 12.03 kB / 0.8061 GB, free: 5.113 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.171e-05/0.2407, allocations: 16.16 kB / 0.8062 GB, free: 5.098 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.0002091/0.2409, allocations: 184.1 kB / 0.8063 GB, free: 4.91 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.227e-05/0.2409, allocations: 31.66 kB / 0.8064 GB, free: 4.879 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.099e-05/0.241, allocations: 38.31 kB / 0.8064 GB, free: 4.844 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.241, allocations: 4 kB / 0.8064 GB, free: 4.84 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.637e-06/0.241, allocations: 0 / 0.8064 GB, free: 4.84 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.241, allocations: 0 / 0.8064 GB, free: 4.84 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000448/0.2415, allocations: 405.4 kB / 0.8068 GB, free: 4.395 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.2415, allocations: 3.938 kB / 0.8068 GB, free: 4.391 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001833/0.2417, allocations: 35.97 kB / 0.8068 GB, free: 4.355 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002917/0.242, allocations: 98.44 kB / 0.8069 GB, free: 4.25 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.242, allocations: 4 kB / 0.8069 GB, free: 4.246 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002854/0.2449, allocations: 4.384 MB / 0.8112 GB, free: 15.44 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/0.2449, allocations: 11.95 kB / 0.8112 GB, free: 15.43 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007334/0.2456, allocations: 0.5504 MB / 0.8118 GB, free: 14.86 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001221/0.2458, allocations: 128.9 kB / 0.8119 GB, free: 14.71 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.782e-05/0.2458, allocations: 8 kB / 0.8119 GB, free: 14.7 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001891/0.246, allocations: 7.984 kB / 0.8119 GB, free: 14.7 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.985e-05/0.2461, allocations: 15.98 kB / 0.8119 GB, free: 14.68 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.701e-05/0.2461, allocations: 12 kB / 0.8119 GB, free: 14.67 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0001894/0.2463, allocations: 211 kB / 0.8121 GB, free: 14.46 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2463, allocations: 0 / 0.8121 GB, free: 14.46 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.000429/0.2467, allocations: 96 kB / 0.8122 GB, free: 14.37 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.00101/0.2477, allocations: 1.105 MB / 0.8133 GB, free: 13.23 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.0008001/0.2486, allocations: 0.6095 MB / 0.8139 GB, free: 12.59 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.2486, allocations: 8.188 kB / 0.8139 GB, free: 12.58 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0004607/0.249, allocations: 468 kB / 0.8143 GB, free: 12.08 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004837/0.2495, allocations: 83.69 kB / 0.8144 GB, free: 12 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003881/0.2534, allocations: 3.367 MB / 0.8177 GB, free: 8.473 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003792/0.2538, allocations: 0.8311 MB / 0.8185 GB, free: 7.617 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0001892/0.254, allocations: 58.94 kB / 0.8186 GB, free: 7.559 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001375/0.2542, allocations: 111.3 kB / 0.8187 GB, free: 7.449 MB / 0.6387 GB Notification: Performance of SimCode: time 3.51e-07/0.2542, allocations: 0 / 0.8187 GB, free: 7.449 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03184/0.286, allocations: 7.67 MB / 0.8262 GB, free: 15.92 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.613/9.899, allocations: 15 kB / 0.8262 GB, free: 15.91 MB / 0.6544 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)