Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.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.DC.Lines.Examples.Resistance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance",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: 111.3 kB / 15.23 MB, free: 0.6406 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.001148/0.001148, allocations: 196.4 kB / 16.14 MB, free: 6.707 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.272/1.272, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00196/0.00196, allocations: 294.8 kB / 290.2 MB, free: 2.215 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9121/0.9121, allocations: 169.2 MB / 0.4977 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001613/0.001613, allocations: 86.83 kB / 0.5946 GB, free: 28.28 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1491/0.1507, allocations: 86.99 MB / 0.6796 GB, free: 1.082 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.Resistance): time 0.004173/0.1549, allocations: 3.099 MB / 0.6826 GB, free: 13.98 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001837/0.1567, allocations: 1.335 MB / 0.6839 GB, free: 12.64 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001065/0.1569, allocations: 7.938 kB / 0.6839 GB, free: 12.63 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008514/0.1577, allocations: 311 kB / 0.6842 GB, free: 12.32 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002593/0.158, allocations: 139.4 kB / 0.6843 GB, free: 12.19 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002803/0.1583, allocations: 122.2 kB / 0.6844 GB, free: 12.07 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000382/0.1587, allocations: 442.7 kB / 0.6849 GB, free: 11.64 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002784/0.159, allocations: 160.3 kB / 0.685 GB, free: 11.48 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001215/0.1591, allocations: 103.6 kB / 0.6851 GB, free: 11.38 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002598/0.1594, allocations: 143.5 kB / 0.6852 GB, free: 11.24 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.143e-05/0.1594, allocations: 16 kB / 0.6853 GB, free: 11.23 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003036/0.1597, allocations: 207.6 kB / 0.6855 GB, free: 11.02 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.426e-05/0.1598, allocations: 79.78 kB / 0.6855 GB, free: 10.95 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.1599, allocations: 99.53 kB / 0.6856 GB, free: 10.85 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003673/0.1603, allocations: 342.9 kB / 0.686 GB, free: 10.51 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1603, allocations: 0 / 0.686 GB, free: 10.51 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1603, allocations: 0 / 0.686 GB, free: 10.51 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.1603, allocations: 0 / 0.686 GB, free: 10.51 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007266/0.1611, allocations: 0.5108 MB / 0.6865 GB, free: 9.949 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.1611, allocations: 12.03 kB / 0.6865 GB, free: 9.938 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.193e-05/0.1612, allocations: 62.66 kB / 0.6865 GB, free: 9.867 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005456/0.1617, allocations: 76.59 kB / 0.6866 GB, free: 9.793 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002666/0.162, allocations: 247.9 kB / 0.6868 GB, free: 9.512 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.623e-05/0.162, allocations: 16.75 kB / 0.6869 GB, free: 9.496 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.615e-05/0.162, allocations: 16.38 kB / 0.6869 GB, free: 9.48 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004099/0.1625, allocations: 307.3 kB / 0.6872 GB, free: 9.16 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.1625, allocations: 0 / 0.6872 GB, free: 9.16 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.292e-05/0.1625, allocations: 8 kB / 0.6872 GB, free: 9.152 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.026e-05/0.1625, allocations: 16.36 kB / 0.6872 GB, free: 9.137 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002803/0.1628, allocations: 193 kB / 0.6874 GB, free: 8.949 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00136/0.1642, allocations: 1.464 MB / 0.6888 GB, free: 7.32 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002465/0.1645, allocations: 175.7 kB / 0.689 GB, free: 7.121 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.583e-05/0.1645, allocations: 36.84 kB / 0.689 GB, free: 7.082 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.737e-06/0.1645, allocations: 0 / 0.689 GB, free: 7.082 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.127e-05/0.1646, allocations: 34.56 kB / 0.689 GB, free: 7.039 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 2.635e-06/0.1646, allocations: 0 / 0.689 GB, free: 7.039 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004917/0.1651, allocations: 231.7 kB / 0.6893 GB, free: 6.785 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.512e-05/0.1651, allocations: 55.41 kB / 0.6893 GB, free: 6.719 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001836/0.1653, allocations: 200.1 kB / 0.6895 GB, free: 6.516 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.1653, allocations: 29.7 kB / 0.6895 GB, free: 6.48 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.1654, allocations: 163.5 kB / 0.6897 GB, free: 6.316 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.288e-05/0.1655, allocations: 27.64 kB / 0.6897 GB, free: 6.289 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.463e-05/0.1655, allocations: 37.7 kB / 0.6897 GB, free: 6.246 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.1656, allocations: 326.8 kB / 0.6901 GB, free: 5.918 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.313e-05/0.1657, allocations: 35.98 kB / 0.6901 GB, free: 5.883 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.786e-05/0.1658, allocations: 100.5 kB / 0.6902 GB, free: 5.754 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001576/0.166, allocations: 140.5 kB / 0.6903 GB, free: 5.586 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/0.166, allocations: 4 kB / 0.6903 GB, free: 5.582 MB / 494.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002992/0.1663, allocations: 198 kB / 0.6905 GB, free: 5.379 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.1663, allocations: 5.875 kB / 0.6905 GB, free: 5.375 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.1663, allocations: 4 kB / 0.6905 GB, free: 5.371 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000137/0.1665, allocations: 24.84 kB / 0.6905 GB, free: 5.344 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.782e-05/0.1666, allocations: 27.94 kB / 0.6906 GB, free: 5.316 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009368/0.1675, allocations: 1.327 MB / 0.6919 GB, free: 3.852 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.1676, allocations: 11.84 kB / 0.6919 GB, free: 3.84 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.242e-05/0.1677, allocations: 12.16 kB / 0.6919 GB, free: 3.828 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00013/0.1678, allocations: 146.4 kB / 0.692 GB, free: 3.676 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.194e-05/0.1678, allocations: 23.73 kB / 0.6921 GB, free: 3.652 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.753e-05/0.1679, allocations: 21.34 kB / 0.6921 GB, free: 3.633 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.1679, allocations: 0 / 0.6921 GB, free: 3.633 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.1679, allocations: 0 / 0.6921 GB, free: 3.633 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.1679, allocations: 0 / 0.6921 GB, free: 3.633 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004544/0.1684, allocations: 451.3 kB / 0.6925 GB, free: 3.133 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.1684, allocations: 0 / 0.6925 GB, free: 3.133 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.716e-05/0.1684, allocations: 11.94 kB / 0.6925 GB, free: 3.121 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.073e-05/0.1685, allocations: 20.84 kB / 0.6925 GB, free: 3.098 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.594e-06/0.1685, allocations: 0 / 0.6925 GB, free: 3.098 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008667/0.1694, allocations: 1.315 MB / 0.6938 GB, free: 1.648 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1694, allocations: 0 / 0.6938 GB, free: 1.648 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000208/0.1696, allocations: 212.2 kB / 0.694 GB, free: 1.422 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.181e-05/0.1697, allocations: 97.14 kB / 0.6941 GB, free: 1.309 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.346e-05/0.1697, allocations: 7.922 kB / 0.6941 GB, free: 1.301 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001046/0.1698, allocations: 7.938 kB / 0.6941 GB, free: 1.293 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.683e-05/0.1698, allocations: 0 / 0.6941 GB, free: 1.293 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.1699, allocations: 8 kB / 0.6941 GB, free: 1.285 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001178/0.17, allocations: 139.2 kB / 0.6943 GB, free: 1.148 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.783e-06/0.17, allocations: 0 / 0.6943 GB, free: 1.148 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003031/0.1703, allocations: 59.69 kB / 0.6943 GB, free: 1.09 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004773/0.1708, allocations: 0.7427 MB / 0.6951 GB, free: 324 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000313/0.1711, allocations: 211 kB / 0.6953 GB, free: 100 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1711, allocations: 4.062 kB / 0.6953 GB, free: 96 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001575/0.1713, allocations: 150.5 kB / 0.6954 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000345/0.1716, allocations: 40.19 kB / 0.6954 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002077/0.1737, allocations: 2.103 MB / 0.6975 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002961/0.174, allocations: 0.7478 MB / 0.6982 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.311e-05/0.1741, allocations: 25.92 kB / 0.6982 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.338e-05/0.1742, allocations: 51.42 kB / 0.6983 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of SimCode: time 3.21e-07/0.1742, allocations: 0 / 0.6983 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01301/0.1872, allocations: 3.488 MB / 0.7017 GB, free: 9.469 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001677/0.1874, allocations: 236.4 kB / 0.7019 GB, free: 9.215 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.592/1.779, allocations: 0 / 0.7019 GB, free: 9.215 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)