Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.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.DCLines,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_DCLines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLines,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_DCLines",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.326/1.326, allocations: 251.5 MB / 266.7 MB, free: 11.05 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.0008821/0.0008823, allocations: 171.1 kB / 325.8 MB, free: 2.719 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.419/1.419, allocations: 205 MB / 0.576 GB, free: 20.94 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.0006545/0.0006544, allocations: 94.16 kB / 0.6797 GB, free: 14.74 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004275/0.0004276, allocations: 8.781 kB / 0.7932 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1531/0.1535, allocations: 105.4 MB / 0.8962 GB, free: 68.09 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLines): time 0.01501/0.1686, allocations: 21.89 MB / 0.9176 GB, free: 46.12 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01666/0.1853, allocations: 17.71 MB / 0.9349 GB, free: 28.35 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002393/0.1877, allocations: 107.4 kB / 0.935 GB, free: 28.25 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.007744/0.1955, allocations: 3.883 MB / 0.9388 GB, free: 24.36 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.008514/0.204, allocations: 3.2 MB / 0.9419 GB, free: 21.16 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.002765/0.2068, allocations: 1.184 MB / 0.943 GB, free: 19.98 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.006238/0.213, allocations: 6.857 MB / 0.9497 GB, free: 13.1 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003281/0.2163, allocations: 2.432 MB / 0.9521 GB, free: 10.59 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003005/0.2194, allocations: 1.972 MB / 0.954 GB, free: 8.605 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003007/0.2224, allocations: 2.245 MB / 0.9562 GB, free: 6.352 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 0.0007307/0.2231, allocations: 168 kB / 0.9564 GB, free: 6.188 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002031/0.2252, allocations: 1.053 MB / 0.9574 GB, free: 5.133 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0008576/0.2261, allocations: 0.9418 MB / 0.9583 GB, free: 4.188 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.002375/0.2284, allocations: 1.732 MB / 0.96 GB, free: 2.445 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.004069/0.2325, allocations: 4.834 MB / 0.9648 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.2325, allocations: 0 / 0.9648 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.894e-06/0.2326, allocations: 0 / 0.9648 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.459e-05/0.2326, allocations: 0 / 0.9648 GB, free: 13.59 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 635 * Number of variables: 635 Notification: Performance of Generate backend data structure: time 0.00668/0.2393, allocations: 3.838 MB / 0.9685 GB, free: 9.645 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.2394, allocations: 12.03 kB / 0.9685 GB, free: 9.633 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004796/0.2399, allocations: 354.3 kB / 0.9689 GB, free: 9.277 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0144/0.2543, allocations: 3.363 MB / 0.9721 GB, free: 5.902 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003758/0.2581, allocations: 2.06 MB / 0.9742 GB, free: 3.773 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001387/0.2582, allocations: 177.1 kB / 0.9743 GB, free: 3.598 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004323/0.2587, allocations: 239.9 kB / 0.9745 GB, free: 3.363 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009437/0.2681, allocations: 4.744 MB / 0.9792 GB, free: 14.48 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.145e-05/0.2682, allocations: 0 / 0.9792 GB, free: 14.48 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002543/0.2684, allocations: 99.98 kB / 0.9793 GB, free: 14.38 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001921/0.2686, allocations: 172.8 kB / 0.9794 GB, free: 14.21 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01198/0.2806, allocations: 5.241 MB / 0.9846 GB, free: 8.949 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01746/0.2981, allocations: 14.11 MB / 0.9983 GB, free: 9.668 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009945/0.3081, allocations: 3.857 MB / 1.002 GB, free: 5.801 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003438/0.3116, allocations: 1.526 MB / 1.004 GB, free: 4.273 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001132/0.3117, allocations: 29.3 kB / 1.004 GB, free: 4.246 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003756/0.3155, allocations: 1.825 MB / 1.005 GB, free: 2.355 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=163): time 3.397e-06/0.3155, allocations: 0 / 1.005 GB, free: 2.355 MB / 0.6511 GB Notification: Performance of matching and sorting (n=250): time 0.1127/0.4282, allocations: 33.44 MB / 1.038 GB, free: 0.6953 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002472/0.4285, allocations: 0.4889 MB / 1.039 GB, free: 96 kB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003452/0.432, allocations: 2.3 MB / 1.041 GB, free: 13.78 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.000309/0.4323, allocations: 77.7 kB / 1.041 GB, free: 13.7 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001101/0.4334, allocations: 1.438 MB / 1.042 GB, free: 12.25 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006572/0.4341, allocations: 0.8163 MB / 1.043 GB, free: 11.42 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002848/0.4344, allocations: 186.4 kB / 1.043 GB, free: 11.23 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.061e-05/0.4345, allocations: 309.1 kB / 1.044 GB, free: 10.93 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004428/0.4389, allocations: 1.929 MB / 1.045 GB, free: 8.992 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004785/0.4437, allocations: 2.239 MB / 1.048 GB, free: 6.668 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009293/0.453, allocations: 4.212 MB / 1.052 GB, free: 2.32 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.306e-06/0.453, allocations: 4 kB / 1.052 GB, free: 2.316 MB / 0.698 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.3247/0.7777, allocations: 6.187 MB / 1.058 GB, free: 144.9 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001618/0.7779, allocations: 402.6 kB / 1.058 GB, free: 144.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.448e-05/0.778, allocations: 6.109 kB / 1.058 GB, free: 144.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006269/0.7842, allocations: 1.856 MB / 1.06 GB, free: 144.4 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002836/0.7871, allocations: 0.5919 MB / 1.061 GB, free: 144.4 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02045/0.8075, allocations: 14.18 MB / 1.074 GB, free: 139.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003291/0.8109, allocations: 402.2 kB / 1.075 GB, free: 139.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002806/0.8112, allocations: 89.88 kB / 1.075 GB, free: 139.4 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 7.615e-06/0.8112, allocations: 3.375 kB / 1.075 GB, free: 139.4 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01293/0.8241, allocations: 5.791 MB / 1.081 GB, free: 137.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.01e-05/0.8242, allocations: 3.969 kB / 1.081 GB, free: 137.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004639/0.8288, allocations: 1.825 MB / 1.082 GB, free: 137.2 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002833/0.8317, allocations: 0.6004 MB / 1.083 GB, free: 137.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0165/0.8482, allocations: 13.47 MB / 1.096 GB, free: 128.9 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003369/0.8516, allocations: 401.5 kB / 1.096 GB, free: 128.7 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000296/0.8519, allocations: 92.53 kB / 1.097 GB, free: 128.7 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 25 (varLoad5.count,$PRE.varLoad5.count,varLoad5.T_start,$PRE.varLoad5.T_start,varLoad4.count,$PRE.varLoad4.count,varLoad4.T_start,$PRE.varLoad4.T_start,varLoad3.count,$PRE.varLoad3.count,varLoad3.T_start,$PRE.varLoad3.T_start,varLoad2.count,$PRE.varLoad2.count,varLoad2.T_start,$PRE.varLoad2.T_start,varLoad1.count,$PRE.varLoad1.count,varLoad1.T_start,$PRE.varLoad1.T_start,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (172): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,52,45.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(10,52)} Notification: Performance of prepare postOptimizeDAE: time 0.001397/0.8533, allocations: 0.7829 MB / 1.097 GB, free: 128.2 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005594/0.8539, allocations: 330.4 kB / 1.098 GB, free: 128 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006606/0.8545, allocations: 396.1 kB / 1.098 GB, free: 127.6 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/0.8546, allocations: 24 kB / 1.098 GB, free: 127.6 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.766e-05/0.8546, allocations: 8 kB / 1.098 GB, free: 127.6 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.631e-05/0.8546, allocations: 11.95 kB / 1.098 GB, free: 127.5 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0031/0.8577, allocations: 3.179 MB / 1.101 GB, free: 124.4 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.345e-05/0.8577, allocations: 0 / 1.101 GB, free: 124.4 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002237/0.86, allocations: 0.5189 MB / 1.102 GB, free: 123.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005442/0.8654, allocations: 1.715 MB / 1.103 GB, free: 122.1 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000228/0.8657, allocations: 51.97 kB / 1.103 GB, free: 122.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0161/0.8818, allocations: 13.98 MB / 1.117 GB, free: 107.9 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.8818, allocations: 0 / 1.117 GB, free: 107.9 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01262/0.8945, allocations: 5.804 MB / 1.123 GB, free: 102 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001155/0.8957, allocations: 0.6609 MB / 1.123 GB, free: 101.3 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005297/0.8962, allocations: 51.98 kB / 1.123 GB, free: 101.3 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002613/0.8988, allocations: 400.7 kB / 1.124 GB, free: 100.9 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000731/0.8996, allocations: 294.7 kB / 1.124 GB, free: 100.6 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001661/0.8997, allocations: 71.97 kB / 1.124 GB, free: 100.5 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001679/0.9014, allocations: 1.528 MB / 1.126 GB, free: 99.01 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.1e-07/0.9014, allocations: 0 / 1.126 GB, free: 99.01 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.003533/0.905, allocations: 1.625 MB / 1.127 GB, free: 97.39 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varLoad1.T_start,varLoad1.count,varLoad2.T_start,varLoad2.count,varLoad3.T_start,varLoad3.count,varLoad4.T_start,varLoad4.count,varLoad5.T_start,varLoad5.count) * Number of discrete states: 5 (varLoad1.count,varLoad2.count,varLoad3.count,varLoad4.count,varLoad5.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (128): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,52,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(10,52)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01251/0.9175, allocations: 6.44 MB / 1.133 GB, free: 90.91 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.01868/0.9362, allocations: 10.1 MB / 1.143 GB, free: 80.62 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 6.543e-06/0.9362, allocations: 4 kB / 1.143 GB, free: 80.62 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.006509/0.9427, allocations: 3.501 MB / 1.147 GB, free: 77.1 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004086/0.9469, allocations: 1.048 MB / 1.148 GB, free: 76.09 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05839/1.005, allocations: 37.19 MB / 1.184 GB, free: 36.85 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001629/1.007, allocations: 2.305 MB / 1.186 GB, free: 34.5 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.002679/1.01, allocations: 0.6309 MB / 1.187 GB, free: 33.87 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001306/1.011, allocations: 1.339 MB / 1.188 GB, free: 32.53 MB / 0.698 GB Notification: Performance of SimCode: time 3.91e-07/1.011, allocations: 0 / 1.188 GB, free: 32.53 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8135/1.824, allocations: 102.3 MB / 1.288 GB, free: 11.07 MB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002186/1.825, allocations: 240.8 kB / 1.288 GB, free: 10.82 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.369/7.194, allocations: 0 / 1.288 GB, free: 10.82 MB / 0.7761 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_DCLines_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_DCLines.fmu > Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1)