Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.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_R,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R",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.004592/0.004592, allocations: 99.64 kB / 15.73 MB, free: 6.016 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.001419/0.001419, allocations: 193 kB / 16.67 MB, free: 5.934 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.25/1.25, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002248/0.002248, allocations: 283.2 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8823/0.8823, allocations: 169.2 MB / 0.4983 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001733/0.001733, allocations: 99.84 kB / 0.681 GB, free: 7.426 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3612/0.363, allocations: 86.97 MB / 0.7659 GB, free: 3.824 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.007598/0.3706, allocations: 6.802 MB / 0.7726 GB, free: 13 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.004193/0.3748, allocations: 3.055 MB / 0.7755 GB, free: 9.93 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002971/0.3752, allocations: 27.81 kB / 0.7756 GB, free: 9.902 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002099/0.3773, allocations: 0.9518 MB / 0.7765 GB, free: 8.949 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0008777/0.3782, allocations: 0.5284 MB / 0.777 GB, free: 8.418 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008261/0.379, allocations: 443 kB / 0.7774 GB, free: 7.984 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001019/0.38, allocations: 1.228 MB / 0.7786 GB, free: 6.75 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007505/0.3808, allocations: 0.6584 MB / 0.7793 GB, free: 6.09 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004895/0.3813, allocations: 482.2 kB / 0.7797 GB, free: 5.617 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005778/0.3819, allocations: 0.5215 MB / 0.7802 GB, free: 5.094 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001021/0.382, allocations: 64 kB / 0.7803 GB, free: 5.031 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005422/0.3826, allocations: 375.3 kB / 0.7807 GB, free: 4.664 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002498/0.3828, allocations: 311.2 kB / 0.781 GB, free: 4.359 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.00036/0.3832, allocations: 457.7 kB / 0.7814 GB, free: 3.91 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001118/0.3843, allocations: 1.223 MB / 0.7826 GB, free: 2.688 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.3843, allocations: 0 / 0.7826 GB, free: 2.688 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3843, allocations: 0 / 0.7826 GB, free: 2.688 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.916e-05/0.3844, allocations: 4 kB / 0.7826 GB, free: 2.684 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001677/0.386, allocations: 1.195 MB / 0.7838 GB, free: 1.434 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.3861, allocations: 8.031 kB / 0.7838 GB, free: 1.426 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001207/0.3862, allocations: 118.7 kB / 0.7839 GB, free: 1.301 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001442/0.3877, allocations: 244 kB / 0.7841 GB, free: 1.062 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00087/0.3885, allocations: 0.612 MB / 0.7847 GB, free: 424 kB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.194e-05/0.3886, allocations: 45.67 kB / 0.7848 GB, free: 380 kB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.742e-05/0.3887, allocations: 64.36 kB / 0.7848 GB, free: 316 kB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0013/0.39, allocations: 1.089 MB / 0.7859 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.47e-05/0.39, allocations: 11.89 kB / 0.7859 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.596e-05/0.3901, allocations: 31.98 kB / 0.7859 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001302/0.3902, allocations: 85.25 kB / 0.786 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009984/0.3912, allocations: 0.7543 MB / 0.7867 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004621/0.3959, allocations: 5.878 MB / 0.7925 GB, free: 7.922 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008921/0.3968, allocations: 0.5578 MB / 0.793 GB, free: 7.355 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003823/0.3972, allocations: 330 kB / 0.7933 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.78e-05/0.3972, allocations: 4.438 kB / 0.7933 GB, free: 7.027 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/0.3972, allocations: 46.98 kB / 0.7934 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=47): time 1.944e-06/0.3973, allocations: 0 / 0.7934 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of matching and sorting (n=48): time 0.003393/0.4007, allocations: 1.999 MB / 0.7953 GB, free: 4.883 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.12e-05/0.4007, allocations: 55.84 kB / 0.7954 GB, free: 4.816 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005097/0.4012, allocations: 0.5627 MB / 0.7959 GB, free: 4.242 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.388e-05/0.4013, allocations: 37.7 kB / 0.796 GB, free: 4.199 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002263/0.4015, allocations: 424 kB / 0.7964 GB, free: 3.781 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.4016, allocations: 186.5 kB / 0.7966 GB, free: 3.598 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001684/0.4018, allocations: 122.6 kB / 0.7967 GB, free: 3.473 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001222/0.4019, allocations: 378.7 kB / 0.797 GB, free: 3.094 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003587/0.4023, allocations: 273.8 kB / 0.7973 GB, free: 2.824 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004732/0.4028, allocations: 0.4931 MB / 0.7978 GB, free: 2.23 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000871/0.4036, allocations: 0.8054 MB / 0.7986 GB, free: 1.336 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.4036, allocations: 4 kB / 0.7986 GB, free: 1.332 MB / 0.5606 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001586/0.4052, allocations: 1.087 MB / 0.7996 GB, free: 232 kB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.4053, allocations: 8 kB / 0.7996 GB, free: 224 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.4053, allocations: 8 kB / 0.7997 GB, free: 216 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007937/0.4061, allocations: 279.2 kB / 0.7999 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004511/0.4065, allocations: 131.7 kB / 0.8 GB, free: 15.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00564/0.4122, allocations: 7.13 MB / 0.807 GB, free: 8.105 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005215/0.4127, allocations: 44.03 kB / 0.807 GB, free: 8.062 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.122e-05/0.4128, allocations: 24 kB / 0.8071 GB, free: 8.039 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,6,100.0%), (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.0002868/0.4131, allocations: 259.9 kB / 0.8073 GB, free: 7.777 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.814e-05/0.4132, allocations: 75.53 kB / 0.8074 GB, free: 7.703 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001373/0.4146, allocations: 0.8964 MB / 0.8083 GB, free: 6.781 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.4146, allocations: 4 kB / 0.8083 GB, free: 6.777 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.4146, allocations: 4 kB / 0.8083 GB, free: 6.773 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.4146, allocations: 4.172 kB / 0.8083 GB, free: 6.77 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002286/0.4169, allocations: 1.729 MB / 0.81 GB, free: 4.953 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.4169, allocations: 4.125 kB / 0.81 GB, free: 4.949 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002434/0.4172, allocations: 63.89 kB / 0.81 GB, free: 4.887 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000682/0.4178, allocations: 271.2 kB / 0.8103 GB, free: 4.609 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.806e-05/0.4179, allocations: 8 kB / 0.8103 GB, free: 4.602 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005504/0.4234, allocations: 7.126 MB / 0.8173 GB, free: 12.91 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.4234, allocations: 4 kB / 0.8173 GB, free: 12.91 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001332/0.4247, allocations: 0.9838 MB / 0.8182 GB, free: 11.88 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002703/0.425, allocations: 196.6 kB / 0.8184 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.627e-05/0.4251, allocations: 15.92 kB / 0.8184 GB, free: 11.65 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003559/0.4255, allocations: 27.97 kB / 0.8185 GB, free: 11.62 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.882e-05/0.4256, allocations: 43.95 kB / 0.8185 GB, free: 11.58 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.768e-05/0.4256, allocations: 12 kB / 0.8185 GB, free: 11.57 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003779/0.426, allocations: 391.1 kB / 0.8189 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/0.426, allocations: 0 / 0.8189 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0006838/0.4267, allocations: 224 kB / 0.8191 GB, free: 10.97 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 simulation (31): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001543/0.4282, allocations: 1.56 MB / 0.8206 GB, free: 9.355 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001763/0.43, allocations: 1.268 MB / 0.8219 GB, free: 8.043 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.43, allocations: 0 / 0.8219 GB, free: 8.043 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001127/0.4312, allocations: 0.8974 MB / 0.8227 GB, free: 7.094 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009243/0.4321, allocations: 226.4 kB / 0.8229 GB, free: 6.883 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007584/0.4397, allocations: 6.424 MB / 0.8292 GB, free: 116 kB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005477/0.4403, allocations: 1.013 MB / 0.8302 GB, free: 15.07 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003714/0.4406, allocations: 122 kB / 0.8303 GB, free: 14.95 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002873/0.4409, allocations: 259.3 kB / 0.8306 GB, free: 14.7 MB / 0.6075 GB Notification: Performance of SimCode: time 5.41e-07/0.4409, allocations: 0 / 0.8306 GB, free: 14.7 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04203/0.483, allocations: 17.51 MB / 0.8477 GB, free: 13.54 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.409/9.892, allocations: 3.859 kB / 0.8477 GB, free: 13.54 MB / 0.6231 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R_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_R.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe 2>&1)