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.00124/0.001239, allocations: 108 kB / 15.6 MB, free: 132 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.001242/0.001242, allocations: 198.2 kB / 16.54 MB, free: 6.672 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.37/1.37, allocations: 222.9 MB / 240.2 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002451/0.002451, allocations: 283.1 kB / 290.7 MB, free: 2.02 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9807/0.9807, allocations: 169.3 MB / 0.4982 GB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002633/0.002633, allocations: 99.7 kB / 0.5954 GB, free: 27.76 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1401, allocations: 86.98 MB / 0.6803 GB, free: 0.5547 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.008815/0.149, allocations: 6.724 MB / 0.6869 GB, free: 9.816 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004779/0.1538, allocations: 3.027 MB / 0.6898 GB, free: 6.785 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002738/0.1541, allocations: 27.81 kB / 0.6899 GB, free: 6.758 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002299/0.1564, allocations: 0.9486 MB / 0.6908 GB, free: 5.809 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009379/0.1573, allocations: 0.5012 MB / 0.6913 GB, free: 5.305 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008917/0.1582, allocations: 425.9 kB / 0.6917 GB, free: 4.891 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001223/0.1595, allocations: 1.221 MB / 0.6929 GB, free: 3.668 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009483/0.1604, allocations: 0.6623 MB / 0.6935 GB, free: 3.004 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005159/0.161, allocations: 470.3 kB / 0.694 GB, free: 2.543 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006384/0.1616, allocations: 0.5176 MB / 0.6945 GB, free: 2.023 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001059/0.1617, allocations: 68 kB / 0.6945 GB, free: 1.957 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006355/0.1624, allocations: 371.3 kB / 0.6949 GB, free: 1.594 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003077/0.1627, allocations: 315.1 kB / 0.6952 GB, free: 1.285 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000452/0.1631, allocations: 449.7 kB / 0.6956 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001213/0.1644, allocations: 1.203 MB / 0.6968 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.1644, allocations: 0 / 0.6968 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.333e-06/0.1644, allocations: 4 kB / 0.6968 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.044e-05/0.1644, allocations: 0 / 0.6968 GB, free: 15.63 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.001871/0.1663, allocations: 1.166 MB / 0.6979 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.1663, allocations: 12.02 kB / 0.6979 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001433/0.1665, allocations: 122.7 kB / 0.6981 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001468/0.1679, allocations: 235.6 kB / 0.6983 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007927/0.1687, allocations: 0.5492 MB / 0.6988 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.725e-05/0.1688, allocations: 49.67 kB / 0.6989 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001057/0.1689, allocations: 64.28 kB / 0.6989 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001538/0.1705, allocations: 1.085 MB / 0.7 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.603e-05/0.1705, allocations: 7.938 kB / 0.7 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.162e-05/0.1706, allocations: 31.98 kB / 0.7 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001536/0.1707, allocations: 85.25 kB / 0.7001 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00119/0.1719, allocations: 0.7582 MB / 0.7008 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005676/0.1776, allocations: 5.886 MB / 0.7066 GB, free: 4.961 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001004/0.1786, allocations: 0.557 MB / 0.7071 GB, free: 4.395 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000456/0.1791, allocations: 330 kB / 0.7075 GB, free: 4.07 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.473e-05/0.1791, allocations: 4.438 kB / 0.7075 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.907e-05/0.1792, allocations: 39 kB / 0.7075 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=47): time 1.753e-06/0.1792, allocations: 0 / 0.7075 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48): time 0.003854/0.183, allocations: 1.978 MB / 0.7094 GB, free: 1.945 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.279e-05/0.1831, allocations: 55.84 kB / 0.7095 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006345/0.1837, allocations: 0.5547 MB / 0.71 GB, free: 1.312 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.54e-05/0.1838, allocations: 37.7 kB / 0.7101 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000306/0.1841, allocations: 426.8 kB / 0.7105 GB, free: 0.8477 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000148/0.1843, allocations: 169.6 kB / 0.7106 GB, free: 0.6797 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001905/0.1845, allocations: 126.5 kB / 0.7107 GB, free: 0.5469 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001918/0.1847, allocations: 374.7 kB / 0.7111 GB, free: 176 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004352/0.1851, allocations: 277.8 kB / 0.7114 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006196/0.1857, allocations: 493 kB / 0.7118 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001081/0.1868, allocations: 0.8093 MB / 0.7126 GB, free: 14.42 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/0.1868, allocations: 4 kB / 0.7126 GB, free: 14.42 MB / 0.5137 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001854/0.1887, allocations: 1.083 MB / 0.7137 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.1887, allocations: 8.125 kB / 0.7137 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.098e-06/0.1887, allocations: 12 kB / 0.7137 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008297/0.1896, allocations: 283.1 kB / 0.714 GB, free: 13.01 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004674/0.1901, allocations: 123.8 kB / 0.7141 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007086/0.1971, allocations: 7.135 MB / 0.7211 GB, free: 5.184 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006111/0.1978, allocations: 43.95 kB / 0.7211 GB, free: 5.141 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.928e-05/0.1978, allocations: 31.94 kB / 0.7211 GB, free: 5.109 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.0003277/0.1982, allocations: 255.5 kB / 0.7214 GB, free: 4.852 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.1983, allocations: 79.16 kB / 0.7215 GB, free: 4.773 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001594/0.1999, allocations: 0.8885 MB / 0.7223 GB, free: 3.863 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.1999, allocations: 4 kB / 0.7223 GB, free: 3.859 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.1999, allocations: 4 kB / 0.7223 GB, free: 3.855 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.1999, allocations: 0 / 0.7223 GB, free: 3.855 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002638/0.2026, allocations: 1.732 MB / 0.724 GB, free: 2.035 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.2026, allocations: 7.938 kB / 0.724 GB, free: 2.027 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002604/0.2029, allocations: 55.95 kB / 0.7241 GB, free: 1.973 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007406/0.2036, allocations: 263.3 kB / 0.7243 GB, free: 1.703 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.125e-05/0.2036, allocations: 12 kB / 0.7244 GB, free: 1.691 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007117/0.2108, allocations: 7.13 MB / 0.7313 GB, free: 10 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.2108, allocations: 192 / 0.7313 GB, free: 10 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0016/0.2124, allocations: 0.9757 MB / 0.7323 GB, free: 8.98 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002803/0.2127, allocations: 196.3 kB / 0.7325 GB, free: 8.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.655e-05/0.2128, allocations: 19.84 kB / 0.7325 GB, free: 8.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000365/0.2132, allocations: 31.97 kB / 0.7325 GB, free: 8.719 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.2133, allocations: 39.88 kB / 0.7325 GB, free: 8.68 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.141e-05/0.2133, allocations: 16 kB / 0.7326 GB, free: 8.664 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0004647/0.2138, allocations: 387.1 kB / 0.7329 GB, free: 8.293 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.8e-07/0.2138, allocations: 0 / 0.7329 GB, free: 8.293 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0007659/0.2146, allocations: 224 kB / 0.7331 GB, free: 8.074 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.001882/0.2165, allocations: 1.54 MB / 0.7346 GB, free: 6.473 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002116/0.2186, allocations: 1.338 MB / 0.7359 GB, free: 5.082 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.2186, allocations: 4 kB / 0.736 GB, free: 5.078 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001291/0.2199, allocations: 0.8858 MB / 0.7368 GB, free: 4.141 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009814/0.2209, allocations: 226.9 kB / 0.737 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008799/0.2297, allocations: 6.516 MB / 0.7434 GB, free: 13.07 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006951/0.2304, allocations: 1.009 MB / 0.7444 GB, free: 12.04 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0004046/0.2308, allocations: 130 kB / 0.7445 GB, free: 11.91 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003201/0.2312, allocations: 247.4 kB / 0.7447 GB, free: 11.67 MB / 0.545 GB Notification: Performance of SimCode: time 3.71e-07/0.2312, allocations: 0 / 0.7447 GB, free: 11.67 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05263/0.2838, allocations: 17.14 MB / 0.7615 GB, free: 10.82 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.625/9.909, allocations: 14.33 kB / 0.7615 GB, free: 10.8 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.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_OnePhase_Lines_Examples_ACLine_R.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1)