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.007082/0.007082, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001791/0.001791, allocations: 201.8 kB / 16.68 MB, free: 5.969 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.398/1.398, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003464/0.003464, allocations: 287.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 0.9542/0.9542, allocations: 169.3 MB / 0.4983 GB, free: 13.77 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001883/0.001883, allocations: 95.39 kB / 0.681 GB, free: 15.97 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1471, allocations: 86.97 MB / 0.7659 GB, free: 8.926 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.008031/0.1551, allocations: 6.801 MB / 0.7725 GB, free: 2.098 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.3439/0.4991, allocations: 3.038 MB / 0.7755 GB, free: 8.41 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005809/0.4997, allocations: 27.47 kB / 0.7755 GB, free: 8.41 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002307/0.502, allocations: 0.9593 MB / 0.7765 GB, free: 8.402 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001094/0.5031, allocations: 0.5139 MB / 0.777 GB, free: 8.363 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001013/0.5042, allocations: 451.6 kB / 0.7774 GB, free: 8.332 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001292/0.5055, allocations: 1.238 MB / 0.7786 GB, free: 8.113 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008909/0.5064, allocations: 0.6642 MB / 0.7793 GB, free: 8.07 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005688/0.5069, allocations: 479 kB / 0.7797 GB, free: 7.984 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000575/0.5075, allocations: 0.5232 MB / 0.7802 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001057/0.5076, allocations: 66.75 kB / 0.7803 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006974/0.5083, allocations: 377.5 kB / 0.7807 GB, free: 7.855 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000281/0.5086, allocations: 313.2 kB / 0.781 GB, free: 7.82 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003869/0.509, allocations: 455.4 kB / 0.7814 GB, free: 7.645 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001158/0.5102, allocations: 1.225 MB / 0.7826 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.5102, allocations: 1.469 kB / 0.7826 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.623e-06/0.5102, allocations: 0 / 0.7826 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.779e-05/0.5102, allocations: 0 / 0.7826 GB, free: 7.254 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001669/0.5119, allocations: 1.191 MB / 0.7838 GB, free: 6.445 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.512, allocations: 11.97 kB / 0.7838 GB, free: 6.445 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001299/0.5121, allocations: 119.3 kB / 0.7839 GB, free: 6.367 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001466/0.5136, allocations: 247.3 kB / 0.7841 GB, free: 6.305 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008543/0.5144, allocations: 0.6107 MB / 0.7847 GB, free: 5.926 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.558e-05/0.5145, allocations: 44.98 kB / 0.7848 GB, free: 5.91 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.837e-05/0.5146, allocations: 67.12 kB / 0.7848 GB, free: 5.891 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/0.5159, allocations: 1.084 MB / 0.7859 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.585e-05/0.5159, allocations: 9.047 kB / 0.7859 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.457e-05/0.516, allocations: 37.59 kB / 0.7859 GB, free: 5.25 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001386/0.5161, allocations: 83.17 kB / 0.786 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001033/0.5172, allocations: 0.7494 MB / 0.7867 GB, free: 4.973 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004412/0.5216, allocations: 5.888 MB / 0.7925 GB, free: 16 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009895/0.5226, allocations: 0.5506 MB / 0.793 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004348/0.523, allocations: 332.9 kB / 0.7933 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.673e-05/0.5231, allocations: 6.125 kB / 0.7933 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.08e-05/0.5231, allocations: 42.19 kB / 0.7934 GB, free: 15.61 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=47): time 2.154e-06/0.5231, allocations: 0 / 0.7934 GB, free: 15.61 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.003664/0.5268, allocations: 1.999 MB / 0.7953 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.138e-05/0.5268, allocations: 62.03 kB / 0.7954 GB, free: 14.48 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005166/0.5274, allocations: 0.5556 MB / 0.7959 GB, free: 14.22 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.021e-05/0.5274, allocations: 36.5 kB / 0.796 GB, free: 14.18 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002221/0.5276, allocations: 428.8 kB / 0.7964 GB, free: 13.84 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001314/0.5278, allocations: 179.4 kB / 0.7965 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001861/0.528, allocations: 125.4 kB / 0.7967 GB, free: 13.64 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001616/0.5281, allocations: 378 kB / 0.797 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004282/0.5286, allocations: 275.8 kB / 0.7973 GB, free: 13.2 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005724/0.5292, allocations: 499.2 kB / 0.7978 GB, free: 12.82 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001004/0.5302, allocations: 0.8119 MB / 0.7986 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.5302, allocations: 2.781 kB / 0.7986 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002007/0.5322, allocations: 1.088 MB / 0.7996 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.5322, allocations: 7.531 kB / 0.7996 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.5322, allocations: 9.375 kB / 0.7996 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000892/0.5331, allocations: 278.5 kB / 0.7999 GB, free: 11.73 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004823/0.5336, allocations: 129.3 kB / 0.8 GB, free: 11.71 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007148/0.5408, allocations: 7.135 MB / 0.807 GB, free: 5.508 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000678/0.5415, allocations: 40.2 kB / 0.807 GB, free: 5.496 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.065e-05/0.5416, allocations: 28.84 kB / 0.8071 GB, free: 5.492 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.0004587/0.542, allocations: 255.7 kB / 0.8073 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001304/0.5422, allocations: 76.69 kB / 0.8074 GB, free: 5.266 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001836/0.544, allocations: 0.8919 MB / 0.8083 GB, free: 4.859 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.544, allocations: 5.062 kB / 0.8083 GB, free: 4.859 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.544, allocations: 7.438 kB / 0.8083 GB, free: 4.855 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.5441, allocations: 3.938 kB / 0.8083 GB, free: 4.855 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002927/0.547, allocations: 1.729 MB / 0.81 GB, free: 3.988 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.547, allocations: 1.719 kB / 0.81 GB, free: 3.988 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002608/0.5473, allocations: 69.08 kB / 0.81 GB, free: 3.977 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007594/0.548, allocations: 262.2 kB / 0.8103 GB, free: 3.895 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.75e-05/0.5481, allocations: 12.38 kB / 0.8103 GB, free: 3.887 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006633/0.5547, allocations: 7.138 MB / 0.8173 GB, free: 13.66 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.5548, allocations: 1.219 kB / 0.8173 GB, free: 13.66 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001795/0.5566, allocations: 0.9904 MB / 0.8182 GB, free: 13.14 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004294/0.557, allocations: 195.3 kB / 0.8184 GB, free: 12.99 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.811e-05/0.5571, allocations: 12.84 kB / 0.8184 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003904/0.5575, allocations: 29 kB / 0.8185 GB, free: 12.97 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/0.5577, allocations: 42.94 kB / 0.8185 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.922e-05/0.5577, allocations: 14.81 kB / 0.8185 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0006228/0.5583, allocations: 388.9 kB / 0.8189 GB, free: 12.79 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5583, allocations: 0 / 0.8189 GB, free: 12.79 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0009913/0.5593, allocations: 225.6 kB / 0.8191 GB, free: 12.77 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.001922/0.5613, allocations: 1.556 MB / 0.8206 GB, free: 11.69 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002137/0.5634, allocations: 1.276 MB / 0.8219 GB, free: 10.95 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 6.231e-06/0.5634, allocations: 1.156 kB / 0.8219 GB, free: 10.95 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.00138/0.5648, allocations: 0.892 MB / 0.8227 GB, free: 10.34 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001131/0.566, allocations: 225.3 kB / 0.8229 GB, free: 10.25 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008944/0.5749, allocations: 6.419 MB / 0.8292 GB, free: 6.562 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007121/0.5757, allocations: 1.015 MB / 0.8302 GB, free: 5.727 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004639/0.5761, allocations: 127.9 kB / 0.8303 GB, free: 5.664 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000305/0.5765, allocations: 253.3 kB / 0.8306 GB, free: 5.449 MB / 0.5919 GB Notification: Performance of SimCode: time 7.72e-07/0.5765, allocations: 0 / 0.8306 GB, free: 5.449 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6135/1.19, allocations: 17.51 MB / 0.8477 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.63/11.82, allocations: 15.8 kB / 0.8477 GB, free: 12.07 MB / 0.6075 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)