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.004762/0.004762, allocations: 96.72 kB / 15.73 MB, free: 6 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.0012/0.0012, allocations: 185.7 kB / 16.67 MB, free: 5.93 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.24/1.24, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002005/0.002005, allocations: 282.6 kB / 290.8 MB, free: 1.902 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8935/0.8935, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001698/0.001698, allocations: 103.8 kB / 0.681 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1361, allocations: 86.97 MB / 0.7659 GB, free: 8.914 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.006413/0.1425, allocations: 5.536 MB / 0.7713 GB, free: 3.355 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00373/0.1463, allocations: 2.634 MB / 0.7739 GB, free: 0.7109 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003186/0.1466, allocations: 23.81 kB / 0.7739 GB, free: 0.6875 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.00159/0.1482, allocations: 0.6872 MB / 0.7746 GB, free: 0 / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.2676/0.4158, allocations: 421.8 kB / 0.775 GB, free: 8.367 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008966/0.4168, allocations: 409.6 kB / 0.7754 GB, free: 8.363 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.00083/0.4176, allocations: 0.9605 MB / 0.7763 GB, free: 8.359 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005402/0.4181, allocations: 464.9 kB / 0.7768 GB, free: 8.344 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003889/0.4185, allocations: 381.3 kB / 0.7771 GB, free: 8.316 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004317/0.419, allocations: 407.9 kB / 0.7775 GB, free: 8.25 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 7.25e-05/0.4191, allocations: 47.38 kB / 0.7776 GB, free: 8.25 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005056/0.4196, allocations: 365.9 kB / 0.7779 GB, free: 8.242 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002178/0.4198, allocations: 239.7 kB / 0.7781 GB, free: 8.219 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002883/0.4201, allocations: 350.9 kB / 0.7785 GB, free: 8.113 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0008772/0.421, allocations: 0.9854 MB / 0.7794 GB, free: 7.961 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.421, allocations: 0 / 0.7794 GB, free: 7.961 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.242e-06/0.421, allocations: 4 kB / 0.7794 GB, free: 7.957 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.455e-05/0.421, allocations: 1.375 kB / 0.7794 GB, free: 7.957 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.001284/0.4223, allocations: 1.001 MB / 0.7804 GB, free: 7.324 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.052e-05/0.4224, allocations: 10 kB / 0.7804 GB, free: 7.324 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.264e-05/0.4225, allocations: 98.02 kB / 0.7805 GB, free: 7.285 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001283/0.4237, allocations: 202 kB / 0.7807 GB, free: 7.242 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006659/0.4244, allocations: 0.5229 MB / 0.7812 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.714e-05/0.4245, allocations: 38.67 kB / 0.7813 GB, free: 6.957 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001353/0.4246, allocations: 58.83 kB / 0.7813 GB, free: 6.957 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001007/0.4256, allocations: 0.8274 MB / 0.7821 GB, free: 6.711 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.333e-05/0.4256, allocations: 6.578 kB / 0.7821 GB, free: 6.707 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.559e-05/0.4257, allocations: 24.94 kB / 0.7821 GB, free: 6.707 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001773/0.4259, allocations: 63.94 kB / 0.7822 GB, free: 6.707 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007539/0.4267, allocations: 0.5747 MB / 0.7828 GB, free: 6.684 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003382/0.43, allocations: 4.574 MB / 0.7872 GB, free: 18.9 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003829/0.4304, allocations: 294.6 kB / 0.7875 GB, free: 18.78 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002622/0.4307, allocations: 224.5 kB / 0.7877 GB, free: 18.7 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.312e-05/0.4307, allocations: 3.125 kB / 0.7877 GB, free: 18.7 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.091e-05/0.4308, allocations: 38.58 kB / 0.7878 GB, free: 18.65 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=33): time 1.422e-06/0.4308, allocations: 4 kB / 0.7878 GB, free: 18.65 MB / 0.5762 GB Notification: Performance of matching and sorting (n=40): time 0.004758/0.4355, allocations: 2.639 MB / 0.7904 GB, free: 17.26 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.977e-05/0.4356, allocations: 57.31 kB / 0.7904 GB, free: 17.2 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003906/0.436, allocations: 468.7 kB / 0.7909 GB, free: 16.96 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.533e-05/0.436, allocations: 36.44 kB / 0.7909 GB, free: 16.93 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001498/0.4362, allocations: 349.4 kB / 0.7912 GB, free: 16.65 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.836e-05/0.4363, allocations: 152.1 kB / 0.7914 GB, free: 16.53 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000134/0.4364, allocations: 104.4 kB / 0.7915 GB, free: 16.47 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001154/0.4365, allocations: 364.7 kB / 0.7918 GB, free: 16.13 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003075/0.4368, allocations: 241.9 kB / 0.792 GB, free: 16.05 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003586/0.4372, allocations: 406 kB / 0.7924 GB, free: 15.76 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006495/0.4379, allocations: 0.6759 MB / 0.7931 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.4379, allocations: 1.688 kB / 0.7931 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001379/0.4393, allocations: 0.9238 MB / 0.794 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.4393, allocations: 11 kB / 0.794 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.4393, allocations: 5.75 kB / 0.794 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007028/0.44, allocations: 224.2 kB / 0.7942 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004558/0.4405, allocations: 117.2 kB / 0.7943 GB, free: 14.86 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004242/0.4447, allocations: 5.343 MB / 0.7996 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003997/0.4451, allocations: 29.14 kB / 0.7996 GB, free: 10.19 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.247e-05/0.4452, allocations: 22.84 kB / 0.7996 GB, free: 10.18 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.0002383/0.4454, allocations: 228.2 kB / 0.7998 GB, free: 10.01 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.762e-05/0.4455, allocations: 68.44 kB / 0.7999 GB, free: 9.973 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001439/0.447, allocations: 0.764 MB / 0.8006 GB, free: 9.641 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.447, allocations: 4.5 kB / 0.8006 GB, free: 9.641 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.447, allocations: 2.406 kB / 0.8006 GB, free: 9.641 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.447, allocations: 6.328 kB / 0.8006 GB, free: 9.641 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002386/0.4494, allocations: 1.503 MB / 0.8021 GB, free: 8.863 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.4494, allocations: 2.188 kB / 0.8021 GB, free: 8.863 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003591/0.4498, allocations: 68.34 kB / 0.8022 GB, free: 8.859 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007/0.4505, allocations: 207.7 kB / 0.8024 GB, free: 8.793 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.766e-05/0.4505, allocations: 13.33 kB / 0.8024 GB, free: 8.785 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00483/0.4554, allocations: 5.277 MB / 0.8075 GB, free: 4.148 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.92e-06/0.4554, allocations: 6.766 kB / 0.8076 GB, free: 4.145 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001706/0.4571, allocations: 1.125 MB / 0.8087 GB, free: 3.57 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002433/0.4574, allocations: 177.4 kB / 0.8088 GB, free: 3.426 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.224e-05/0.4574, allocations: 12.08 kB / 0.8088 GB, free: 3.418 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003185/0.4578, allocations: 24.84 kB / 0.8089 GB, free: 3.414 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.001e-05/0.4579, allocations: 39.7 kB / 0.8089 GB, free: 3.402 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.599e-05/0.4579, allocations: 8.812 kB / 0.8089 GB, free: 3.402 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003341/0.4582, allocations: 320.2 kB / 0.8092 GB, free: 3.25 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4582, allocations: 0 / 0.8092 GB, free: 3.25 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0006317/0.4589, allocations: 171.6 kB / 0.8094 GB, free: 3.23 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.001883/0.4608, allocations: 1.704 MB / 0.811 GB, free: 2.09 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001499/0.4623, allocations: 1.022 MB / 0.812 GB, free: 1.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4623, allocations: 0 / 0.812 GB, free: 1.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0009294/0.4632, allocations: 0.6823 MB / 0.8127 GB, free: 1.039 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008508/0.4641, allocations: 179 kB / 0.8129 GB, free: 0.9883 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007165/0.4713, allocations: 5.656 MB / 0.8184 GB, free: 13.66 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005212/0.4718, allocations: 0.9485 MB / 0.8193 GB, free: 12.94 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.000344/0.4721, allocations: 115.6 kB / 0.8194 GB, free: 12.92 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002614/0.4724, allocations: 210.7 kB / 0.8196 GB, free: 12.76 MB / 0.5919 GB Notification: Performance of SimCode: time 2.5e-07/0.4724, allocations: 0 / 0.8196 GB, free: 12.76 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03928/0.5117, allocations: 14.23 MB / 0.8335 GB, free: 7.094 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.914/10.43, allocations: 6.609 kB / 0.8335 GB, free: 7.09 MB / 0.5919 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)