Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.258/1.258, allocations: 251.5 MB / 266.7 MB, free: 11.08 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000887/0.0008869, allocations: 182.9 kB / 325.8 MB, free: 2.723 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.344/1.344, allocations: 205 MB / 0.576 GB, free: 21.02 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006823/0.000682, allocations: 78.38 kB / 0.6797 GB, free: 14.74 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003213/0.0003215, allocations: 9.031 kB / 0.7933 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1542/0.1546, allocations: 105.4 MB / 0.8962 GB, free: 68.11 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.002663/0.1573, allocations: 2.786 MB / 0.8989 GB, free: 65.31 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001358/0.1586, allocations: 1.352 MB / 0.9002 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.554e-05/0.1587, allocations: 4 kB / 0.9002 GB, free: 63.94 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0007083/0.1595, allocations: 307 kB / 0.9005 GB, free: 63.64 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0002137/0.1597, allocations: 135.4 kB / 0.9007 GB, free: 63.51 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002227/0.1599, allocations: 115.8 kB / 0.9008 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002472/0.1602, allocations: 438.7 kB / 0.9012 GB, free: 62.96 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002063/0.1604, allocations: 152.3 kB / 0.9013 GB, free: 62.82 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.041e-05/0.1605, allocations: 107.6 kB / 0.9014 GB, free: 62.71 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001917/0.1607, allocations: 131.4 kB / 0.9016 GB, free: 62.58 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.282e-05/0.1607, allocations: 8 kB / 0.9016 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002185/0.1609, allocations: 211.5 kB / 0.9018 GB, free: 62.37 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 5.407e-05/0.161, allocations: 67.75 kB / 0.9018 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 7.085e-05/0.1611, allocations: 103.5 kB / 0.9019 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002472/0.1613, allocations: 330.9 kB / 0.9023 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.1613, allocations: 0 / 0.9023 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.282e-06/0.1613, allocations: 0 / 0.9023 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 8.105e-06/0.1614, allocations: 0 / 0.9023 GB, free: 61.88 MB / 0.6042 GB 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.0004953/0.1619, allocations: 487.2 kB / 0.9027 GB, free: 61.35 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 2.997e-05/0.1619, allocations: 15.97 kB / 0.9027 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.882e-05/0.1619, allocations: 54.73 kB / 0.9028 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004632/0.1624, allocations: 76.58 kB / 0.9029 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001945/0.1626, allocations: 247.9 kB / 0.9031 GB, free: 60.91 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.1626, allocations: 20.67 kB / 0.9031 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.565e-05/0.1627, allocations: 24.36 kB / 0.9031 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003264/0.163, allocations: 295.4 kB / 0.9034 GB, free: 60.56 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.163, allocations: 0 / 0.9034 GB, free: 60.56 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.029e-05/0.163, allocations: 4 kB / 0.9034 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.568e-05/0.1631, allocations: 28.31 kB / 0.9035 GB, free: 60.53 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000227/0.1633, allocations: 196.9 kB / 0.9036 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009477/0.1643, allocations: 1.46 MB / 0.9051 GB, free: 58.71 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001859/0.1645, allocations: 175.8 kB / 0.9052 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.412e-05/0.1645, allocations: 36.98 kB / 0.9053 GB, free: 58.48 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 8.506e-06/0.1645, allocations: 3.984 kB / 0.9053 GB, free: 58.47 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.208e-05/0.1645, allocations: 38.5 kB / 0.9053 GB, free: 58.43 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.1645, allocations: 4 kB / 0.9053 GB, free: 58.42 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0003534/0.1649, allocations: 223.4 kB / 0.9055 GB, free: 58.18 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.852e-05/0.1649, allocations: 51.41 kB / 0.9056 GB, free: 58.11 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.1651, allocations: 194.5 kB / 0.9058 GB, free: 57.91 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.456e-06/0.1651, allocations: 25.7 kB / 0.9058 GB, free: 57.88 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.773e-05/0.1651, allocations: 167.6 kB / 0.9059 GB, free: 57.71 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.531e-05/0.1652, allocations: 27.64 kB / 0.906 GB, free: 57.69 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.358e-05/0.1652, allocations: 25.72 kB / 0.906 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.039e-05/0.1652, allocations: 326.8 kB / 0.9063 GB, free: 57.33 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.881e-05/0.1653, allocations: 47.81 kB / 0.9064 GB, free: 57.28 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.132e-05/0.1654, allocations: 91.23 kB / 0.9064 GB, free: 57.16 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001149/0.1655, allocations: 152.4 kB / 0.9066 GB, free: 56.98 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1655, allocations: 0 / 0.9066 GB, free: 56.98 MB / 0.6042 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002231/0.1657, allocations: 186.2 kB / 0.9068 GB, free: 56.79 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.1657, allocations: 4 kB / 0.9068 GB, free: 56.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.1658, allocations: 4.281 kB / 0.9068 GB, free: 56.79 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001484/0.1659, allocations: 28.84 kB / 0.9068 GB, free: 56.75 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.674e-05/0.166, allocations: 35.86 kB / 0.9068 GB, free: 56.72 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007125/0.1667, allocations: 1.323 MB / 0.9081 GB, free: 55.26 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001051/0.1668, allocations: 11.84 kB / 0.9081 GB, free: 55.25 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.073e-05/0.1669, allocations: 12 kB / 0.9081 GB, free: 55.23 MB / 0.6042 GB 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.000121/0.167, allocations: 145.7 kB / 0.9083 GB, free: 55.08 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.468e-05/0.167, allocations: 19.75 kB / 0.9083 GB, free: 55.06 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.533e-05/0.1671, allocations: 25.48 kB / 0.9083 GB, free: 55.04 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.1671, allocations: 0 / 0.9083 GB, free: 55.04 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.424e-06/0.1671, allocations: 0 / 0.9083 GB, free: 55.04 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.1671, allocations: 0 / 0.9083 GB, free: 55.04 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003637/0.1675, allocations: 447.1 kB / 0.9088 GB, free: 54.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1675, allocations: 0 / 0.9088 GB, free: 54.55 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.314e-05/0.1675, allocations: 8 kB / 0.9088 GB, free: 54.54 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.709e-05/0.1676, allocations: 24.84 kB / 0.9088 GB, free: 54.51 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.803e-06/0.1676, allocations: 0 / 0.9088 GB, free: 54.51 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006173/0.1682, allocations: 1.319 MB / 0.9101 GB, free: 53.06 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1682, allocations: 0 / 0.9101 GB, free: 53.06 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001595/0.1684, allocations: 212.2 kB / 0.9103 GB, free: 52.83 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.901e-05/0.1685, allocations: 100.9 kB / 0.9104 GB, free: 52.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.685e-05/0.1685, allocations: 3.938 kB / 0.9104 GB, free: 52.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.902e-05/0.1686, allocations: 4 kB / 0.9104 GB, free: 52.71 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.082e-05/0.1686, allocations: 12.05 kB / 0.9104 GB, free: 52.7 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.922e-06/0.1686, allocations: 4 kB / 0.9104 GB, free: 52.69 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 8.725e-05/0.1687, allocations: 148.1 kB / 0.9105 GB, free: 52.55 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1e-07/0.1687, allocations: 96 / 0.9105 GB, free: 52.55 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002959/0.169, allocations: 55.78 kB / 0.9106 GB, free: 52.49 MB / 0.6042 GB 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.0003103/0.1693, allocations: 0.7476 MB / 0.9113 GB, free: 51.71 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002824/0.1696, allocations: 215.1 kB / 0.9115 GB, free: 51.49 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.1696, allocations: 0 / 0.9115 GB, free: 51.49 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.000105/0.1698, allocations: 143.2 kB / 0.9117 GB, free: 51.34 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003261/0.1701, allocations: 45.44 kB / 0.9117 GB, free: 51.3 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001463/0.1716, allocations: 2.113 MB / 0.9138 GB, free: 49.04 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001371/0.1717, allocations: 0.7553 MB / 0.9145 GB, free: 48.26 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 8.105e-05/0.1718, allocations: 21.55 kB / 0.9145 GB, free: 48.24 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.634e-05/0.1719, allocations: 55.41 kB / 0.9146 GB, free: 48.18 MB / 0.6042 GB Notification: Performance of SimCode: time 3.1e-07/0.1719, allocations: 0 / 0.9146 GB, free: 48.18 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08781/0.2597, allocations: 3.382 MB / 0.9179 GB, free: 44.97 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001945/0.2599, allocations: 235 kB / 0.9181 GB, free: 44.71 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.843/2.103, allocations: 5.938 kB / 0.9181 GB, free: 44.71 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)