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.504/1.504, allocations: 252 MB / 267.3 MB, free: 10.86 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.001017/0.001017, allocations: 178.8 kB / 327 MB, free: 2.121 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.727/1.727, allocations: 205.4 MB / 0.578 GB, free: 20.14 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.0007337/0.0007338, allocations: 102.6 kB / 0.6826 GB, free: 12.76 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003535/0.0003537, allocations: 6.438 kB / 0.7971 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.235/0.2354, allocations: 106.3 MB / 0.9009 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.003131/0.2386, allocations: 2.753 MB / 0.9036 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.00176/0.2404, allocations: 1.321 MB / 0.9049 GB, free: 59.31 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000184/0.2406, allocations: 7.938 kB / 0.9049 GB, free: 59.3 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001908/0.2408, allocations: 31.72 kB / 0.9049 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0004406/0.2412, allocations: 131.4 kB / 0.9051 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.000384/0.2416, allocations: 135.7 kB / 0.9052 GB, free: 59.01 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0004154/0.2421, allocations: 430.8 kB / 0.9056 GB, free: 58.59 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003713/0.2425, allocations: 233.4 kB / 0.9058 GB, free: 58.34 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001847/0.2426, allocations: 95.62 kB / 0.9059 GB, free: 58.25 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003772/0.243, allocations: 131.5 kB / 0.906 GB, free: 58.12 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.786e-05/0.2431, allocations: 12 kB / 0.906 GB, free: 58.11 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004042/0.2435, allocations: 203.6 kB / 0.9062 GB, free: 57.91 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001014/0.2436, allocations: 75.78 kB / 0.9063 GB, free: 57.84 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001356/0.2438, allocations: 133 kB / 0.9064 GB, free: 57.7 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0004519/0.2442, allocations: 331.2 kB / 0.9068 GB, free: 57.38 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.2442, allocations: 0 / 0.9068 GB, free: 57.38 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.794e-06/0.2442, allocations: 4 kB / 0.9068 GB, free: 57.37 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 9.358e-06/0.2443, allocations: 0 / 0.9068 GB, free: 57.37 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.0007899/0.2451, allocations: 491.1 kB / 0.9072 GB, free: 56.84 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.2451, allocations: 8.031 kB / 0.9072 GB, free: 56.83 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.439e-05/0.2452, allocations: 54.73 kB / 0.9073 GB, free: 56.77 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005913/0.2458, allocations: 84.58 kB / 0.9074 GB, free: 56.69 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002626/0.2461, allocations: 242.2 kB / 0.9076 GB, free: 56.41 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.2461, allocations: 8.75 kB / 0.9076 GB, free: 56.41 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.777e-05/0.2461, allocations: 20.36 kB / 0.9076 GB, free: 56.39 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004042/0.2465, allocations: 307.3 kB / 0.9079 GB, free: 56.06 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.2465, allocations: 0 / 0.9079 GB, free: 56.06 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.463e-05/0.2466, allocations: 8 kB / 0.9079 GB, free: 56.05 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.407e-05/0.2466, allocations: 16.36 kB / 0.9079 GB, free: 56.04 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002705/0.2469, allocations: 204.9 kB / 0.9081 GB, free: 55.84 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001169/0.2481, allocations: 1.46 MB / 0.9096 GB, free: 54.22 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002218/0.2483, allocations: 171.7 kB / 0.9097 GB, free: 54.02 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.327e-05/0.2484, allocations: 32.84 kB / 0.9098 GB, free: 53.99 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.299e-05/0.2484, allocations: 0 / 0.9098 GB, free: 53.99 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.617e-05/0.2484, allocations: 42.56 kB / 0.9098 GB, free: 53.94 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 9.82e-07/0.2484, allocations: 0 / 0.9098 GB, free: 53.94 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0004199/0.2488, allocations: 227.6 kB / 0.91 GB, free: 53.69 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.495e-05/0.2489, allocations: 51.41 kB / 0.9101 GB, free: 53.62 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001496/0.249, allocations: 190.5 kB / 0.9102 GB, free: 53.43 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.066e-05/0.2491, allocations: 25.7 kB / 0.9103 GB, free: 53.4 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 7.137e-05/0.2491, allocations: 171.7 kB / 0.9104 GB, free: 53.23 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.695e-05/0.2492, allocations: 27.64 kB / 0.9105 GB, free: 53.2 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.506e-06/0.2492, allocations: 8 kB / 0.9105 GB, free: 53.19 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.435e-05/0.2492, allocations: 322.8 kB / 0.9108 GB, free: 52.87 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.116e-05/0.2493, allocations: 39.89 kB / 0.9108 GB, free: 52.83 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.119e-05/0.2494, allocations: 104.5 kB / 0.9109 GB, free: 52.7 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001313/0.2495, allocations: 152.4 kB / 0.9111 GB, free: 52.52 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2495, allocations: 0 / 0.9111 GB, free: 52.52 MB / 0.6042 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000259/0.2498, allocations: 190.4 kB / 0.9112 GB, free: 52.32 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.2498, allocations: 8 kB / 0.9113 GB, free: 52.31 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.2498, allocations: 0 / 0.9113 GB, free: 52.31 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000168/0.25, allocations: 28.78 kB / 0.9113 GB, free: 52.28 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.2501, allocations: 31.92 kB / 0.9113 GB, free: 52.25 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007914/0.2509, allocations: 1.327 MB / 0.9126 GB, free: 50.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001142/0.251, allocations: 15.78 kB / 0.9126 GB, free: 50.77 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.258e-05/0.2511, allocations: 12 kB / 0.9126 GB, free: 50.76 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.0001154/0.2512, allocations: 149.9 kB / 0.9128 GB, free: 50.6 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.489e-05/0.2512, allocations: 15.75 kB / 0.9128 GB, free: 50.59 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.712e-05/0.2512, allocations: 17.41 kB / 0.9128 GB, free: 50.57 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-06/0.2513, allocations: 4 kB / 0.9128 GB, free: 50.57 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.2513, allocations: 0 / 0.9128 GB, free: 50.57 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.2513, allocations: 0 / 0.9128 GB, free: 50.57 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004045/0.2517, allocations: 447.1 kB / 0.9132 GB, free: 50.07 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.2517, allocations: 4 kB / 0.9132 GB, free: 50.07 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.465e-05/0.2517, allocations: 4 kB / 0.9132 GB, free: 50.07 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.215e-05/0.2518, allocations: 28.84 kB / 0.9133 GB, free: 50.04 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.2518, allocations: 3.984 kB / 0.9133 GB, free: 50.03 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006619/0.2525, allocations: 1.311 MB / 0.9146 GB, free: 48.59 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.2525, allocations: 0 / 0.9146 GB, free: 48.59 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001764/0.2527, allocations: 208.2 kB / 0.9148 GB, free: 48.36 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 5.457e-05/0.2528, allocations: 104.8 kB / 0.9149 GB, free: 48.24 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.764e-05/0.2528, allocations: 7.938 kB / 0.9149 GB, free: 48.23 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.836e-05/0.2529, allocations: 8.094 kB / 0.9149 GB, free: 48.23 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.451e-05/0.2529, allocations: 4 kB / 0.9149 GB, free: 48.22 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/0.2529, allocations: 8 kB / 0.9149 GB, free: 48.21 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 9.254e-05/0.253, allocations: 148.1 kB / 0.915 GB, free: 48.07 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/0.253, allocations: 0 / 0.915 GB, free: 48.07 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003025/0.2533, allocations: 51.84 kB / 0.9151 GB, free: 48.02 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.0003453/0.2537, allocations: 0.7483 MB / 0.9158 GB, free: 47.24 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003008/0.254, allocations: 210.5 kB / 0.916 GB, free: 47.02 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.254, allocations: 0.5625 kB / 0.916 GB, free: 47.02 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001596/0.2542, allocations: 154.6 kB / 0.9162 GB, free: 46.86 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003417/0.2545, allocations: 32.58 kB / 0.9162 GB, free: 46.82 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001687/0.2562, allocations: 2.123 MB / 0.9183 GB, free: 44.56 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001687/0.2564, allocations: 0.7475 MB / 0.919 GB, free: 43.79 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 9.241e-05/0.2565, allocations: 25.53 kB / 0.919 GB, free: 43.76 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.523e-05/0.2566, allocations: 51.42 kB / 0.9191 GB, free: 43.71 MB / 0.6042 GB Notification: Performance of SimCode: time 2.71e-07/0.2566, allocations: 3.938 kB / 0.9191 GB, free: 43.71 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01315/0.2698, allocations: 3.389 MB / 0.9224 GB, free: 40.49 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001489/0.27, allocations: 231.3 kB / 0.9226 GB, free: 40.24 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.848/2.118, allocations: 0 / 0.9226 GB, free: 40.24 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)