Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 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.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="BuildingSystems_BuildingSystems_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.00156/0.00156, 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.001718/0.001718, allocations: 197.4 kB / 16.53 MB, free: 6.664 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.467/1.467, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002655/0.002655, allocations: 290.7 kB / 290.7 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.192/1.192, allocations: 178.6 MB / 0.5073 GB, free: 4.594 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002656/0.002656, allocations: 98.95 kB / 0.6065 GB, free: 24.75 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1726/0.1753, allocations: 89.15 MB / 0.6936 GB, free: 4.238 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.RCModel): time 0.007012/0.1824, allocations: 4.333 MB / 0.6978 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003312/0.1857, allocations: 1.868 MB / 0.6997 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002645/0.186, allocations: 8 kB / 0.6997 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001763/0.1878, allocations: 0.5972 MB / 0.7002 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0007337/0.1886, allocations: 258.6 kB / 0.7005 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007693/0.1893, allocations: 259.4 kB / 0.7007 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0008492/0.1902, allocations: 0.6151 MB / 0.7013 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008417/0.191, allocations: 458.8 kB / 0.7018 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004135/0.1915, allocations: 251.2 kB / 0.702 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006127/0.1921, allocations: 267 kB / 0.7023 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.86e-05/0.1922, allocations: 36 kB / 0.7023 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000576/0.1928, allocations: 255.5 kB / 0.7026 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000216/0.193, allocations: 147.5 kB / 0.7027 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003491/0.1934, allocations: 223 kB / 0.7029 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0009455/0.1943, allocations: 0.6035 MB / 0.7035 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.1943, allocations: 0 / 0.7035 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of FrontEnd: time 9.82e-07/0.1943, allocations: 0 / 0.7035 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.92e-05/0.1944, allocations: 0 / 0.7035 GB, free: 10.08 MB / 0.4981 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.00159/0.196, allocations: 0.7174 MB / 0.7042 GB, free: 9.316 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.196, allocations: 12.03 kB / 0.7042 GB, free: 9.305 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001025/0.1961, allocations: 74.72 kB / 0.7043 GB, free: 9.223 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001069/0.1972, allocations: 160.2 kB / 0.7044 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004993/0.1977, allocations: 318.6 kB / 0.7047 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.742e-05/0.1978, allocations: 29.38 kB / 0.7048 GB, free: 8.684 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.97e-05/0.1979, allocations: 32.36 kB / 0.7048 GB, free: 8.652 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009013/0.1988, allocations: 0.5393 MB / 0.7053 GB, free: 8.082 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.1988, allocations: 0 / 0.7053 GB, free: 8.082 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.502e-05/0.1988, allocations: 20 kB / 0.7053 GB, free: 8.062 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.131e-05/0.1989, allocations: 28.58 kB / 0.7054 GB, free: 8.035 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006413/0.1995, allocations: 386.3 kB / 0.7057 GB, free: 7.652 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002857/0.2024, allocations: 2.415 MB / 0.7081 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005715/0.203, allocations: 276.2 kB / 0.7084 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001926/0.2032, allocations: 108.8 kB / 0.7085 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.511e-05/0.2032, allocations: 4 kB / 0.7085 GB, free: 4.629 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.023e-05/0.2033, allocations: 34.56 kB / 0.7085 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=20): time 1.854e-06/0.2033, allocations: 0 / 0.7085 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of matching and sorting (n=23): time 0.002443/0.2057, allocations: 1.12 MB / 0.7096 GB, free: 3.367 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.472e-05/0.2058, allocations: 55.41 kB / 0.7096 GB, free: 3.301 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003591/0.2062, allocations: 308.4 kB / 0.7099 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.05e-05/0.2062, allocations: 29.7 kB / 0.71 GB, free: 2.957 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001992/0.2064, allocations: 231.5 kB / 0.7102 GB, free: 2.727 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 8.635e-05/0.2065, allocations: 82.83 kB / 0.7103 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.2066, allocations: 61.94 kB / 0.7103 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001804/0.2068, allocations: 342.8 kB / 0.7107 GB, free: 2.234 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001933/0.207, allocations: 104.6 kB / 0.7108 GB, free: 2.133 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002649/0.2073, allocations: 191.7 kB / 0.7109 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004579/0.2077, allocations: 326 kB / 0.7112 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2077, allocations: 0 / 0.7112 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007746/0.2085, allocations: 447.2 kB / 0.7117 GB, free: 1.105 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.2085, allocations: 4 kB / 0.7117 GB, free: 1.102 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.2086, allocations: 4 kB / 0.7117 GB, free: 1.098 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003732/0.2089, allocations: 102.5 kB / 0.7118 GB, free: 0.9883 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002874/0.2092, allocations: 59.91 kB / 0.7118 GB, free: 0.9297 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003862/0.2131, allocations: 4.383 MB / 0.7161 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002554/0.2134, allocations: 15.98 kB / 0.7161 GB, free: 12.11 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.691e-05/0.2134, allocations: 12 kB / 0.7161 GB, free: 12.09 MB / 0.5137 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.0002361/0.2137, allocations: 181.8 kB / 0.7163 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.733e-05/0.2137, allocations: 31.8 kB / 0.7163 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.46e-05/0.2138, allocations: 46.3 kB / 0.7164 GB, free: 11.83 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.2138, allocations: 0 / 0.7164 GB, free: 11.83 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-05/0.2139, allocations: 8 kB / 0.7164 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.2139, allocations: 0 / 0.7164 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005146/0.2144, allocations: 397.4 kB / 0.7168 GB, free: 11.39 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.2144, allocations: 7.938 kB / 0.7168 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000204/0.2146, allocations: 35.97 kB / 0.7168 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003184/0.2149, allocations: 94.44 kB / 0.7169 GB, free: 11.24 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.783e-05/0.215, allocations: 4 kB / 0.7169 GB, free: 11.24 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003826/0.2188, allocations: 4.379 MB / 0.7212 GB, free: 6.438 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.672e-06/0.2188, allocations: 11.88 kB / 0.7212 GB, free: 6.426 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009167/0.2197, allocations: 0.5578 MB / 0.7217 GB, free: 5.844 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001566/0.2199, allocations: 124.8 kB / 0.7219 GB, free: 5.703 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.669e-05/0.22, allocations: 0 / 0.7219 GB, free: 5.703 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002169/0.2202, allocations: 15.98 kB / 0.7219 GB, free: 5.688 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.24e-05/0.2203, allocations: 23.98 kB / 0.7219 GB, free: 5.664 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.437e-05/0.2203, allocations: 4.094 kB / 0.7219 GB, free: 5.66 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002419/0.2205, allocations: 219 kB / 0.7221 GB, free: 5.449 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2205, allocations: 3.938 kB / 0.7221 GB, free: 5.445 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.000522/0.2211, allocations: 96 kB / 0.7222 GB, free: 5.352 MB / 0.5137 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.001265/0.2223, allocations: 1.095 MB / 0.7233 GB, free: 4.223 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001003/0.2233, allocations: 0.6295 MB / 0.7239 GB, free: 3.555 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.2234, allocations: 3.938 kB / 0.7239 GB, free: 3.551 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0005772/0.2239, allocations: 475.6 kB / 0.7244 GB, free: 3.051 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005044/0.2245, allocations: 74.7 kB / 0.7244 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005035/0.2295, allocations: 3.388 MB / 0.7277 GB, free: 15.43 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005424/0.2301, allocations: 0.835 MB / 0.7285 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0002362/0.2303, allocations: 58.94 kB / 0.7286 GB, free: 14.51 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001669/0.2305, allocations: 115.4 kB / 0.7287 GB, free: 14.4 MB / 0.5294 GB Notification: Performance of SimCode: time 4.11e-07/0.2305, allocations: 0 / 0.7287 GB, free: 14.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04164/0.2721, allocations: 7.662 MB / 0.7362 GB, free: 6.902 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.743/10.01, allocations: 11.66 kB / 0.7362 GB, free: 6.895 MB / 0.5294 GB (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.006 BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_RCModel.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1)