Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.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.OnePhase.Lines.Examples.ACLine_R,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_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.001115/0.001115, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 193.9 kB / 16.53 MB, free: 6.664 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.305/1.305, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002144/0.002144, allocations: 282.9 kB / 290.7 MB, free: 1.98 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9459/0.9459, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001806/0.001806, allocations: 94.44 kB / 0.5954 GB, free: 27.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1387, allocations: 86.98 MB / 0.6803 GB, free: 0.582 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.008022/0.1468, allocations: 6.726 MB / 0.6869 GB, free: 9.844 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004609/0.1514, allocations: 3.032 MB / 0.6898 GB, free: 6.805 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004509/0.1519, allocations: 27.81 kB / 0.6899 GB, free: 6.777 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002321/0.1543, allocations: 0.9481 MB / 0.6908 GB, free: 5.82 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00107/0.1553, allocations: 0.4973 MB / 0.6913 GB, free: 5.32 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009315/0.1563, allocations: 431 kB / 0.6917 GB, free: 4.898 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001305/0.1576, allocations: 1.213 MB / 0.6929 GB, free: 3.684 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008975/0.1585, allocations: 0.6662 MB / 0.6935 GB, free: 3.016 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005941/0.1591, allocations: 470.3 kB / 0.694 GB, free: 2.555 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006613/0.1598, allocations: 0.5214 MB / 0.6945 GB, free: 2.031 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001329/0.1599, allocations: 68 kB / 0.6945 GB, free: 1.965 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006688/0.1606, allocations: 375.3 kB / 0.6949 GB, free: 1.598 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002954/0.1609, allocations: 307.1 kB / 0.6952 GB, free: 1.297 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004655/0.1614, allocations: 453.7 kB / 0.6956 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001176/0.1626, allocations: 1.199 MB / 0.6968 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1626, allocations: 0 / 0.6968 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.543e-06/0.1626, allocations: 8 kB / 0.6968 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.308e-05/0.1626, allocations: 0 / 0.6968 GB, free: 15.64 MB / 0.4981 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.001837/0.1645, allocations: 1.161 MB / 0.6979 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.1645, allocations: 8.031 kB / 0.6979 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001353/0.1646, allocations: 122.7 kB / 0.6981 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001506/0.1662, allocations: 235.6 kB / 0.6983 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007426/0.1669, allocations: 0.5336 MB / 0.6988 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.741e-05/0.167, allocations: 57.67 kB / 0.6989 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.1671, allocations: 72.19 kB / 0.6989 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001378/0.1684, allocations: 1.081 MB / 0.7 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.886e-05/0.1685, allocations: 15.94 kB / 0.7 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.914e-05/0.1686, allocations: 27.98 kB / 0.7 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001431/0.1687, allocations: 85.25 kB / 0.7001 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001103/0.1698, allocations: 0.7543 MB / 0.7008 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004881/0.1747, allocations: 5.897 MB / 0.7066 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009194/0.1756, allocations: 0.5438 MB / 0.7071 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004184/0.1761, allocations: 333.3 kB / 0.7075 GB, free: 4.09 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.182e-05/0.1761, allocations: 4.438 kB / 0.7075 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.049e-05/0.1761, allocations: 42.94 kB / 0.7075 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=47): time 1.493e-06/0.1762, allocations: 0 / 0.7075 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48): time 0.003625/0.1798, allocations: 1.982 MB / 0.7094 GB, free: 1.957 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.279e-05/0.1798, allocations: 55.84 kB / 0.7095 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005834/0.1804, allocations: 0.5585 MB / 0.71 GB, free: 1.32 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.701e-05/0.1805, allocations: 33.7 kB / 0.7101 GB, free: 1.281 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002579/0.1807, allocations: 414.9 kB / 0.7105 GB, free: 0.8711 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001238/0.1809, allocations: 173.6 kB / 0.7106 GB, free: 0.6992 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001852/0.181, allocations: 130.5 kB / 0.7107 GB, free: 0.5625 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001367/0.1812, allocations: 370.7 kB / 0.7111 GB, free: 196 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004122/0.1816, allocations: 281.9 kB / 0.7114 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005207/0.1821, allocations: 497 kB / 0.7118 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009628/0.1831, allocations: 0.8054 MB / 0.7126 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.1831, allocations: 8 kB / 0.7126 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001716/0.1848, allocations: 1.083 MB / 0.7137 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.1849, allocations: 8 kB / 0.7137 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.1849, allocations: 8 kB / 0.7137 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007872/0.1857, allocations: 287.2 kB / 0.714 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004738/0.1862, allocations: 123.8 kB / 0.7141 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005996/0.1922, allocations: 7.131 MB / 0.7211 GB, free: 5.199 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005029/0.1927, allocations: 40.16 kB / 0.7211 GB, free: 5.16 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.459e-05/0.1927, allocations: 31.94 kB / 0.7211 GB, free: 5.129 MB / 0.5137 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.0002938/0.193, allocations: 254.8 kB / 0.7214 GB, free: 4.871 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.1932, allocations: 75.16 kB / 0.7215 GB, free: 4.797 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001479/0.1946, allocations: 0.8925 MB / 0.7223 GB, free: 3.883 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.1947, allocations: 4 kB / 0.7223 GB, free: 3.879 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.826e-06/0.1947, allocations: 4 kB / 0.7223 GB, free: 3.875 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.1947, allocations: 3.984 kB / 0.7223 GB, free: 3.871 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002363/0.1971, allocations: 1.728 MB / 0.724 GB, free: 2.055 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.1971, allocations: 7.938 kB / 0.724 GB, free: 2.047 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002629/0.1973, allocations: 59.89 kB / 0.7241 GB, free: 1.988 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009199/0.1983, allocations: 267.2 kB / 0.7243 GB, free: 1.715 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.145e-05/0.1983, allocations: 8 kB / 0.7243 GB, free: 1.707 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005889/0.2042, allocations: 7.126 MB / 0.7313 GB, free: 10.02 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.2042, allocations: 3.938 kB / 0.7313 GB, free: 10.02 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001393/0.2056, allocations: 0.9796 MB / 0.7323 GB, free: 8.992 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002324/0.2059, allocations: 192.2 kB / 0.7325 GB, free: 8.785 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.989e-05/0.206, allocations: 19.84 kB / 0.7325 GB, free: 8.766 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003638/0.2064, allocations: 36.14 kB / 0.7325 GB, free: 8.73 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.92e-05/0.2065, allocations: 39.89 kB / 0.7325 GB, free: 8.691 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.008e-05/0.2065, allocations: 16 kB / 0.7326 GB, free: 8.676 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003876/0.2069, allocations: 387.1 kB / 0.7329 GB, free: 8.305 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.563e-06/0.2069, allocations: 0 / 0.7329 GB, free: 8.305 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0006886/0.2076, allocations: 227.9 kB / 0.7331 GB, free: 8.082 MB / 0.5294 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.001676/0.2093, allocations: 1.546 MB / 0.7347 GB, free: 6.477 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0019/0.2112, allocations: 1.33 MB / 0.736 GB, free: 5.094 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.2112, allocations: 0 / 0.736 GB, free: 5.094 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001128/0.2123, allocations: 0.8858 MB / 0.7368 GB, free: 4.156 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009484/0.2133, allocations: 216.6 kB / 0.737 GB, free: 3.945 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007886/0.2212, allocations: 6.533 MB / 0.7434 GB, free: 13.08 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005758/0.2218, allocations: 1.009 MB / 0.7444 GB, free: 12.05 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0004171/0.2222, allocations: 118 kB / 0.7445 GB, free: 11.93 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002835/0.2225, allocations: 255.3 kB / 0.7447 GB, free: 11.68 MB / 0.545 GB Notification: Performance of SimCode: time 3.41e-07/0.2225, allocations: 0 / 0.7447 GB, free: 11.68 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.603/1.826, allocations: 17.13 MB / 0.7615 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/12.81, allocations: 14.39 kB / 0.7615 GB, free: 10.82 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_R_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1)