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.001316/0.001321, allocations: 108 kB / 15.6 MB, free: 132 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.001227/0.001227, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.314/1.314, 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.002155/0.002155, allocations: 278.5 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9521/0.9521, allocations: 169.3 MB / 0.4982 GB, free: 13.85 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001805/0.001805, allocations: 101.7 kB / 0.5953 GB, free: 27.87 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1488/0.1506, allocations: 86.97 MB / 0.6803 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.Resistance): time 0.005104/0.1558, allocations: 3.061 MB / 0.6833 GB, free: 13.53 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002245/0.158, allocations: 1.338 MB / 0.6846 GB, free: 12.19 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002085/0.1583, allocations: 7.938 kB / 0.6846 GB, free: 12.18 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001057/0.1594, allocations: 330.7 kB / 0.6849 GB, free: 11.86 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004514/0.1598, allocations: 147.3 kB / 0.685 GB, free: 11.71 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004107/0.1602, allocations: 134.5 kB / 0.6852 GB, free: 11.58 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003812/0.1606, allocations: 299 kB / 0.6855 GB, free: 11.29 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004378/0.1611, allocations: 240.3 kB / 0.6857 GB, free: 11.06 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001856/0.1613, allocations: 123.5 kB / 0.6858 GB, free: 10.94 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000305/0.1616, allocations: 143.5 kB / 0.6859 GB, free: 10.8 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.122e-05/0.1616, allocations: 16 kB / 0.686 GB, free: 10.78 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003336/0.162, allocations: 163.6 kB / 0.6861 GB, free: 10.62 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.1621, allocations: 79.8 kB / 0.6862 GB, free: 10.54 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001305/0.1622, allocations: 115.4 kB / 0.6863 GB, free: 10.43 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000471/0.1627, allocations: 334.9 kB / 0.6866 GB, free: 10.1 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1627, allocations: 0 / 0.6866 GB, free: 10.1 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1627, allocations: 0 / 0.6866 GB, free: 10.1 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.356e-06/0.1627, allocations: 0 / 0.6866 GB, free: 10.1 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.0008897/0.1636, allocations: 0.5147 MB / 0.6871 GB, free: 9.535 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.1637, allocations: 12.03 kB / 0.6871 GB, free: 9.523 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.886e-05/0.1638, allocations: 58.72 kB / 0.6872 GB, free: 9.457 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005944/0.1644, allocations: 72.58 kB / 0.6873 GB, free: 9.387 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002971/0.1647, allocations: 249.8 kB / 0.6875 GB, free: 9.105 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.51e-05/0.1647, allocations: 8.75 kB / 0.6875 GB, free: 9.098 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.852e-05/0.1647, allocations: 28.36 kB / 0.6875 GB, free: 9.07 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004253/0.1652, allocations: 295.3 kB / 0.6878 GB, free: 8.762 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.1652, allocations: 0 / 0.6878 GB, free: 8.762 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.743e-05/0.1652, allocations: 12 kB / 0.6878 GB, free: 8.75 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.225e-05/0.1653, allocations: 16.36 kB / 0.6878 GB, free: 8.734 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003083/0.1656, allocations: 200.9 kB / 0.688 GB, free: 8.539 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001475/0.1671, allocations: 1.456 MB / 0.6895 GB, free: 6.918 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000248/0.1673, allocations: 179.7 kB / 0.6896 GB, free: 6.715 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.935e-05/0.1674, allocations: 36.89 kB / 0.6897 GB, free: 6.676 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.046e-05/0.1674, allocations: 3.984 kB / 0.6897 GB, free: 6.672 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.355e-05/0.1674, allocations: 30.56 kB / 0.6897 GB, free: 6.633 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.1674, allocations: 0 / 0.6897 GB, free: 6.633 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004788/0.1679, allocations: 235.5 kB / 0.6899 GB, free: 6.375 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.17e-05/0.168, allocations: 51.41 kB / 0.69 GB, free: 6.312 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001907/0.1682, allocations: 196.1 kB / 0.6902 GB, free: 6.113 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.585e-05/0.1682, allocations: 29.7 kB / 0.6902 GB, free: 6.078 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.1683, allocations: 171.5 kB / 0.6903 GB, free: 5.906 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.422e-05/0.1683, allocations: 23.66 kB / 0.6904 GB, free: 5.883 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.584e-05/0.1684, allocations: 33.7 kB / 0.6904 GB, free: 5.844 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.1685, allocations: 334.7 kB / 0.6907 GB, free: 5.508 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.408e-05/0.1686, allocations: 31.98 kB / 0.6907 GB, free: 5.477 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.1687, allocations: 102.2 kB / 0.6908 GB, free: 5.348 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001782/0.1689, allocations: 152.4 kB / 0.691 GB, free: 5.168 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1689, allocations: 4 kB / 0.691 GB, free: 5.164 MB / 494.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003098/0.1692, allocations: 186.1 kB / 0.6912 GB, free: 4.973 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.1692, allocations: 8 kB / 0.6912 GB, free: 4.965 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.1692, allocations: 0 / 0.6912 GB, free: 4.965 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001588/0.1694, allocations: 29.12 kB / 0.6912 GB, free: 4.934 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001083/0.1695, allocations: 31.92 kB / 0.6912 GB, free: 4.902 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00107/0.1706, allocations: 1.422 MB / 0.6926 GB, free: 3.336 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001184/0.1707, allocations: 23.78 kB / 0.6926 GB, free: 3.312 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.196e-05/0.1707, allocations: 4 kB / 0.6927 GB, free: 3.309 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.0001284/0.1709, allocations: 151.1 kB / 0.6928 GB, free: 3.152 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.937e-05/0.1709, allocations: 19.91 kB / 0.6928 GB, free: 3.133 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.982e-05/0.171, allocations: 17.39 kB / 0.6928 GB, free: 3.117 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.171, allocations: 0 / 0.6928 GB, free: 3.117 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.171, allocations: 0 / 0.6928 GB, free: 3.117 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.171, allocations: 0 / 0.6928 GB, free: 3.117 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004866/0.1715, allocations: 447.2 kB / 0.6933 GB, free: 2.621 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.1715, allocations: 0 / 0.6933 GB, free: 2.621 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.987e-05/0.1715, allocations: 12 kB / 0.6933 GB, free: 2.609 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.721e-05/0.1716, allocations: 20.84 kB / 0.6933 GB, free: 2.586 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/0.1717, allocations: 4 kB / 0.6933 GB, free: 2.582 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009618/0.1726, allocations: 1.418 MB / 0.6947 GB, free: 1.023 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1726, allocations: 0 / 0.6947 GB, free: 1.023 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002208/0.1729, allocations: 216.6 kB / 0.6949 GB, free: 0.793 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.948e-05/0.173, allocations: 108.8 kB / 0.695 GB, free: 0.668 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.746e-05/0.173, allocations: 0 / 0.695 GB, free: 0.668 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.1731, allocations: 4 kB / 0.695 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.16e-05/0.1731, allocations: 7.984 kB / 0.695 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.095e-06/0.1731, allocations: 8 kB / 0.695 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001398/0.1733, allocations: 140.4 kB / 0.6951 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1733, allocations: 0 / 0.6951 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003142/0.1736, allocations: 55.84 kB / 0.6952 GB, free: 468 kB / 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.0004892/0.1741, allocations: 0.7444 MB / 0.6959 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003537/0.1745, allocations: 222.6 kB / 0.6961 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1745, allocations: 0 / 0.6961 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001569/0.1746, allocations: 146.7 kB / 0.6963 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003394/0.175, allocations: 33.55 kB / 0.6963 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002152/0.1771, allocations: 2.034 MB / 0.6983 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003237/0.1775, allocations: 0.7475 MB / 0.699 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.662e-05/0.1776, allocations: 25.53 kB / 0.699 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.299e-05/0.1777, allocations: 51.42 kB / 0.6991 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of SimCode: time 3.11e-07/0.1777, allocations: 0 / 0.6991 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1885/0.3662, allocations: 3.654 MB / 0.7027 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.995/9.361, allocations: 18.5 kB / 0.7027 GB, free: 8.703 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)