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.444/1.444, allocations: 252 MB / 267 MB, free: 10.97 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.00107/0.001071, allocations: 183 kB / 326.6 MB, free: 2.211 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.004/2.004, allocations: 205.4 MB / 0.5776 GB, free: 20.6 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.001069/0.001069, allocations: 83.98 kB / 0.6822 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003256/0.0003258, allocations: 9.156 kB / 0.7965 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2541, allocations: 106.3 MB / 0.9003 GB, free: 64.18 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.003091/0.2572, allocations: 2.66 MB / 0.9029 GB, free: 61.5 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001532/0.2588, allocations: 1.248 MB / 0.9041 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.2589, allocations: 4 kB / 0.9041 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.000162/0.2591, allocations: 43.64 kB / 0.9042 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0003141/0.2594, allocations: 107.5 kB / 0.9043 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002649/0.2597, allocations: 103.8 kB / 0.9044 GB, free: 59.99 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002533/0.2599, allocations: 346.9 kB / 0.9047 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002437/0.2602, allocations: 207.9 kB / 0.9049 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 9.635e-05/0.2603, allocations: 95.62 kB / 0.905 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000238/0.2605, allocations: 131.5 kB / 0.9051 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.823e-05/0.2606, allocations: 8 kB / 0.9051 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001628/0.2608, allocations: 87.88 kB / 0.9052 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 6.944e-05/0.2608, allocations: 67.8 kB / 0.9053 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.769e-05/0.2609, allocations: 61.58 kB / 0.9053 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002577/0.2611, allocations: 255.6 kB / 0.9056 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.2612, allocations: 3.938 kB / 0.9056 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of FrontEnd: time 3.677e-06/0.2612, allocations: 0 / 0.9056 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.41e-06/0.2612, allocations: 0 / 0.9056 GB, free: 58.73 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.0006158/0.2618, allocations: 479 kB / 0.906 GB, free: 58.21 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.2619, allocations: 12.03 kB / 0.906 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.458e-05/0.2619, allocations: 58.55 kB / 0.9061 GB, free: 58.13 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005338/0.2625, allocations: 83.59 kB / 0.9062 GB, free: 58.05 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002414/0.2627, allocations: 246.6 kB / 0.9064 GB, free: 57.77 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.622e-05/0.2627, allocations: 12.38 kB / 0.9064 GB, free: 57.76 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.808e-05/0.2628, allocations: 16 kB / 0.9064 GB, free: 57.74 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003774/0.2632, allocations: 295.2 kB / 0.9067 GB, free: 57.43 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.2632, allocations: 3.938 kB / 0.9067 GB, free: 57.43 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.479e-05/0.2632, allocations: 11.95 kB / 0.9067 GB, free: 57.41 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.976e-05/0.2632, allocations: 16.36 kB / 0.9068 GB, free: 57.4 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002649/0.2635, allocations: 197 kB / 0.9069 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001145/0.2647, allocations: 1.46 MB / 0.9084 GB, free: 55.59 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002135/0.2649, allocations: 171.7 kB / 0.9085 GB, free: 55.39 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.706e-05/0.265, allocations: 36.84 kB / 0.9086 GB, free: 55.35 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 7.564e-06/0.265, allocations: 3.938 kB / 0.9086 GB, free: 55.35 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.382e-05/0.265, allocations: 34.56 kB / 0.9086 GB, free: 55.3 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 1.273e-06/0.265, allocations: 0 / 0.9086 GB, free: 55.3 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0004186/0.2654, allocations: 227.5 kB / 0.9088 GB, free: 55.05 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.36e-05/0.2655, allocations: 51.41 kB / 0.9089 GB, free: 54.99 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001422/0.2656, allocations: 210.2 kB / 0.9091 GB, free: 54.78 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.034e-05/0.2656, allocations: 25.7 kB / 0.9091 GB, free: 54.75 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 6.432e-05/0.2657, allocations: 163.6 kB / 0.9093 GB, free: 54.58 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.437e-05/0.2657, allocations: 27.58 kB / 0.9093 GB, free: 54.55 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.64e-06/0.2658, allocations: 8 kB / 0.9093 GB, free: 54.55 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.669e-05/0.2658, allocations: 322.8 kB / 0.9096 GB, free: 54.22 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.294e-05/0.2659, allocations: 31.98 kB / 0.9096 GB, free: 54.19 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.555e-05/0.266, allocations: 100.6 kB / 0.9097 GB, free: 54.06 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.723e-05/0.266, allocations: 55.92 kB / 0.9098 GB, free: 54.01 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.2661, allocations: 0 / 0.9098 GB, free: 54.01 MB / 0.6042 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002444/0.2663, allocations: 190 kB / 0.91 GB, free: 53.81 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.2663, allocations: 6.656 kB / 0.91 GB, free: 53.81 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.2663, allocations: 4.062 kB / 0.91 GB, free: 53.8 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001515/0.2665, allocations: 33.12 kB / 0.91 GB, free: 53.77 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.2666, allocations: 31.92 kB / 0.91 GB, free: 53.74 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006998/0.2673, allocations: 1.308 MB / 0.9113 GB, free: 52.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.2674, allocations: 23.73 kB / 0.9113 GB, free: 52.27 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/0.2675, allocations: 11.98 kB / 0.9113 GB, free: 52.26 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.502e-05/0.2676, allocations: 141.8 kB / 0.9115 GB, free: 52.11 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.151e-05/0.2676, allocations: 15.86 kB / 0.9115 GB, free: 52.09 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.386e-05/0.2676, allocations: 21.39 kB / 0.9115 GB, free: 52.08 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-06/0.2676, allocations: 4.094 kB / 0.9115 GB, free: 52.07 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.2676, allocations: 0 / 0.9115 GB, free: 52.07 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.2676, allocations: 0 / 0.9115 GB, free: 52.07 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003658/0.268, allocations: 451.1 kB / 0.9119 GB, free: 51.57 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.268, allocations: 0 / 0.9119 GB, free: 51.57 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.447e-05/0.2681, allocations: 8 kB / 0.912 GB, free: 51.57 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.498e-05/0.2681, allocations: 24.78 kB / 0.912 GB, free: 51.54 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.2682, allocations: 4 kB / 0.912 GB, free: 51.54 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000585/0.2687, allocations: 1.308 MB / 0.9133 GB, free: 50.09 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.2688, allocations: 8.062 kB / 0.9133 GB, free: 50.08 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001672/0.2689, allocations: 216.6 kB / 0.9135 GB, free: 49.85 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 7.431e-05/0.269, allocations: 96.94 kB / 0.9136 GB, free: 49.74 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.701e-05/0.269, allocations: 11.94 kB / 0.9136 GB, free: 49.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.2692, allocations: 4 kB / 0.9136 GB, free: 49.72 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.075e-05/0.2692, allocations: 7.938 kB / 0.9136 GB, free: 49.71 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.39e-06/0.2692, allocations: 11.94 kB / 0.9136 GB, free: 49.7 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 9.073e-05/0.2693, allocations: 148.1 kB / 0.9137 GB, free: 49.56 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2693, allocations: 0 / 0.9137 GB, free: 49.56 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002674/0.2696, allocations: 51.84 kB / 0.9138 GB, free: 49.51 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003242/0.2699, allocations: 0.7443 MB / 0.9145 GB, free: 48.73 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003006/0.2702, allocations: 206.5 kB / 0.9147 GB, free: 48.52 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2702, allocations: 0 / 0.9147 GB, free: 48.52 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001118/0.2703, allocations: 142.7 kB / 0.9148 GB, free: 48.36 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.2707, allocations: 41.3 kB / 0.9149 GB, free: 48.33 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/0.2719, allocations: 1.018 MB / 0.9159 GB, free: 47.23 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002036/0.2721, allocations: 0.7552 MB / 0.9166 GB, free: 46.45 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 9.198e-05/0.2722, allocations: 29.52 kB / 0.9166 GB, free: 46.42 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.874e-05/0.2723, allocations: 51.42 kB / 0.9167 GB, free: 46.37 MB / 0.6042 GB Notification: Performance of SimCode: time 2.11e-07/0.2723, allocations: 0 / 0.9167 GB, free: 46.37 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01525/0.2876, allocations: 3.355 MB / 0.92 GB, free: 43.2 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000231/0.2879, allocations: 218.8 kB / 0.9202 GB, free: 42.95 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.691/1.979, allocations: 0 / 0.9202 GB, free: 42.95 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)