Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.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.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_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.005229/0.005229, allocations: 102.9 kB / 15.74 MB, free: 6.453 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.00158/0.00158, allocations: 195.8 kB / 16.67 MB, free: 6.352 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002476/0.002476, allocations: 283.1 kB / 290.8 MB, free: 1.938 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.067/1.067, allocations: 178.6 MB / 0.5074 GB, free: 4.484 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002726/0.002726, allocations: 103.8 kB / 0.6943 GB, free: 3.629 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4302/0.4329, allocations: 89.14 MB / 0.7813 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007261/0.4402, allocations: 5.463 MB / 0.7867 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004601/0.4449, allocations: 2.61 MB / 0.7892 GB, free: 8.332 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003421/0.4452, allocations: 25.75 kB / 0.7893 GB, free: 8.32 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001848/0.4471, allocations: 0.686 MB / 0.7899 GB, free: 7.902 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0009356/0.4481, allocations: 405.7 kB / 0.7903 GB, free: 7.668 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001035/0.4491, allocations: 390.8 kB / 0.7907 GB, free: 7.48 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001268/0.4504, allocations: 0.9561 MB / 0.7916 GB, free: 7.047 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006516/0.451, allocations: 463.4 kB / 0.7921 GB, free: 6.859 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005203/0.4516, allocations: 366.2 kB / 0.7924 GB, free: 6.707 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005603/0.4521, allocations: 406.5 kB / 0.7928 GB, free: 6.535 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.222e-05/0.4522, allocations: 47.59 kB / 0.7928 GB, free: 6.535 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007069/0.4529, allocations: 359.5 kB / 0.7932 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000287/0.4532, allocations: 247.7 kB / 0.7934 GB, free: 6.32 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004031/0.4537, allocations: 358.1 kB / 0.7938 GB, free: 6.109 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001283/0.4549, allocations: 0.9659 MB / 0.7947 GB, free: 5.777 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.455, allocations: 5.5 kB / 0.7947 GB, free: 5.773 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.673e-06/0.455, allocations: 0 / 0.7947 GB, free: 5.773 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.29e-05/0.455, allocations: 0 / 0.7947 GB, free: 5.773 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.001704/0.4567, allocations: 0.9943 MB / 0.7957 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.4567, allocations: 10.09 kB / 0.7957 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001348/0.4569, allocations: 97.27 kB / 0.7958 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001396/0.4583, allocations: 196.6 kB / 0.796 GB, free: 4.875 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007925/0.4591, allocations: 0.5261 MB / 0.7965 GB, free: 4.441 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.777e-05/0.4591, allocations: 34.09 kB / 0.7965 GB, free: 4.43 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001507/0.4593, allocations: 58.81 kB / 0.7966 GB, free: 4.406 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00123/0.4605, allocations: 0.8275 MB / 0.7974 GB, free: 3.801 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.006e-05/0.4606, allocations: 10.5 kB / 0.7974 GB, free: 3.793 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.62e-05/0.4607, allocations: 23.16 kB / 0.7974 GB, free: 3.777 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001851/0.4609, allocations: 62.7 kB / 0.7975 GB, free: 3.762 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000944/0.4618, allocations: 0.5709 MB / 0.798 GB, free: 3.477 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004715/0.4665, allocations: 4.589 MB / 0.8025 GB, free: 15.19 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004763/0.467, allocations: 288 kB / 0.8028 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003348/0.4674, allocations: 225.7 kB / 0.803 GB, free: 14.92 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.936e-05/0.4674, allocations: 3.844 kB / 0.803 GB, free: 14.92 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.294e-05/0.4674, allocations: 41.56 kB / 0.803 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=33): time 1.633e-06/0.4675, allocations: 0 / 0.803 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of matching and sorting (n=40): time 0.005858/0.4733, allocations: 2.642 MB / 0.8056 GB, free: 13.15 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.231e-05/0.4734, allocations: 58.8 kB / 0.8057 GB, free: 13.08 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005181/0.4739, allocations: 458.2 kB / 0.8061 GB, free: 12.8 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.077e-05/0.474, allocations: 31.23 kB / 0.8062 GB, free: 12.76 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002587/0.4742, allocations: 360.6 kB / 0.8065 GB, free: 12.44 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001251/0.4744, allocations: 145.5 kB / 0.8066 GB, free: 12.31 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001756/0.4745, allocations: 109.3 kB / 0.8067 GB, free: 12.24 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001732/0.4747, allocations: 360.2 kB / 0.8071 GB, free: 11.89 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003713/0.4751, allocations: 239.4 kB / 0.8073 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005204/0.4756, allocations: 406.3 kB / 0.8077 GB, free: 11.44 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000915/0.4765, allocations: 0.6732 MB / 0.8084 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.4766, allocations: 7.688 kB / 0.8084 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001684/0.4782, allocations: 0.9181 MB / 0.8093 GB, free: 10.45 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.4783, allocations: 7.312 kB / 0.8093 GB, free: 10.45 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.4783, allocations: 5.344 kB / 0.8093 GB, free: 10.45 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007888/0.4791, allocations: 231.3 kB / 0.8095 GB, free: 10.32 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004993/0.4796, allocations: 117 kB / 0.8096 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005578/0.4852, allocations: 5.329 MB / 0.8148 GB, free: 5.312 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004818/0.4857, allocations: 38.44 kB / 0.8148 GB, free: 5.289 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.722e-05/0.4857, allocations: 22.44 kB / 0.8149 GB, free: 5.285 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.0003266/0.4861, allocations: 223.8 kB / 0.8151 GB, free: 5.102 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.4862, allocations: 63.88 kB / 0.8151 GB, free: 5.066 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001574/0.4878, allocations: 0.7737 MB / 0.8159 GB, free: 4.59 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.4878, allocations: 4.156 kB / 0.8159 GB, free: 4.59 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.752e-06/0.4878, allocations: 2.906 kB / 0.8159 GB, free: 4.59 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.4878, allocations: 7.922 kB / 0.8159 GB, free: 4.582 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002517/0.4903, allocations: 1.503 MB / 0.8174 GB, free: 3.531 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/0.4904, allocations: 6.406 kB / 0.8174 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003695/0.4907, allocations: 61.14 kB / 0.8174 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007051/0.4914, allocations: 210 kB / 0.8176 GB, free: 3.398 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.503e-05/0.4915, allocations: 12.81 kB / 0.8177 GB, free: 3.391 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005285/0.4968, allocations: 5.281 MB / 0.8228 GB, free: 14.43 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.4968, allocations: 2.719 kB / 0.8228 GB, free: 14.43 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001829/0.4986, allocations: 1.136 MB / 0.8239 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002371/0.4989, allocations: 182.6 kB / 0.8241 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.483e-05/0.499, allocations: 8.719 kB / 0.8241 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003355/0.4993, allocations: 22.56 kB / 0.8241 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.543e-05/0.4994, allocations: 40.77 kB / 0.8242 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.917e-05/0.4994, allocations: 8.719 kB / 0.8242 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003578/0.4998, allocations: 319.1 kB / 0.8245 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4998, allocations: 0 / 0.8245 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0006596/0.5005, allocations: 167.2 kB / 0.8246 GB, free: 13.29 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.002155/0.5026, allocations: 1.698 MB / 0.8263 GB, free: 12.01 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001668/0.5043, allocations: 1.013 MB / 0.8273 GB, free: 11.33 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.5043, allocations: 0 / 0.8273 GB, free: 11.33 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.5054, allocations: 0.6826 MB / 0.828 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008955/0.5063, allocations: 183.7 kB / 0.8281 GB, free: 10.71 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00811/0.5144, allocations: 5.621 MB / 0.8336 GB, free: 6.793 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006225/0.515, allocations: 0.9445 MB / 0.8345 GB, free: 5.977 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003861/0.5154, allocations: 114.3 kB / 0.8346 GB, free: 5.926 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000294/0.5157, allocations: 212.7 kB / 0.8349 GB, free: 5.746 MB / 0.5919 GB Notification: Performance of SimCode: time 4.2e-07/0.5157, allocations: 0 / 0.8349 GB, free: 5.746 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05218/0.5679, allocations: 14.13 MB / 0.8486 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/11.36, allocations: 18.19 kB / 0.8487 GB, free: 8.309 MB / 0.6075 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.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_OnePhase_Lines_Examples_ACLine_RL.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1)