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.007544/0.007544, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001834/0.001834, allocations: 196.2 kB / 16.67 MB, free: 5.52 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.33/1.33, allocations: 222.9 MB / 240.4 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00213/0.00213, allocations: 286.5 kB / 290.8 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9342/0.9342, allocations: 169.2 MB / 0.4983 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001756/0.001756, allocations: 95.84 kB / 0.681 GB, free: 7.496 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4257/0.4274, allocations: 86.97 MB / 0.7659 GB, free: 3.891 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.008831/0.4363, allocations: 6.808 MB / 0.7725 GB, free: 13.06 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.005211/0.4416, allocations: 3.063 MB / 0.7755 GB, free: 9.984 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006157/0.4422, allocations: 23.88 kB / 0.7756 GB, free: 9.961 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002458/0.4447, allocations: 0.9519 MB / 0.7765 GB, free: 9.008 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.00136/0.4461, allocations: 0.5246 MB / 0.777 GB, free: 8.48 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.001136/0.4472, allocations: 441 kB / 0.7774 GB, free: 8.051 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.00147/0.4487, allocations: 1.232 MB / 0.7786 GB, free: 6.812 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001003/0.4497, allocations: 0.6661 MB / 0.7793 GB, free: 6.145 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007399/0.4505, allocations: 482.2 kB / 0.7797 GB, free: 5.672 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008176/0.4513, allocations: 0.5215 MB / 0.7802 GB, free: 5.148 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001693/0.4515, allocations: 68 kB / 0.7803 GB, free: 5.082 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007933/0.4523, allocations: 371.3 kB / 0.7807 GB, free: 4.719 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003552/0.4527, allocations: 307.2 kB / 0.781 GB, free: 4.418 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0006231/0.4533, allocations: 453.7 kB / 0.7814 GB, free: 3.973 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001616/0.4549, allocations: 1.215 MB / 0.7826 GB, free: 2.754 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.4549, allocations: 8 kB / 0.7826 GB, free: 2.746 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.823e-06/0.455, allocations: 0 / 0.7826 GB, free: 2.746 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.189e-05/0.455, allocations: 4 kB / 0.7826 GB, free: 2.742 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.002473/0.4575, allocations: 1.165 MB / 0.7837 GB, free: 1.523 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.4575, allocations: 16.03 kB / 0.7837 GB, free: 1.508 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001678/0.4577, allocations: 118.7 kB / 0.7839 GB, free: 1.383 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001658/0.4594, allocations: 243.5 kB / 0.7841 GB, free: 1.145 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001033/0.4604, allocations: 0.5959 MB / 0.7847 GB, free: 0.5117 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.259e-05/0.4605, allocations: 49.67 kB / 0.7847 GB, free: 476 kB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.4606, allocations: 72.34 kB / 0.7848 GB, free: 404 kB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/0.4621, allocations: 1.085 MB / 0.7858 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.606e-05/0.4622, allocations: 3.938 kB / 0.7859 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.133e-05/0.4623, allocations: 31.98 kB / 0.7859 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001378/0.4624, allocations: 81.25 kB / 0.786 GB, free: 15.08 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001122/0.4635, allocations: 0.7543 MB / 0.7867 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005146/0.4687, allocations: 5.874 MB / 0.7924 GB, free: 8.027 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001066/0.4698, allocations: 0.5632 MB / 0.793 GB, free: 7.453 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004233/0.4702, allocations: 322 kB / 0.7933 GB, free: 7.137 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 4.493e-05/0.4703, allocations: 12.42 kB / 0.7933 GB, free: 7.125 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.391e-05/0.4703, allocations: 35 kB / 0.7933 GB, free: 7.082 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=47): time 2.495e-06/0.4703, allocations: 0 / 0.7933 GB, free: 7.082 MB / 0.5606 GB Notification: Performance of matching and sorting (n=48): time 0.003734/0.4741, allocations: 1.986 MB / 0.7953 GB, free: 5.004 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.749e-05/0.4741, allocations: 63.78 kB / 0.7953 GB, free: 4.93 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006548/0.4748, allocations: 0.5587 MB / 0.7959 GB, free: 4.359 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.813e-05/0.4748, allocations: 37.64 kB / 0.7959 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002479/0.4751, allocations: 414.9 kB / 0.7963 GB, free: 3.906 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001282/0.4752, allocations: 177.5 kB / 0.7965 GB, free: 3.73 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001908/0.4754, allocations: 126.6 kB / 0.7966 GB, free: 3.602 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000135/0.4756, allocations: 378.7 kB / 0.797 GB, free: 3.223 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004033/0.476, allocations: 269.8 kB / 0.7972 GB, free: 2.957 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005396/0.4765, allocations: 497 kB / 0.7977 GB, free: 2.371 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001016/0.4776, allocations: 0.8094 MB / 0.7985 GB, free: 1.473 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/0.4776, allocations: 8 kB / 0.7985 GB, free: 1.465 MB / 0.5606 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001764/0.4793, allocations: 1.082 MB / 0.7995 GB, free: 372 kB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.4794, allocations: 8.875 kB / 0.7996 GB, free: 364 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.4794, allocations: 4 kB / 0.7996 GB, free: 360 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008284/0.4802, allocations: 291.1 kB / 0.7998 GB, free: 56 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004737/0.4807, allocations: 123.8 kB / 0.8 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00622/0.4869, allocations: 7.126 MB / 0.8069 GB, free: 8.246 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005897/0.4876, allocations: 48.02 kB / 0.807 GB, free: 8.199 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.089e-05/0.4877, allocations: 35.88 kB / 0.807 GB, free: 8.164 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.0003928/0.4881, allocations: 249.5 kB / 0.8072 GB, free: 7.91 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001524/0.4882, allocations: 71.16 kB / 0.8073 GB, free: 7.84 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001573/0.4898, allocations: 0.8886 MB / 0.8082 GB, free: 6.926 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.4898, allocations: 8 kB / 0.8082 GB, free: 6.918 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.4898, allocations: 4 kB / 0.8082 GB, free: 6.914 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.4898, allocations: 3.984 kB / 0.8082 GB, free: 6.91 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002621/0.4925, allocations: 1.725 MB / 0.8099 GB, free: 5.098 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.4925, allocations: 7.938 kB / 0.8099 GB, free: 5.09 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002567/0.4927, allocations: 60.14 kB / 0.8099 GB, free: 5.031 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007715/0.4935, allocations: 267.1 kB / 0.8102 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.719e-05/0.4936, allocations: 8 kB / 0.8102 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006194/0.4998, allocations: 7.126 MB / 0.8172 GB, free: 13.06 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.4998, allocations: 4.031 kB / 0.8172 GB, free: 13.06 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001578/0.5014, allocations: 0.9796 MB / 0.8181 GB, free: 12.03 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003329/0.5017, allocations: 188.2 kB / 0.8183 GB, free: 11.82 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001108/0.5019, allocations: 19.88 kB / 0.8183 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003821/0.5023, allocations: 35.95 kB / 0.8183 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.5024, allocations: 39.89 kB / 0.8184 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.407e-05/0.5024, allocations: 16 kB / 0.8184 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004703/0.5029, allocations: 391.1 kB / 0.8188 GB, free: 11.34 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.273e-06/0.5029, allocations: 4 kB / 0.8188 GB, free: 11.34 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0008142/0.5037, allocations: 227.9 kB / 0.819 GB, free: 11.11 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.001761/0.5055, allocations: 1.548 MB / 0.8205 GB, free: 9.508 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001948/0.5074, allocations: 1.271 MB / 0.8217 GB, free: 8.191 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.5075, allocations: 4 kB / 0.8218 GB, free: 8.188 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001188/0.5087, allocations: 0.8858 MB / 0.8226 GB, free: 7.25 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001016/0.5097, allocations: 224.2 kB / 0.8228 GB, free: 7.039 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008627/0.5183, allocations: 6.383 MB / 0.8291 GB, free: 320 kB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006463/0.519, allocations: 1.017 MB / 0.8301 GB, free: 15.27 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003964/0.5194, allocations: 125.9 kB / 0.8302 GB, free: 15.14 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003126/0.5197, allocations: 251.3 kB / 0.8304 GB, free: 14.9 MB / 0.6075 GB Notification: Performance of SimCode: time 6.81e-07/0.5198, allocations: 0 / 0.8304 GB, free: 14.9 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07047/0.5902, allocations: 17.51 MB / 0.8475 GB, free: 13.74 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.19/10.78, allocations: 13.78 kB / 0.8475 GB, free: 13.73 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe 2>&1)