Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.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_L,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_L",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_L",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.001164/0.001164, 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.001227/0.001227, allocations: 194.7 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.366/1.366, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002478/0.002478, allocations: 279 kB / 290.7 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1/1, allocations: 169.2 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002701/0.002701, allocations: 100 kB / 0.5954 GB, free: 27.96 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1365, allocations: 86.97 MB / 0.6803 GB, free: 0.582 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.008219/0.1447, allocations: 6.077 MB / 0.6862 GB, free: 10.49 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0049/0.1496, allocations: 3.141 MB / 0.6893 GB, free: 7.34 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002755/0.1499, allocations: 31.81 kB / 0.6893 GB, free: 7.309 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00228/0.1522, allocations: 0.9343 MB / 0.6902 GB, free: 6.371 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008927/0.1531, allocations: 469.5 kB / 0.6907 GB, free: 5.91 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001001/0.1541, allocations: 481.7 kB / 0.6911 GB, free: 5.441 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001119/0.1553, allocations: 1.096 MB / 0.6922 GB, free: 4.344 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008776/0.1562, allocations: 0.6388 MB / 0.6928 GB, free: 3.703 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004856/0.1567, allocations: 438.4 kB / 0.6933 GB, free: 3.273 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005332/0.1572, allocations: 466.2 kB / 0.6937 GB, free: 2.816 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.053e-05/0.1573, allocations: 60 kB / 0.6938 GB, free: 2.758 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00077/0.1581, allocations: 487 kB / 0.6942 GB, free: 2.281 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002803/0.1584, allocations: 295.2 kB / 0.6945 GB, free: 1.992 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003835/0.1588, allocations: 394 kB / 0.6949 GB, free: 1.605 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001183/0.16, allocations: 1.164 MB / 0.696 GB, free: 448 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.16, allocations: 0 / 0.696 GB, free: 448 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.16, allocations: 0 / 0.696 GB, free: 448 kB / 494.1 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.16, allocations: 0 / 0.696 GB, free: 448 kB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001586/0.1616, allocations: 1.058 MB / 0.6971 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.1616, allocations: 8.031 kB / 0.6971 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001342/0.1618, allocations: 118.7 kB / 0.6972 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001441/0.1632, allocations: 219.7 kB / 0.6974 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007599/0.164, allocations: 0.5375 MB / 0.6979 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.198e-05/0.164, allocations: 45.67 kB / 0.6979 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/0.1641, allocations: 60.38 kB / 0.698 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001464/0.1656, allocations: 1.037 MB / 0.699 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.059e-05/0.1657, allocations: 11.92 kB / 0.699 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.758e-05/0.1657, allocations: 27.98 kB / 0.6991 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.281e-05/0.1658, allocations: 69.28 kB / 0.6991 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001079/0.1669, allocations: 0.6918 MB / 0.6998 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005578/0.1725, allocations: 5.76 MB / 0.7054 GB, free: 6.168 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008976/0.1734, allocations: 0.591 MB / 0.706 GB, free: 5.531 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007943/0.1742, allocations: 416.6 kB / 0.7064 GB, free: 5.121 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.959e-05/0.1743, allocations: 4 kB / 0.7064 GB, free: 5.117 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/0.1743, allocations: 42.5 kB / 0.7064 GB, free: 5.066 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=41): time 1.964e-06/0.1743, allocations: 4 kB / 0.7064 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of matching and sorting (n=42): time 0.004555/0.1789, allocations: 2.05 MB / 0.7085 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.865e-05/0.1789, allocations: 63.39 kB / 0.7085 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000498/0.1794, allocations: 450.8 kB / 0.7089 GB, free: 2.398 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.684e-05/0.1795, allocations: 33.7 kB / 0.709 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000284/0.1798, allocations: 387 kB / 0.7093 GB, free: 1.973 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001231/0.1799, allocations: 153.8 kB / 0.7095 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001688/0.1801, allocations: 106.2 kB / 0.7096 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001727/0.1803, allocations: 362.8 kB / 0.7099 GB, free: 1.348 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003755/0.1806, allocations: 249.2 kB / 0.7102 GB, free: 1.105 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005424/0.1812, allocations: 461 kB / 0.7106 GB, free: 0.5586 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001017/0.1822, allocations: 0.748 MB / 0.7113 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.1822, allocations: 8 kB / 0.7114 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001928/0.1842, allocations: 1.058 MB / 0.7124 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.1842, allocations: 8 kB / 0.7124 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.1842, allocations: 4 kB / 0.7124 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00106/0.1853, allocations: 335.8 kB / 0.7127 GB, free: 14.28 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003209/0.1856, allocations: 99.81 kB / 0.7128 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007782/0.1934, allocations: 7.525 MB / 0.7202 GB, free: 6.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003623/0.1938, allocations: 32.02 kB / 0.7202 GB, free: 6.059 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.48e-05/0.1938, allocations: 32 kB / 0.7202 GB, free: 6.027 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 (53): * Single equations (assignments): 49 * 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 {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003182/0.1942, allocations: 244.2 kB / 0.7205 GB, free: 5.781 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.234e-05/0.1943, allocations: 59.28 kB / 0.7205 GB, free: 5.723 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001767/0.196, allocations: 0.9236 MB / 0.7214 GB, free: 4.781 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.196, allocations: 4 kB / 0.7214 GB, free: 4.777 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.1961, allocations: 4 kB / 0.7214 GB, free: 4.773 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.1961, allocations: 0 / 0.7214 GB, free: 4.773 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002728/0.1988, allocations: 1.708 MB / 0.7231 GB, free: 2.977 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.1988, allocations: 0 / 0.7231 GB, free: 2.977 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001728/0.199, allocations: 43.91 kB / 0.7231 GB, free: 2.934 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000967/0.2, allocations: 327.3 kB / 0.7234 GB, free: 2.602 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.984e-05/0.2, allocations: 8 kB / 0.7235 GB, free: 2.594 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007713/0.2077, allocations: 7.524 MB / 0.7308 GB, free: 10.51 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.2077, allocations: 0 / 0.7308 GB, free: 10.51 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001769/0.2095, allocations: 1.023 MB / 0.7318 GB, free: 9.441 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002362/0.2098, allocations: 172.4 kB / 0.732 GB, free: 9.254 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.632e-05/0.2098, allocations: 12 kB / 0.732 GB, free: 9.242 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002809/0.2101, allocations: 23.97 kB / 0.732 GB, free: 9.219 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.2102, allocations: 39.89 kB / 0.732 GB, free: 9.18 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.62e-05/0.2103, allocations: 8 kB / 0.732 GB, free: 9.172 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00035/0.2106, allocations: 318.7 kB / 0.7323 GB, free: 8.863 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2106, allocations: 0 / 0.7323 GB, free: 8.863 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0007485/0.2114, allocations: 196 kB / 0.7325 GB, free: 8.672 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 (23): * Single equations (assignments): 19 * 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 {(3,7,88.9%), (2,2,100.0%), (1,3,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002072/0.2135, allocations: 1.559 MB / 0.7341 GB, free: 7.051 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002012/0.2155, allocations: 1.254 MB / 0.7353 GB, free: 5.746 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.2155, allocations: 0 / 0.7353 GB, free: 5.746 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001279/0.2168, allocations: 0.8582 MB / 0.7361 GB, free: 4.836 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009726/0.2178, allocations: 208.3 kB / 0.7363 GB, free: 4.648 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008239/0.226, allocations: 5.949 MB / 0.7421 GB, free: 14.37 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006699/0.2267, allocations: 0.9881 MB / 0.7431 GB, free: 13.35 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0002892/0.227, allocations: 97.17 kB / 0.7432 GB, free: 13.25 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002745/0.2273, allocations: 227.4 kB / 0.7434 GB, free: 13.03 MB / 0.545 GB Notification: Performance of SimCode: time 3.51e-07/0.2273, allocations: 0 / 0.7434 GB, free: 13.03 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05117/0.2785, allocations: 15.18 MB / 0.7582 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.428/9.706, allocations: 13.39 kB / 0.7582 GB, free: 14.09 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_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_L.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1)