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.007504/0.00751, allocations: 98.02 kB / 15.73 MB, free: 6.043 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.001929/0.001929, allocations: 195.9 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.463/1.463, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002525/0.002525, allocations: 290.1 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 1.016/1.016, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002719/0.002719, allocations: 98.48 kB / 0.681 GB, free: 8 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1621/0.1648, allocations: 86.97 MB / 0.7659 GB, free: 8.961 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.008817/0.1737, allocations: 6.795 MB / 0.7725 GB, free: 2.137 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.3346/0.5083, allocations: 3.05 MB / 0.7755 GB, free: 8.387 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006239/0.509, allocations: 28.19 kB / 0.7755 GB, free: 8.387 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002254/0.5113, allocations: 0.9464 MB / 0.7765 GB, free: 8.383 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001054/0.5123, allocations: 0.5042 MB / 0.777 GB, free: 8.34 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001092/0.5134, allocations: 452.9 kB / 0.7774 GB, free: 8.309 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001677/0.5151, allocations: 1.234 MB / 0.7786 GB, free: 8.09 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00106/0.5162, allocations: 0.6597 MB / 0.7792 GB, free: 8.051 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006917/0.5169, allocations: 479.6 kB / 0.7797 GB, free: 7.961 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006379/0.5175, allocations: 0.5196 MB / 0.7802 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001186/0.5177, allocations: 66.69 kB / 0.7803 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007787/0.5185, allocations: 379.2 kB / 0.7806 GB, free: 7.832 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002857/0.5188, allocations: 308.3 kB / 0.7809 GB, free: 7.801 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003914/0.5192, allocations: 454 kB / 0.7814 GB, free: 7.656 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001213/0.5204, allocations: 1.226 MB / 0.7826 GB, free: 7.27 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.5204, allocations: 4.844 kB / 0.7826 GB, free: 7.266 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.312e-06/0.5204, allocations: 0 / 0.7826 GB, free: 7.266 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.502e-05/0.5204, allocations: 4 kB / 0.7826 GB, free: 7.262 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.001955/0.5224, allocations: 1.187 MB / 0.7837 GB, free: 6.457 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.466e-05/0.5224, allocations: 12.88 kB / 0.7837 GB, free: 6.453 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000148/0.5226, allocations: 121.3 kB / 0.7839 GB, free: 6.375 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001554/0.5242, allocations: 243.5 kB / 0.7841 GB, free: 6.316 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009005/0.5251, allocations: 0.6065 MB / 0.7847 GB, free: 5.938 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.609e-05/0.5251, allocations: 46.8 kB / 0.7847 GB, free: 5.922 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001032/0.5252, allocations: 71.02 kB / 0.7848 GB, free: 5.902 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001323/0.5265, allocations: 1.085 MB / 0.7859 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.684e-05/0.5266, allocations: 11.81 kB / 0.7859 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.837e-05/0.5267, allocations: 33.73 kB / 0.7859 GB, free: 5.262 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001353/0.5268, allocations: 84.44 kB / 0.786 GB, free: 5.25 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001051/0.5279, allocations: 0.7551 MB / 0.7867 GB, free: 4.98 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004999/0.5329, allocations: 5.876 MB / 0.7925 GB, free: 16.01 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008806/0.5338, allocations: 0.5576 MB / 0.793 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003904/0.5342, allocations: 325.1 kB / 0.7933 GB, free: 15.67 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.146e-05/0.5342, allocations: 8.312 kB / 0.7933 GB, free: 15.67 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/0.5342, allocations: 35.52 kB / 0.7933 GB, free: 15.62 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=47): time 1.843e-06/0.5342, allocations: 0 / 0.7933 GB, free: 15.62 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.003653/0.5379, allocations: 2.003 MB / 0.7953 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.634e-05/0.538, allocations: 58.47 kB / 0.7954 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006542/0.5386, allocations: 0.5591 MB / 0.7959 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.723e-05/0.5387, allocations: 36.7 kB / 0.7959 GB, free: 14.2 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002269/0.5389, allocations: 431.2 kB / 0.7964 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001462/0.5391, allocations: 182.2 kB / 0.7965 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002726/0.5393, allocations: 125.6 kB / 0.7966 GB, free: 13.65 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000235/0.5396, allocations: 379.4 kB / 0.797 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004268/0.54, allocations: 274.8 kB / 0.7973 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006082/0.5406, allocations: 499.7 kB / 0.7977 GB, free: 12.83 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/0.5417, allocations: 0.8031 MB / 0.7985 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.5417, allocations: 1.781 kB / 0.7985 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001995/0.5437, allocations: 1.088 MB / 0.7996 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.5437, allocations: 9.609 kB / 0.7996 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.387e-05/0.5438, allocations: 6.875 kB / 0.7996 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009034/0.5447, allocations: 283 kB / 0.7999 GB, free: 11.74 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005145/0.5452, allocations: 125.4 kB / 0.8 GB, free: 11.73 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008372/0.5536, allocations: 7.137 MB / 0.807 GB, free: 5.523 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007152/0.5543, allocations: 44.42 kB / 0.807 GB, free: 5.508 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.17e-05/0.5544, allocations: 28.59 kB / 0.807 GB, free: 5.504 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.00043/0.5548, allocations: 256.5 kB / 0.8073 GB, free: 5.316 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001238/0.555, allocations: 75.86 kB / 0.8074 GB, free: 5.277 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001746/0.5567, allocations: 0.8916 MB / 0.8082 GB, free: 4.871 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.5567, allocations: 6.109 kB / 0.8082 GB, free: 4.871 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.5567, allocations: 3.219 kB / 0.8082 GB, free: 4.871 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.5568, allocations: 2.109 kB / 0.8082 GB, free: 4.871 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002968/0.5597, allocations: 1.731 MB / 0.8099 GB, free: 4.004 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.5598, allocations: 1.25 kB / 0.8099 GB, free: 4.004 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002724/0.56, allocations: 68.17 kB / 0.81 GB, free: 3.992 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007924/0.5608, allocations: 270.2 kB / 0.8103 GB, free: 3.902 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.405e-05/0.5609, allocations: 8.031 kB / 0.8103 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007334/0.5682, allocations: 7.132 MB / 0.8172 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.5683, allocations: 5.656 kB / 0.8172 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001771/0.57, allocations: 0.9836 MB / 0.8182 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003875/0.5704, allocations: 198.9 kB / 0.8184 GB, free: 13 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.362e-05/0.5705, allocations: 12.55 kB / 0.8184 GB, free: 12.99 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004059/0.5709, allocations: 35.73 kB / 0.8184 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/0.5711, allocations: 46.72 kB / 0.8185 GB, free: 12.97 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.816e-05/0.5711, allocations: 10.16 kB / 0.8185 GB, free: 12.97 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0005404/0.5716, allocations: 391.6 kB / 0.8189 GB, free: 12.79 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5717, allocations: 0 / 0.8189 GB, free: 12.79 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001102/0.5728, allocations: 221 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.002008/0.5748, allocations: 1.55 MB / 0.8206 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002122/0.5769, allocations: 1.283 MB / 0.8218 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/0.5769, allocations: 7.938 kB / 0.8218 GB, free: 10.95 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.00137/0.5783, allocations: 0.8905 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.001229/0.5795, allocations: 222.2 kB / 0.8229 GB, free: 10.26 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009774/0.5893, allocations: 6.41 MB / 0.8292 GB, free: 6.578 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007764/0.5902, allocations: 1.015 MB / 0.8302 GB, free: 5.754 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.000468/0.5906, allocations: 120 kB / 0.8303 GB, free: 5.699 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003332/0.591, allocations: 261.5 kB / 0.8305 GB, free: 5.477 MB / 0.5919 GB Notification: Performance of SimCode: time 9.72e-07/0.591, allocations: 1.062 kB / 0.8305 GB, free: 5.477 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.059/0.65, allocations: 17.52 MB / 0.8476 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/11.31, allocations: 11.78 kB / 0.8477 GB, free: 12.11 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 & /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)