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.0007373/0.0007375, allocations: 91.3 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004397/0.004397, allocations: 172.4 kB / 16.26 MB, free: 6.613 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.278/1.278, allocations: 223.2 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001707/0.001707, allocations: 262.6 kB / 291.7 MB, free: 1.891 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.929/0.929, allocations: 169.5 MB / 0.5004 GB, free: 14.04 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004014/0.0004014, allocations: 12.8 kB / 0.5988 GB, free: 28.1 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1486/0.149, allocations: 88.55 MB / 0.6852 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors): time 0.002633/0.1517, allocations: 2.324 MB / 0.6875 GB, free: 12.61 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001724/0.1534, allocations: 1.289 MB / 0.6888 GB, free: 11.32 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.895e-05/0.1535, allocations: 4 kB / 0.6888 GB, free: 11.31 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001242/0.1536, allocations: 28.28 kB / 0.6888 GB, free: 11.29 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000344/0.154, allocations: 156.6 kB / 0.689 GB, free: 11.13 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003073/0.1543, allocations: 161.8 kB / 0.6891 GB, free: 10.98 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003371/0.1547, allocations: 363.8 kB / 0.6895 GB, free: 10.62 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004379/0.1551, allocations: 313.2 kB / 0.6898 GB, free: 10.29 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001325/0.1552, allocations: 83.69 kB / 0.6898 GB, free: 10.21 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002031/0.1555, allocations: 123.5 kB / 0.69 GB, free: 10.09 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.087e-05/0.1555, allocations: 4.781 kB / 0.69 GB, free: 10.09 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002345/0.1557, allocations: 183.6 kB / 0.6901 GB, free: 9.906 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.79e-05/0.1558, allocations: 60.33 kB / 0.6902 GB, free: 9.848 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.747e-05/0.1559, allocations: 110.1 kB / 0.6903 GB, free: 9.734 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002884/0.1562, allocations: 295 kB / 0.6906 GB, free: 9.445 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1562, allocations: 0 / 0.6906 GB, free: 9.445 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1562, allocations: 0.5312 kB / 0.6906 GB, free: 9.445 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.777e-06/0.1562, allocations: 1.188 kB / 0.6906 GB, free: 9.445 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.0006099/0.1568, allocations: 471.9 kB / 0.691 GB, free: 8.934 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.256e-05/0.1569, allocations: 12.03 kB / 0.691 GB, free: 8.922 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.175e-05/0.1569, allocations: 54.72 kB / 0.6911 GB, free: 8.859 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000467/0.1574, allocations: 60.67 kB / 0.6911 GB, free: 8.801 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002266/0.1576, allocations: 238.2 kB / 0.6914 GB, free: 8.531 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/0.1577, allocations: 12.64 kB / 0.6914 GB, free: 8.52 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.189e-05/0.1577, allocations: 20.36 kB / 0.6914 GB, free: 8.5 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004869/0.1582, allocations: 312.6 kB / 0.6917 GB, free: 8.168 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.1582, allocations: 0 / 0.6917 GB, free: 8.168 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.313e-05/0.1582, allocations: 8 kB / 0.6917 GB, free: 8.16 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.796e-05/0.1583, allocations: 28.25 kB / 0.6917 GB, free: 8.133 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000489/0.1588, allocations: 268.5 kB / 0.692 GB, free: 7.871 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001418/0.1602, allocations: 1.514 MB / 0.6935 GB, free: 6.211 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004818/0.1607, allocations: 268 kB / 0.6937 GB, free: 5.934 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002344/0.161, allocations: 133.6 kB / 0.6939 GB, free: 5.797 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.647e-05/0.161, allocations: 0 / 0.6939 GB, free: 5.797 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.989e-05/0.161, allocations: 38.48 kB / 0.6939 GB, free: 5.75 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 1.022e-06/0.161, allocations: 4 kB / 0.6939 GB, free: 5.746 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007223/0.1617, allocations: 353.2 kB / 0.6942 GB, free: 5.395 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.05e-05/0.1618, allocations: 81.09 kB / 0.6943 GB, free: 5.297 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.1619, allocations: 178.7 kB / 0.6945 GB, free: 5.109 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.526e-05/0.162, allocations: 25.7 kB / 0.6945 GB, free: 5.078 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.096e-05/0.162, allocations: 140.1 kB / 0.6946 GB, free: 4.938 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.188e-05/0.1621, allocations: 55.19 kB / 0.6947 GB, free: 4.883 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.51e-05/0.1621, allocations: 25.7 kB / 0.6947 GB, free: 4.852 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.679e-05/0.1622, allocations: 326.8 kB / 0.695 GB, free: 4.523 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002133/0.1625, allocations: 119.9 kB / 0.6951 GB, free: 4.406 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002426/0.1627, allocations: 167.6 kB / 0.6953 GB, free: 4.215 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004697/0.1632, allocations: 300.6 kB / 0.6956 GB, free: 3.898 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1632, allocations: 0 / 0.6956 GB, free: 3.898 MB / 494.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000557/0.1638, allocations: 317.3 kB / 0.6959 GB, free: 3.582 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.452e-05/0.1639, allocations: 141.4 kB / 0.696 GB, free: 3.418 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.1639, allocations: 4 kB / 0.696 GB, free: 3.414 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.1639, allocations: 4 kB / 0.696 GB, free: 3.41 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002773/0.1642, allocations: 59.83 kB / 0.6961 GB, free: 3.352 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.1642, allocations: 4 kB / 0.6961 GB, free: 3.348 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002126/0.1644, allocations: 39.72 kB / 0.6961 GB, free: 3.309 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.799e-05/0.1644, allocations: 12 kB / 0.6961 GB, free: 3.297 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.831e-06/0.1645, allocations: 4 kB / 0.6961 GB, free: 3.293 MB / 494.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004615/0.1649, allocations: 243.8 kB / 0.6964 GB, free: 3.055 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.154e-06/0.1649, allocations: 0 / 0.6964 GB, free: 3.055 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.615e-06/0.1649, allocations: 4 kB / 0.6964 GB, free: 3.051 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002186/0.1652, allocations: 59.89 kB / 0.6964 GB, free: 2.992 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.1652, allocations: 7.984 kB / 0.6965 GB, free: 2.984 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001482/0.1653, allocations: 27.81 kB / 0.6965 GB, free: 2.957 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.643e-05/0.1654, allocations: 12 kB / 0.6965 GB, free: 2.945 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.0001508/0.1655, allocations: 223.4 kB / 0.6967 GB, free: 2.719 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.665e-05/0.1656, allocations: 15.81 kB / 0.6967 GB, free: 2.703 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005423/0.1661, allocations: 279 kB / 0.697 GB, free: 2.426 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.1661, allocations: 4 kB / 0.697 GB, free: 2.422 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.1661, allocations: 8 kB / 0.697 GB, free: 2.414 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.1662, allocations: 0 / 0.697 GB, free: 2.414 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009833/0.1671, allocations: 0.7005 MB / 0.6977 GB, free: 1.645 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.1672, allocations: 0 / 0.6977 GB, free: 1.645 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002283/0.1674, allocations: 51.89 kB / 0.6977 GB, free: 1.594 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.1674, allocations: 0 / 0.6977 GB, free: 1.594 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.382e-05/0.1674, allocations: 4 kB / 0.6977 GB, free: 1.59 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.209e-06/0.1674, allocations: 7.938 kB / 0.6977 GB, free: 1.582 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.1674, allocations: 0 / 0.6977 GB, free: 1.582 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005283/0.168, allocations: 462.8 kB / 0.6982 GB, free: 1.102 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.168e-05/0.1681, allocations: 116.8 kB / 0.6983 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.797e-05/0.1681, allocations: 4 kB / 0.6983 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002213/0.1683, allocations: 27.91 kB / 0.6983 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.185e-05/0.1684, allocations: 11.98 kB / 0.6983 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.1684, allocations: 8 kB / 0.6983 GB, free: 0.918 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001005/0.1685, allocations: 131.8 kB / 0.6985 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1685, allocations: 0 / 0.6985 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004434/0.169, allocations: 83.84 kB / 0.6985 GB, free: 0.707 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.0007784/0.1698, allocations: 1 MB / 0.6995 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006884/0.1705, allocations: 386.4 kB / 0.6999 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1705, allocations: 4.125 kB / 0.6999 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002156/0.1707, allocations: 123.8 kB / 0.7 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004605/0.1712, allocations: 34.97 kB / 0.7 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002794/0.174, allocations: 2.557 MB / 0.7025 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002785/0.1743, allocations: 0.7441 MB / 0.7033 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001934/0.1745, allocations: 77.47 kB / 0.7033 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.1746, allocations: 47.42 kB / 0.7034 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of SimCode: time 3.91e-07/0.1746, allocations: 0 / 0.7034 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03036/0.2049, allocations: 3.821 MB / 0.7071 GB, free: 7.906 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001888/0.2052, allocations: 225.4 kB / 0.7073 GB, free: 7.656 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.682/1.888, allocations: 0 / 0.7073 GB, free: 7.656 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_ParallelResistors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_ParallelResistors.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe 2>&1)