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.001861/0.001861, allocations: 112.5 kB / 15.73 MB, free: 68 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.002032/0.002032, allocations: 192.6 kB / 16.66 MB, free: 6.586 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002458/0.002458, allocations: 286.4 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.029/1.029, allocations: 169.3 MB / 0.4983 GB, free: 13.77 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002715/0.002715, allocations: 103.5 kB / 0.681 GB, free: 15.97 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1613/0.1641, allocations: 86.96 MB / 0.7659 GB, free: 8.93 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007731/0.1718, allocations: 5.459 MB / 0.7712 GB, free: 3.445 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004279/0.1761, allocations: 2.623 MB / 0.7738 GB, free: 0.8125 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000211/0.1764, allocations: 19.88 kB / 0.7738 GB, free: 0.793 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001815/0.1782, allocations: 0.6757 MB / 0.7745 GB, free: 120 kB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.3103/0.4885, allocations: 400.3 kB / 0.7748 GB, free: 8.367 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001/0.4896, allocations: 392.3 kB / 0.7752 GB, free: 8.367 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0009851/0.4906, allocations: 0.9516 MB / 0.7762 GB, free: 8.363 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006152/0.4912, allocations: 476.6 kB / 0.7766 GB, free: 8.348 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004335/0.4916, allocations: 365.9 kB / 0.777 GB, free: 8.324 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005181/0.4922, allocations: 405.5 kB / 0.7773 GB, free: 8.258 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.976e-05/0.4923, allocations: 49.78 kB / 0.7774 GB, free: 8.258 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006366/0.4929, allocations: 363.7 kB / 0.7777 GB, free: 8.25 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002487/0.4932, allocations: 247 kB / 0.778 GB, free: 8.223 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003248/0.4935, allocations: 345.8 kB / 0.7783 GB, free: 8.121 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00104/0.4945, allocations: 0.9809 MB / 0.7793 GB, free: 7.973 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.4945, allocations: 0 / 0.7793 GB, free: 7.973 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.082e-06/0.4946, allocations: 4.531 kB / 0.7793 GB, free: 7.973 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.592e-05/0.4946, allocations: 0 / 0.7793 GB, free: 7.973 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.001336/0.4959, allocations: 0.9887 MB / 0.7802 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.496, allocations: 9.219 kB / 0.7802 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.326e-05/0.4961, allocations: 98.75 kB / 0.7803 GB, free: 7.312 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001318/0.4974, allocations: 197.4 kB / 0.7805 GB, free: 7.273 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006477/0.498, allocations: 0.5249 MB / 0.781 GB, free: 6.988 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.236e-05/0.4981, allocations: 35.44 kB / 0.7811 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001493/0.4982, allocations: 54.91 kB / 0.7811 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001022/0.4993, allocations: 0.8295 MB / 0.7819 GB, free: 6.734 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.815e-05/0.4993, allocations: 10.7 kB / 0.7819 GB, free: 6.73 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.019e-05/0.4994, allocations: 25.39 kB / 0.782 GB, free: 6.73 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000185/0.4996, allocations: 69.41 kB / 0.782 GB, free: 6.73 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008061/0.5004, allocations: 0.5665 MB / 0.7826 GB, free: 6.723 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003679/0.5041, allocations: 4.571 MB / 0.787 GB, free: 19.01 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004198/0.5045, allocations: 297.5 kB / 0.7873 GB, free: 18.89 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002741/0.5048, allocations: 232 kB / 0.7876 GB, free: 18.8 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.06e-05/0.5048, allocations: 2.469 kB / 0.7876 GB, free: 18.8 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.357e-05/0.5049, allocations: 34.27 kB / 0.7876 GB, free: 18.76 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=33): time 2.645e-06/0.5049, allocations: 4 kB / 0.7876 GB, free: 18.75 MB / 0.5762 GB Notification: Performance of matching and sorting (n=40): time 0.005171/0.51, allocations: 2.643 MB / 0.7902 GB, free: 17.36 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.077e-05/0.5101, allocations: 55.47 kB / 0.7902 GB, free: 17.3 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004227/0.5105, allocations: 464.8 kB / 0.7907 GB, free: 17.07 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.171e-05/0.5106, allocations: 33.14 kB / 0.7907 GB, free: 17.04 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001882/0.5108, allocations: 346.2 kB / 0.791 GB, free: 16.76 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.514e-05/0.5109, allocations: 155.8 kB / 0.7912 GB, free: 16.64 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001521/0.511, allocations: 109.7 kB / 0.7913 GB, free: 16.57 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001667/0.5112, allocations: 357.8 kB / 0.7916 GB, free: 16.24 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003391/0.5115, allocations: 239.3 kB / 0.7919 GB, free: 16.16 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003856/0.5119, allocations: 404.6 kB / 0.7922 GB, free: 15.87 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007074/0.5126, allocations: 0.6799 MB / 0.7929 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.5127, allocations: 1.562 kB / 0.7929 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00149/0.5142, allocations: 0.9242 MB / 0.7938 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.5142, allocations: 5.188 kB / 0.7938 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.5142, allocations: 5.625 kB / 0.7938 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007296/0.5149, allocations: 231.5 kB / 0.794 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004645/0.5154, allocations: 112.5 kB / 0.7941 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005/0.5204, allocations: 5.338 MB / 0.7994 GB, free: 10.31 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004265/0.5209, allocations: 32.08 kB / 0.7994 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.043e-05/0.5209, allocations: 25.81 kB / 0.7994 GB, free: 10.3 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.0002995/0.5212, allocations: 227.7 kB / 0.7996 GB, free: 10.12 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.464e-05/0.5213, allocations: 62.94 kB / 0.7997 GB, free: 10.09 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001607/0.5229, allocations: 0.7696 MB / 0.8004 GB, free: 9.75 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.299e-06/0.5229, allocations: 8.062 kB / 0.8004 GB, free: 9.746 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.523, allocations: 3.484 kB / 0.8005 GB, free: 9.746 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.523, allocations: 3.141 kB / 0.8005 GB, free: 9.746 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002557/0.5255, allocations: 1.493 MB / 0.8019 GB, free: 8.977 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.5255, allocations: 1.469 kB / 0.8019 GB, free: 8.977 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003836/0.5259, allocations: 67.67 kB / 0.802 GB, free: 8.973 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007124/0.5267, allocations: 209.3 kB / 0.8022 GB, free: 8.906 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.482e-05/0.5267, allocations: 8.438 kB / 0.8022 GB, free: 8.902 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00574/0.5324, allocations: 5.284 MB / 0.8073 GB, free: 4.266 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.5325, allocations: 1.344 kB / 0.8073 GB, free: 4.266 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001906/0.5344, allocations: 1.136 MB / 0.8085 GB, free: 3.684 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002454/0.5346, allocations: 178.6 kB / 0.8086 GB, free: 3.539 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.815e-05/0.5347, allocations: 17.58 kB / 0.8086 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003311/0.5351, allocations: 23.7 kB / 0.8087 GB, free: 3.523 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.783e-05/0.5352, allocations: 31.31 kB / 0.8087 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.246e-05/0.5352, allocations: 14.58 kB / 0.8087 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003788/0.5356, allocations: 315.5 kB / 0.809 GB, free: 3.363 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5356, allocations: 0 / 0.809 GB, free: 3.363 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0006768/0.5363, allocations: 166.4 kB / 0.8092 GB, free: 3.348 MB / 0.5762 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.002193/0.5385, allocations: 1.706 MB / 0.8108 GB, free: 2.207 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001664/0.5401, allocations: 1.014 MB / 0.8118 GB, free: 1.625 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.5402, allocations: 0 / 0.8118 GB, free: 1.625 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001036/0.5412, allocations: 0.6822 MB / 0.8125 GB, free: 1.164 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008928/0.5421, allocations: 179.9 kB / 0.8127 GB, free: 1.109 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008056/0.5502, allocations: 5.634 MB / 0.8182 GB, free: 13.79 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006079/0.5508, allocations: 0.9447 MB / 0.8191 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003686/0.5512, allocations: 116.5 kB / 0.8192 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002813/0.5515, allocations: 206 kB / 0.8194 GB, free: 12.89 MB / 0.5919 GB Notification: Performance of SimCode: time 4.91e-07/0.5515, allocations: 0 / 0.8194 GB, free: 12.89 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04723/0.5987, allocations: 14.13 MB / 0.8332 GB, free: 7.297 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.49, allocations: 6.906 kB / 0.8332 GB, free: 7.297 MB / 0.5919 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)