Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.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_RL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",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.00105/0.00105, 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.001056/0.001056, allocations: 195.4 kB / 16.53 MB, free: 6.699 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.301/1.301, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002006/0.002006, allocations: 283.1 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9383/0.9383, allocations: 169.3 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001671/0.001671, allocations: 98.31 kB / 0.5954 GB, free: 28.09 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.135, allocations: 86.97 MB / 0.6803 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.006396/0.1414, allocations: 5.457 MB / 0.6856 GB, free: 11.11 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00357/0.145, allocations: 2.623 MB / 0.6882 GB, free: 8.477 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002126/0.1452, allocations: 19.88 kB / 0.6882 GB, free: 8.457 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001597/0.1468, allocations: 0.6807 MB / 0.6889 GB, free: 7.773 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006787/0.1475, allocations: 405.7 kB / 0.6892 GB, free: 7.375 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007076/0.1482, allocations: 389.8 kB / 0.6896 GB, free: 6.996 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007621/0.149, allocations: 0.9514 MB / 0.6905 GB, free: 6.043 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000543/0.1495, allocations: 462.5 kB / 0.691 GB, free: 5.59 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003504/0.1499, allocations: 374.6 kB / 0.6913 GB, free: 5.223 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004233/0.1503, allocations: 402.4 kB / 0.6917 GB, free: 4.828 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.565e-05/0.1504, allocations: 51.94 kB / 0.6918 GB, free: 4.777 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005135/0.1509, allocations: 363.3 kB / 0.6921 GB, free: 4.422 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002121/0.1512, allocations: 255.3 kB / 0.6924 GB, free: 4.172 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003067/0.1515, allocations: 346.2 kB / 0.6927 GB, free: 3.832 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008409/0.1523, allocations: 0.9578 MB / 0.6936 GB, free: 2.871 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.1523, allocations: 0 / 0.6936 GB, free: 2.871 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.1523, allocations: 0 / 0.6936 GB, free: 2.871 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.879e-06/0.1524, allocations: 0 / 0.6936 GB, free: 2.871 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001345/0.1537, allocations: 0.9738 MB / 0.6946 GB, free: 1.844 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.1537, allocations: 8.031 kB / 0.6946 GB, free: 1.836 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001048/0.1539, allocations: 106.7 kB / 0.6947 GB, free: 1.723 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001299/0.1552, allocations: 191.8 kB / 0.6949 GB, free: 1.535 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005888/0.1558, allocations: 482.5 kB / 0.6953 GB, free: 1.027 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.958e-05/0.1558, allocations: 41.36 kB / 0.6954 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/0.1559, allocations: 52.47 kB / 0.6954 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009944/0.1569, allocations: 0.84 MB / 0.6963 GB, free: 20 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/0.157, allocations: 3.984 kB / 0.6963 GB, free: 16 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.133e-05/0.1571, allocations: 32.08 kB / 0.6963 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000184/0.1572, allocations: 64.94 kB / 0.6963 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008006/0.1581, allocations: 0.5773 MB / 0.6969 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003697/0.1618, allocations: 4.581 MB / 0.7014 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004296/0.1622, allocations: 295.3 kB / 0.7017 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000284/0.1625, allocations: 225.3 kB / 0.7019 GB, free: 9.887 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.403e-05/0.1625, allocations: 8.219 kB / 0.7019 GB, free: 9.879 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.329e-05/0.1626, allocations: 34.84 kB / 0.7019 GB, free: 9.836 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=33): time 1.543e-06/0.1626, allocations: 4 kB / 0.7019 GB, free: 9.832 MB / 0.4981 GB Notification: Performance of matching and sorting (n=40): time 0.005205/0.1678, allocations: 2.631 MB / 0.7045 GB, free: 7.074 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.84e-05/0.1678, allocations: 55.41 kB / 0.7045 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004078/0.1682, allocations: 461.9 kB / 0.705 GB, free: 6.543 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.276e-05/0.1683, allocations: 33.7 kB / 0.705 GB, free: 6.504 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001873/0.1685, allocations: 343.6 kB / 0.7053 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.566e-05/0.1686, allocations: 142 kB / 0.7055 GB, free: 6.02 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001497/0.1687, allocations: 102.2 kB / 0.7056 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.1688, allocations: 362.8 kB / 0.7059 GB, free: 5.551 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003309/0.1692, allocations: 237 kB / 0.7062 GB, free: 5.32 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004316/0.1696, allocations: 412 kB / 0.7065 GB, free: 4.844 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000788/0.1704, allocations: 0.674 MB / 0.7072 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1704, allocations: 4 kB / 0.7072 GB, free: 4.094 MB / 0.4981 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001556/0.172, allocations: 0.9176 MB / 0.7081 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.172, allocations: 8.062 kB / 0.7081 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.172, allocations: 11.94 kB / 0.7081 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007405/0.1728, allocations: 226.4 kB / 0.7083 GB, free: 2.91 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004829/0.1733, allocations: 111.8 kB / 0.7084 GB, free: 2.801 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004573/0.1778, allocations: 5.34 MB / 0.7137 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003854/0.1782, allocations: 31.97 kB / 0.7137 GB, free: 13.01 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.957e-05/0.1783, allocations: 31.92 kB / 0.7137 GB, free: 12.98 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(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.0002305/0.1785, allocations: 218.4 kB / 0.7139 GB, free: 12.76 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.818e-05/0.1786, allocations: 63.34 kB / 0.714 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001411/0.18, allocations: 0.7735 MB / 0.7147 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.1801, allocations: 8 kB / 0.7148 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.1801, allocations: 0 / 0.7148 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.1801, allocations: 3.984 kB / 0.7148 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002183/0.1823, allocations: 1.486 MB / 0.7162 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.1823, allocations: 7.984 kB / 0.7162 GB, free: 10.31 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003606/0.1826, allocations: 64.11 kB / 0.7163 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006419/0.1833, allocations: 214.6 kB / 0.7165 GB, free: 10.03 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.914e-05/0.1834, allocations: 11.98 kB / 0.7165 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004348/0.1877, allocations: 5.274 MB / 0.7216 GB, free: 4.328 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.626e-06/0.1877, allocations: 4.031 kB / 0.7216 GB, free: 4.324 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00159/0.1893, allocations: 1.128 MB / 0.7227 GB, free: 3.148 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001853/0.1895, allocations: 176.4 kB / 0.7229 GB, free: 2.957 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.909e-05/0.1896, allocations: 12.06 kB / 0.7229 GB, free: 2.945 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003574/0.19, allocations: 27.97 kB / 0.723 GB, free: 2.918 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.613e-05/0.19, allocations: 31.95 kB / 0.723 GB, free: 2.887 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-05/0.1901, allocations: 15.94 kB / 0.723 GB, free: 2.871 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002832/0.1904, allocations: 306.9 kB / 0.7233 GB, free: 2.574 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.7e-07/0.1904, allocations: 0 / 0.7233 GB, free: 2.574 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005681/0.1909, allocations: 172 kB / 0.7235 GB, free: 2.406 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001878/0.1928, allocations: 1.699 MB / 0.7251 GB, free: 0.6445 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001505/0.1943, allocations: 1.06 MB / 0.7262 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1944, allocations: 0 / 0.7262 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.000884/0.1952, allocations: 0.6877 MB / 0.7268 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008497/0.1961, allocations: 186 kB / 0.727 GB, free: 14.65 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006838/0.203, allocations: 5.686 MB / 0.7326 GB, free: 8.672 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004591/0.2034, allocations: 0.9494 MB / 0.7335 GB, free: 7.695 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003319/0.2038, allocations: 109 kB / 0.7336 GB, free: 7.59 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002366/0.204, allocations: 207.4 kB / 0.7338 GB, free: 7.387 MB / 0.5294 GB Notification: Performance of SimCode: time 3e-07/0.204, allocations: 4 kB / 0.7338 GB, free: 7.383 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03656/0.2406, allocations: 13.95 MB / 0.7474 GB, free: 9.719 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.758/8.999, allocations: 13.89 kB / 0.7474 GB, free: 9.711 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_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_RL.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1)