Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.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.Loads.Examples.ParallelResistors,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_ParallelResistors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_ParallelResistors",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.001067/0.001067, 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.001061/0.001061, allocations: 192.8 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.292/1.292, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001997/0.001997, allocations: 282.7 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.931/0.931, allocations: 169.3 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00171/0.00171, allocations: 101.6 kB / 0.5954 GB, free: 27.9 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.1403, allocations: 86.97 MB / 0.6803 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors): time 0.003784/0.1442, allocations: 2.633 MB / 0.6829 GB, free: 13.95 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001909/0.1461, allocations: 1.315 MB / 0.6841 GB, free: 12.63 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.229e-05/0.1462, allocations: 0 / 0.6841 GB, free: 12.63 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005975/0.1468, allocations: 183.2 kB / 0.6843 GB, free: 12.45 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003/0.1471, allocations: 167.3 kB / 0.6845 GB, free: 12.29 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002956/0.1474, allocations: 155.7 kB / 0.6846 GB, free: 12.13 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002544/0.1477, allocations: 263.1 kB / 0.6849 GB, free: 11.88 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002617/0.1479, allocations: 145.4 kB / 0.685 GB, free: 11.73 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001443/0.1481, allocations: 107.7 kB / 0.6851 GB, free: 11.63 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002171/0.1483, allocations: 127.5 kB / 0.6852 GB, free: 11.5 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.28e-05/0.1484, allocations: 16 kB / 0.6853 GB, free: 11.49 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002173/0.1486, allocations: 143.7 kB / 0.6854 GB, free: 11.35 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.382e-05/0.1487, allocations: 63.81 kB / 0.6855 GB, free: 11.29 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.069e-05/0.1488, allocations: 99.45 kB / 0.6856 GB, free: 11.19 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003214/0.1491, allocations: 291.1 kB / 0.6858 GB, free: 10.9 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1491, allocations: 0 / 0.6858 GB, free: 10.9 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1491, allocations: 0 / 0.6858 GB, free: 10.9 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.1491, allocations: 0 / 0.6858 GB, free: 10.9 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0006755/0.1498, allocations: 0.4891 MB / 0.6863 GB, free: 10.36 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.1498, allocations: 8.031 kB / 0.6863 GB, free: 10.36 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.364e-05/0.1499, allocations: 54.72 kB / 0.6864 GB, free: 10.29 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004725/0.1504, allocations: 72.58 kB / 0.6864 GB, free: 10.22 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000234/0.1506, allocations: 233.8 kB / 0.6867 GB, free: 9.957 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.476e-05/0.1507, allocations: 12.66 kB / 0.6867 GB, free: 9.945 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.866e-05/0.1507, allocations: 16.36 kB / 0.6867 GB, free: 9.93 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004661/0.1512, allocations: 312.6 kB / 0.687 GB, free: 9.598 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.1512, allocations: 7.922 kB / 0.687 GB, free: 9.59 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.365e-05/0.1512, allocations: 8 kB / 0.687 GB, free: 9.582 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.157e-05/0.1513, allocations: 24.27 kB / 0.687 GB, free: 9.559 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004768/0.1517, allocations: 260.6 kB / 0.6873 GB, free: 9.305 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001411/0.1532, allocations: 1.498 MB / 0.6887 GB, free: 7.66 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004677/0.1536, allocations: 257 kB / 0.689 GB, free: 7.391 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002166/0.1539, allocations: 133.6 kB / 0.6891 GB, free: 7.254 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.74e-05/0.1539, allocations: 4 kB / 0.6891 GB, free: 7.25 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.056e-05/0.1539, allocations: 30.56 kB / 0.6891 GB, free: 7.211 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 1.343e-06/0.1539, allocations: 0 / 0.6891 GB, free: 7.211 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007177/0.1546, allocations: 352.2 kB / 0.6895 GB, free: 6.863 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/0.1547, allocations: 77.11 kB / 0.6896 GB, free: 6.77 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001385/0.1548, allocations: 175.8 kB / 0.6897 GB, free: 6.59 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.146e-05/0.1549, allocations: 25.7 kB / 0.6897 GB, free: 6.559 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.488e-05/0.1549, allocations: 147.9 kB / 0.6899 GB, free: 6.41 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.325e-05/0.155, allocations: 59.19 kB / 0.6899 GB, free: 6.352 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.374e-05/0.1551, allocations: 41.7 kB / 0.69 GB, free: 6.305 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.894e-05/0.1552, allocations: 330.8 kB / 0.6903 GB, free: 5.973 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002091/0.1554, allocations: 108.8 kB / 0.6904 GB, free: 5.863 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002306/0.1556, allocations: 163.5 kB / 0.6906 GB, free: 5.676 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004336/0.1561, allocations: 288.3 kB / 0.6908 GB, free: 5.371 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.1561, allocations: 0 / 0.6908 GB, free: 5.371 MB / 494.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005352/0.1566, allocations: 307.1 kB / 0.6911 GB, free: 5.066 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.1566, allocations: 8 kB / 0.6911 GB, free: 5.059 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.1567, allocations: 0 / 0.6911 GB, free: 5.059 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.1567, allocations: 8.219 kB / 0.6911 GB, free: 5.051 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002968/0.157, allocations: 59.89 kB / 0.6912 GB, free: 4.992 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.157, allocations: 7.922 kB / 0.6912 GB, free: 4.984 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00018/0.1572, allocations: 27.83 kB / 0.6912 GB, free: 4.957 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.002e-05/0.1572, allocations: 15.92 kB / 0.6912 GB, free: 4.941 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002404/0.1575, allocations: 188.7 kB / 0.6914 GB, free: 4.754 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002074/0.1577, allocations: 162.5 kB / 0.6916 GB, free: 4.566 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000374/0.1581, allocations: 251.5 kB / 0.6918 GB, free: 4.293 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.222e-06/0.1581, allocations: 0 / 0.6918 GB, free: 4.293 MB / 494.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.00049/0.1586, allocations: 274.9 kB / 0.6921 GB, free: 4.02 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.374e-06/0.1586, allocations: 4 kB / 0.6921 GB, free: 4.016 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.1586, allocations: 4 kB / 0.6921 GB, free: 4.012 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.187e-06/0.1586, allocations: 0 / 0.6921 GB, free: 4.012 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002171/0.1588, allocations: 63.83 kB / 0.6922 GB, free: 3.949 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.894e-06/0.1588, allocations: 8 kB / 0.6922 GB, free: 3.941 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001661/0.159, allocations: 27.81 kB / 0.6922 GB, free: 3.914 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.383e-05/0.159, allocations: 12.25 kB / 0.6922 GB, free: 3.902 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001021/0.1591, allocations: 193.9 kB / 0.6924 GB, free: 3.707 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.919e-05/0.1592, allocations: 15.81 kB / 0.6924 GB, free: 3.691 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005076/0.1597, allocations: 271 kB / 0.6927 GB, free: 3.422 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.1597, allocations: 0 / 0.6927 GB, free: 3.422 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.1597, allocations: 3.938 kB / 0.6927 GB, free: 3.418 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.698e-06/0.1598, allocations: 4 kB / 0.6927 GB, free: 3.414 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009522/0.1607, allocations: 0.6733 MB / 0.6933 GB, free: 2.672 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.1607, allocations: 0 / 0.6933 GB, free: 2.672 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002463/0.161, allocations: 51.89 kB / 0.6934 GB, free: 2.621 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.723e-06/0.161, allocations: 12.05 kB / 0.6934 GB, free: 2.609 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.403e-05/0.161, allocations: 4 kB / 0.6934 GB, free: 2.605 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.161, allocations: 4 kB / 0.6934 GB, free: 2.602 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.161, allocations: 0 / 0.6934 GB, free: 2.602 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004975/0.1615, allocations: 455.4 kB / 0.6938 GB, free: 2.129 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.547e-05/0.1616, allocations: 116.8 kB / 0.6939 GB, free: 1.996 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.323e-05/0.1617, allocations: 7.938 kB / 0.6939 GB, free: 1.988 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002027/0.1619, allocations: 15.98 kB / 0.694 GB, free: 1.973 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.969e-05/0.1619, allocations: 15.97 kB / 0.694 GB, free: 1.957 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/0.162, allocations: 8 kB / 0.694 GB, free: 1.949 MB / 494.1 MB Notification: Performance of sorting global known variables: time 9.269e-05/0.1621, allocations: 131.8 kB / 0.6941 GB, free: 1.82 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1621, allocations: 0 / 0.6941 GB, free: 1.82 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004472/0.1625, allocations: 83.84 kB / 0.6942 GB, free: 1.738 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007226/0.1632, allocations: 0.992 MB / 0.6952 GB, free: 0.707 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0006875/0.1639, allocations: 389.8 kB / 0.6955 GB, free: 336 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.164, allocations: 0 / 0.6955 GB, free: 336 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00021/0.1642, allocations: 119.8 kB / 0.6956 GB, free: 216 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004491/0.1646, allocations: 38.78 kB / 0.6957 GB, free: 180 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002681/0.1673, allocations: 2.447 MB / 0.6981 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002992/0.1676, allocations: 0.748 MB / 0.6988 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001977/0.1678, allocations: 73.47 kB / 0.6989 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.168, allocations: 50.55 kB / 0.6989 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.168, allocations: 0 / 0.6989 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01965/0.1876, allocations: 4.154 MB / 0.703 GB, free: 8.672 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.004/7.192, allocations: 7.062 kB / 0.703 GB, free: 8.668 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors_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_Loads_Examples_ParallelResistors.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe 2>&1)