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.001037/0.001037, allocations: 104 kB / 15.6 MB, free: 148 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.001054/0.001055, allocations: 196.1 kB / 16.53 MB, free: 6.617 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.315/1.315, allocations: 222.9 MB / 240.2 MB, free: 4.207 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002238/0.002238, allocations: 295 kB / 290.7 MB, free: 1.812 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9721/0.9721, allocations: 169.3 MB / 0.4982 GB, free: 13.89 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001815/0.001815, allocations: 95.11 kB / 0.5954 GB, free: 27.88 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.1404, allocations: 86.97 MB / 0.6803 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors): time 0.004043/0.1445, allocations: 2.629 MB / 0.6829 GB, free: 13.97 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001842/0.1463, allocations: 1.316 MB / 0.6841 GB, free: 12.65 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.761e-05/0.1464, allocations: 3.938 kB / 0.6841 GB, free: 12.64 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006015/0.1471, allocations: 182.4 kB / 0.6843 GB, free: 12.47 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003246/0.1474, allocations: 167.3 kB / 0.6845 GB, free: 12.3 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003083/0.1477, allocations: 163.8 kB / 0.6846 GB, free: 12.15 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002595/0.148, allocations: 259.2 kB / 0.6849 GB, free: 11.89 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002899/0.1483, allocations: 148 kB / 0.685 GB, free: 11.75 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001399/0.1484, allocations: 99.69 kB / 0.6851 GB, free: 11.66 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002408/0.1487, allocations: 127.5 kB / 0.6852 GB, free: 11.53 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.323e-05/0.1487, allocations: 16 kB / 0.6853 GB, free: 11.52 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002287/0.1489, allocations: 143.7 kB / 0.6854 GB, free: 11.38 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.517e-05/0.149, allocations: 75.78 kB / 0.6855 GB, free: 11.3 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.457e-05/0.1491, allocations: 83.55 kB / 0.6855 GB, free: 11.22 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000302/0.1494, allocations: 287.2 kB / 0.6858 GB, free: 10.94 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1495, allocations: 0 / 0.6858 GB, free: 10.94 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1495, allocations: 0 / 0.6858 GB, free: 10.94 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.1495, allocations: 4 kB / 0.6858 GB, free: 10.93 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.0007157/0.1502, allocations: 0.495 MB / 0.6863 GB, free: 10.39 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.1502, allocations: 8.031 kB / 0.6863 GB, free: 10.38 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.088e-05/0.1503, allocations: 50.73 kB / 0.6864 GB, free: 10.32 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004891/0.1508, allocations: 76.58 kB / 0.6864 GB, free: 10.25 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002435/0.151, allocations: 234 kB / 0.6867 GB, free: 9.98 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.551e-05/0.1511, allocations: 16.64 kB / 0.6867 GB, free: 9.965 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.182e-05/0.1511, allocations: 16.36 kB / 0.6867 GB, free: 9.949 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005177/0.1516, allocations: 308.6 kB / 0.687 GB, free: 9.621 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.1516, allocations: 0 / 0.687 GB, free: 9.621 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.921e-05/0.1517, allocations: 8 kB / 0.687 GB, free: 9.613 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.25e-05/0.1517, allocations: 24.25 kB / 0.687 GB, free: 9.59 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005177/0.1523, allocations: 264.5 kB / 0.6873 GB, free: 9.332 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001546/0.1538, allocations: 1.502 MB / 0.6887 GB, free: 7.684 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004961/0.1543, allocations: 264.9 kB / 0.689 GB, free: 7.406 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002453/0.1546, allocations: 121.6 kB / 0.6891 GB, free: 7.281 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.286e-05/0.1546, allocations: 8 kB / 0.6891 GB, free: 7.273 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.139e-05/0.1546, allocations: 34.56 kB / 0.6891 GB, free: 7.23 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 1.342e-06/0.1546, allocations: 0 / 0.6891 GB, free: 7.23 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007684/0.1554, allocations: 345.2 kB / 0.6895 GB, free: 6.887 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.646e-05/0.1555, allocations: 77.11 kB / 0.6895 GB, free: 6.793 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001536/0.1556, allocations: 175.9 kB / 0.6897 GB, free: 6.613 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.147e-05/0.1557, allocations: 29.7 kB / 0.6897 GB, free: 6.578 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.76e-05/0.1558, allocations: 144 kB / 0.6899 GB, free: 6.434 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.41e-05/0.1558, allocations: 55.2 kB / 0.6899 GB, free: 6.379 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.8e-05/0.1559, allocations: 45.69 kB / 0.69 GB, free: 6.328 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.556e-05/0.156, allocations: 330.8 kB / 0.6903 GB, free: 5.996 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000216/0.1562, allocations: 104.8 kB / 0.6904 GB, free: 5.891 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002375/0.1565, allocations: 171.4 kB / 0.6906 GB, free: 5.695 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004783/0.157, allocations: 284.1 kB / 0.6908 GB, free: 5.395 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.157, allocations: 0 / 0.6908 GB, free: 5.395 MB / 494.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005597/0.1575, allocations: 311.3 kB / 0.6911 GB, free: 5.086 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.1576, allocations: 9.719 kB / 0.6911 GB, free: 5.078 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.1576, allocations: 0 / 0.6911 GB, free: 5.078 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.1576, allocations: 4 kB / 0.6911 GB, free: 5.074 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002844/0.1579, allocations: 55.89 kB / 0.6912 GB, free: 5.02 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.1579, allocations: 0 / 0.6912 GB, free: 5.02 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002062/0.1581, allocations: 40.03 kB / 0.6912 GB, free: 4.98 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.186e-05/0.1581, allocations: 11.94 kB / 0.6912 GB, free: 4.969 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002542/0.1584, allocations: 188.7 kB / 0.6914 GB, free: 4.781 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002248/0.1586, allocations: 158.1 kB / 0.6916 GB, free: 4.598 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004131/0.1591, allocations: 255.5 kB / 0.6918 GB, free: 4.32 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.193e-06/0.1591, allocations: 0 / 0.6918 GB, free: 4.32 MB / 494.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0005215/0.1596, allocations: 279.4 kB / 0.6921 GB, free: 4.043 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.248e-06/0.1596, allocations: 4.25 kB / 0.6921 GB, free: 4.039 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.546e-06/0.1596, allocations: 8 kB / 0.6921 GB, free: 4.031 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.278e-06/0.1596, allocations: 4 kB / 0.6921 GB, free: 4.027 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002206/0.1599, allocations: 51.89 kB / 0.6921 GB, free: 3.977 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.1599, allocations: 4 kB / 0.6922 GB, free: 3.973 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001692/0.1601, allocations: 31.77 kB / 0.6922 GB, free: 3.941 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.704e-05/0.1601, allocations: 4 kB / 0.6922 GB, free: 3.938 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.0001163/0.1602, allocations: 201.8 kB / 0.6924 GB, free: 3.734 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.078e-05/0.1603, allocations: 15.81 kB / 0.6924 GB, free: 3.719 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005275/0.1608, allocations: 274.9 kB / 0.6927 GB, free: 3.445 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.1608, allocations: 0 / 0.6927 GB, free: 3.445 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.1608, allocations: 7.984 kB / 0.6927 GB, free: 3.438 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.1608, allocations: 7.984 kB / 0.6927 GB, free: 3.43 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009881/0.1618, allocations: 0.6771 MB / 0.6933 GB, free: 2.684 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1619, allocations: 0 / 0.6933 GB, free: 2.684 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002331/0.1621, allocations: 47.89 kB / 0.6934 GB, free: 2.637 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.1621, allocations: 7.938 kB / 0.6934 GB, free: 2.629 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.861e-05/0.1621, allocations: 7.984 kB / 0.6934 GB, free: 2.621 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.1621, allocations: 4 kB / 0.6934 GB, free: 2.617 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1621, allocations: 0 / 0.6934 GB, free: 2.617 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005228/0.1627, allocations: 453.9 kB / 0.6938 GB, free: 2.145 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.72e-05/0.1628, allocations: 112.8 kB / 0.6939 GB, free: 2.016 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.787e-05/0.1628, allocations: 11.94 kB / 0.6939 GB, free: 2.004 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002055/0.163, allocations: 15.97 kB / 0.694 GB, free: 1.988 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.07e-05/0.1631, allocations: 15.98 kB / 0.694 GB, free: 1.973 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.191e-05/0.1631, allocations: 4 kB / 0.694 GB, free: 1.969 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001079/0.1632, allocations: 131.8 kB / 0.6941 GB, free: 1.84 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1632, allocations: 0 / 0.6941 GB, free: 1.84 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004458/0.1637, allocations: 83.84 kB / 0.6942 GB, free: 1.758 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.0007323/0.1644, allocations: 0.9936 MB / 0.6952 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0007111/0.1651, allocations: 386.5 kB / 0.6955 GB, free: 360 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1651, allocations: 128 / 0.6955 GB, free: 360 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002062/0.1654, allocations: 119.8 kB / 0.6956 GB, free: 240 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004502/0.1658, allocations: 41.83 kB / 0.6957 GB, free: 204 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002708/0.1685, allocations: 2.443 MB / 0.6981 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000271/0.1688, allocations: 0.7441 MB / 0.6988 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001968/0.169, allocations: 73.47 kB / 0.6989 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.1691, allocations: 51.41 kB / 0.6989 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of SimCode: time 2.91e-07/0.1691, allocations: 0 / 0.6989 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01915/0.1883, allocations: 4.159 MB / 0.703 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.703/8.891, allocations: 11.28 kB / 0.703 GB, free: 8.688 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)