Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.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.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL",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.004402/0.004402, allocations: 100.7 kB / 15.73 MB, free: 6.062 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.001251/0.001251, allocations: 193.8 kB / 16.68 MB, free: 5.973 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.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002472/0.002472, allocations: 271.2 kB / 290.8 MB, free: 1.773 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.049/1.049, allocations: 178.6 MB / 0.5074 GB, free: 4.48 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002649/0.002649, allocations: 98.69 kB / 0.6943 GB, free: 3.578 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4159/0.4185, allocations: 89.14 MB / 0.7813 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.007251/0.4258, allocations: 5.538 MB / 0.7867 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004293/0.4301, allocations: 2.638 MB / 0.7893 GB, free: 8.262 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003128/0.4305, allocations: 26.12 kB / 0.7893 GB, free: 8.25 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001792/0.4323, allocations: 0.6752 MB / 0.79 GB, free: 7.84 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0009977/0.4333, allocations: 409.4 kB / 0.7904 GB, free: 7.602 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001088/0.4344, allocations: 412.5 kB / 0.7908 GB, free: 7.406 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001225/0.4356, allocations: 0.9587 MB / 0.7917 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006409/0.4363, allocations: 470.9 kB / 0.7922 GB, free: 6.777 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004875/0.4368, allocations: 376 kB / 0.7925 GB, free: 6.617 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005427/0.4373, allocations: 402.8 kB / 0.7929 GB, free: 6.449 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 7.989e-05/0.4374, allocations: 51.53 kB / 0.793 GB, free: 6.445 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007086/0.4381, allocations: 360.4 kB / 0.7933 GB, free: 6.328 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002683/0.4384, allocations: 251 kB / 0.7935 GB, free: 6.227 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003745/0.4388, allocations: 349.7 kB / 0.7939 GB, free: 6.023 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001211/0.44, allocations: 0.9731 MB / 0.7948 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.44, allocations: 0 / 0.7948 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of FrontEnd: time 4.197e-06/0.44, allocations: 0.7969 kB / 0.7948 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.141e-05/0.4401, allocations: 3.938 kB / 0.7948 GB, free: 5.684 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001629/0.4417, allocations: 1.002 MB / 0.7958 GB, free: 4.922 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.4417, allocations: 10.03 kB / 0.7958 GB, free: 4.922 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001214/0.4419, allocations: 99.31 kB / 0.7959 GB, free: 4.836 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001382/0.4432, allocations: 200 kB / 0.7961 GB, free: 4.742 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007916/0.444, allocations: 0.5238 MB / 0.7966 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.528e-05/0.4441, allocations: 40.98 kB / 0.7967 GB, free: 4.297 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001471/0.4442, allocations: 54.17 kB / 0.7967 GB, free: 4.277 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.4455, allocations: 0.8323 MB / 0.7975 GB, free: 3.668 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.313e-05/0.4455, allocations: 2.875 kB / 0.7975 GB, free: 3.668 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.113e-05/0.4456, allocations: 27.27 kB / 0.7976 GB, free: 3.648 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001797/0.4457, allocations: 69.38 kB / 0.7976 GB, free: 3.625 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000892/0.4466, allocations: 0.5684 MB / 0.7982 GB, free: 3.344 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004597/0.4512, allocations: 4.577 MB / 0.8026 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004608/0.4517, allocations: 299.9 kB / 0.8029 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003161/0.452, allocations: 222.7 kB / 0.8031 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.867e-05/0.4521, allocations: 3.656 kB / 0.8031 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.783e-05/0.4521, allocations: 41.16 kB / 0.8032 GB, free: 14.74 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=33): time 1.583e-06/0.4521, allocations: 0 / 0.8032 GB, free: 14.74 MB / 0.5762 GB Notification: Performance of matching and sorting (n=40): time 0.005674/0.4578, allocations: 2.646 MB / 0.8058 GB, free: 13.02 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.461e-05/0.4579, allocations: 60.16 kB / 0.8058 GB, free: 12.95 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005104/0.4584, allocations: 468.8 kB / 0.8063 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.01e-05/0.4584, allocations: 32.14 kB / 0.8063 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002477/0.4587, allocations: 348.7 kB / 0.8066 GB, free: 12.31 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001279/0.4588, allocations: 148.8 kB / 0.8068 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001715/0.459, allocations: 101.9 kB / 0.8069 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001762/0.4592, allocations: 368 kB / 0.8072 GB, free: 11.76 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003524/0.4596, allocations: 245.2 kB / 0.8075 GB, free: 11.64 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004732/0.46, allocations: 405.1 kB / 0.8078 GB, free: 11.3 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008784/0.4609, allocations: 0.6804 MB / 0.8085 GB, free: 10.82 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.4609, allocations: 2.656 kB / 0.8085 GB, free: 10.82 MB / 0.5762 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001655/0.4626, allocations: 0.928 MB / 0.8094 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.4626, allocations: 7.906 kB / 0.8094 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.4626, allocations: 5.281 kB / 0.8094 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008094/0.4635, allocations: 226.6 kB / 0.8097 GB, free: 10.18 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005008/0.464, allocations: 112.8 kB / 0.8098 GB, free: 10.15 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005401/0.4694, allocations: 5.34 MB / 0.815 GB, free: 5.16 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004403/0.4698, allocations: 30.25 kB / 0.815 GB, free: 5.145 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.475e-05/0.4699, allocations: 23.5 kB / 0.815 GB, free: 5.141 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * 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 {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003188/0.4702, allocations: 232.7 kB / 0.8152 GB, free: 4.949 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.4703, allocations: 63.97 kB / 0.8153 GB, free: 4.914 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001538/0.4719, allocations: 0.7735 MB / 0.8161 GB, free: 4.438 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.4719, allocations: 4.188 kB / 0.8161 GB, free: 4.438 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.4719, allocations: 3.438 kB / 0.8161 GB, free: 4.438 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.4719, allocations: 0 / 0.8161 GB, free: 4.438 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002413/0.4743, allocations: 1.499 MB / 0.8175 GB, free: 3.391 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.4743, allocations: 2.75 kB / 0.8175 GB, free: 3.391 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003693/0.4747, allocations: 76.84 kB / 0.8176 GB, free: 3.363 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006832/0.4754, allocations: 201.8 kB / 0.8178 GB, free: 3.254 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.474e-05/0.4754, allocations: 12.66 kB / 0.8178 GB, free: 3.246 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005101/0.4806, allocations: 5.278 MB / 0.823 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.4806, allocations: 1.125 kB / 0.823 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001776/0.4824, allocations: 1.137 MB / 0.8241 GB, free: 13.56 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002258/0.4826, allocations: 182.5 kB / 0.8243 GB, free: 13.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.303e-05/0.4827, allocations: 13.47 kB / 0.8243 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003269/0.483, allocations: 22.53 kB / 0.8243 GB, free: 13.38 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.418e-05/0.4831, allocations: 35.98 kB / 0.8243 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-05/0.4831, allocations: 9.406 kB / 0.8243 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003453/0.4835, allocations: 313.4 kB / 0.8246 GB, free: 13.17 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4835, allocations: 0 / 0.8246 GB, free: 13.17 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0006337/0.4841, allocations: 171.3 kB / 0.8248 GB, free: 13.15 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * Single equations (assignments): 27 * 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 {(2,2,100.0%), (2,4,100.0%), (2,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.002099/0.4862, allocations: 1.705 MB / 0.8265 GB, free: 11.87 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001627/0.4879, allocations: 1.008 MB / 0.8274 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.4879, allocations: 0 / 0.8274 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0009986/0.4889, allocations: 0.6913 MB / 0.8281 GB, free: 10.66 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008711/0.4898, allocations: 171 kB / 0.8283 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007717/0.4975, allocations: 5.664 MB / 0.8338 GB, free: 6.629 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005818/0.4981, allocations: 0.9452 MB / 0.8347 GB, free: 5.812 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003395/0.4985, allocations: 114.9 kB / 0.8348 GB, free: 5.762 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002771/0.4987, allocations: 212.7 kB / 0.835 GB, free: 5.582 MB / 0.5919 GB Notification: Performance of SimCode: time 4.81e-07/0.4987, allocations: 1.062 kB / 0.835 GB, free: 5.582 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04674/0.5455, allocations: 14.22 MB / 0.8489 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/11.33, allocations: 5.422 kB / 0.8489 GB, free: 7.945 MB / 0.6075 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1)