Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.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.Loads.Examples.Resistor,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Loads_Examples_Resistor",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.416/1.416, 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.0009519/0.0009519, allocations: 186.2 kB / 326.6 MB, free: 2.238 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.922/1.922, allocations: 205.4 MB / 0.5777 GB, free: 20.58 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.0008248/0.000825, allocations: 84 kB / 0.6823 GB, free: 13.35 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004832/0.0004836, allocations: 12.34 kB / 0.7965 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2431, allocations: 106.3 MB / 0.9003 GB, free: 64.34 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005042/0.2482, allocations: 3.346 MB / 0.9036 GB, free: 60.97 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002945/0.2512, allocations: 1.618 MB / 0.9052 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000229/0.2515, allocations: 7.938 kB / 0.9052 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002659/0.2517, allocations: 59.56 kB / 0.9052 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0005827/0.2523, allocations: 171.1 kB / 0.9054 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006675/0.253, allocations: 147.7 kB / 0.9055 GB, free: 58.96 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.000636/0.2537, allocations: 0.5413 MB / 0.9061 GB, free: 58.42 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004836/0.2542, allocations: 289.2 kB / 0.9063 GB, free: 58.12 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002653/0.2544, allocations: 151.4 kB / 0.9065 GB, free: 57.97 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004212/0.2549, allocations: 195.3 kB / 0.9067 GB, free: 57.78 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 5.678e-05/0.255, allocations: 16 kB / 0.9067 GB, free: 57.76 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003867/0.2554, allocations: 119.8 kB / 0.9068 GB, free: 57.64 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001295/0.2555, allocations: 107.7 kB / 0.9069 GB, free: 57.54 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 8.615e-05/0.2556, allocations: 93.52 kB / 0.907 GB, free: 57.44 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0004841/0.2561, allocations: 371.3 kB / 0.9073 GB, free: 57.08 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.2561, allocations: 0 / 0.9073 GB, free: 57.08 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.124e-06/0.2561, allocations: 0 / 0.9073 GB, free: 57.08 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.612e-06/0.2562, allocations: 0 / 0.9073 GB, free: 57.08 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001092/0.2573, allocations: 0.5769 MB / 0.9079 GB, free: 56.45 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/0.2573, allocations: 8.031 kB / 0.9079 GB, free: 56.45 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001121/0.2574, allocations: 70.53 kB / 0.908 GB, free: 56.37 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001299/0.2588, allocations: 139.3 kB / 0.9081 GB, free: 56.23 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004411/0.2592, allocations: 282.5 kB / 0.9084 GB, free: 55.91 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.741e-05/0.2593, allocations: 24.59 kB / 0.9084 GB, free: 55.89 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.512e-05/0.2593, allocations: 31.98 kB / 0.9084 GB, free: 55.86 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008704/0.2602, allocations: 455.5 kB / 0.9089 GB, free: 55.38 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.2603, allocations: 4 kB / 0.9089 GB, free: 55.37 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.544e-05/0.2603, allocations: 19.92 kB / 0.9089 GB, free: 55.35 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.547e-05/0.2604, allocations: 36.5 kB / 0.9089 GB, free: 55.32 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006719/0.2611, allocations: 317.9 kB / 0.9092 GB, free: 55 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002522/0.2636, allocations: 2.193 MB / 0.9114 GB, free: 52.6 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004669/0.2641, allocations: 251.8 kB / 0.9116 GB, free: 52.32 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000324/0.2645, allocations: 104.8 kB / 0.9117 GB, free: 52.22 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.756e-05/0.2645, allocations: 4 kB / 0.9117 GB, free: 52.21 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.262e-05/0.2645, allocations: 34.56 kB / 0.9117 GB, free: 52.17 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=14): time 4.658e-06/0.2645, allocations: 0 / 0.9117 GB, free: 52.17 MB / 0.6042 GB Notification: Performance of matching and sorting (n=14): time 0.0007617/0.2653, allocations: 313.4 kB / 0.912 GB, free: 51.84 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.616e-05/0.2654, allocations: 51.41 kB / 0.9121 GB, free: 51.78 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003239/0.2657, allocations: 266.5 kB / 0.9123 GB, free: 51.51 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.2658, allocations: 29.7 kB / 0.9124 GB, free: 51.48 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.000115/0.2659, allocations: 207.8 kB / 0.9126 GB, free: 51.27 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.224e-05/0.2659, allocations: 51.27 kB / 0.9126 GB, free: 51.22 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.199e-05/0.266, allocations: 4 kB / 0.9126 GB, free: 51.21 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.262e-05/0.266, allocations: 338.8 kB / 0.9129 GB, free: 50.88 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001277/0.2662, allocations: 52.44 kB / 0.913 GB, free: 50.82 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001764/0.2664, allocations: 148 kB / 0.9131 GB, free: 50.64 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001799/0.2666, allocations: 77.19 kB / 0.9132 GB, free: 50.56 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.2666, allocations: 4 kB / 0.9132 GB, free: 50.56 MB / 0.6042 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005481/0.2671, allocations: 255.7 kB / 0.9135 GB, free: 50.3 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/0.2672, allocations: 11.95 kB / 0.9135 GB, free: 50.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.2672, allocations: 0 / 0.9135 GB, free: 50.29 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002019/0.2674, allocations: 33.22 kB / 0.9135 GB, free: 50.25 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002844/0.2677, allocations: 51.91 kB / 0.9136 GB, free: 50.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001023/0.2687, allocations: 1.319 MB / 0.9148 GB, free: 48.75 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002665/0.269, allocations: 27.69 kB / 0.9149 GB, free: 48.73 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.931e-05/0.2691, allocations: 8 kB / 0.9149 GB, free: 48.72 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (27): * Single equations (assignments): 26 * 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 0.0001882/0.2693, allocations: 165.7 kB / 0.915 GB, free: 48.55 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.271e-05/0.2693, allocations: 35.64 kB / 0.9151 GB, free: 48.51 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.374e-05/0.2694, allocations: 29.94 kB / 0.9151 GB, free: 48.48 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.2694, allocations: 4 kB / 0.9151 GB, free: 48.48 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.2695, allocations: 4 kB / 0.9151 GB, free: 48.47 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.2695, allocations: 3.984 kB / 0.9151 GB, free: 48.47 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001154/0.2706, allocations: 0.7064 MB / 0.9158 GB, free: 47.67 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.105e-06/0.2707, allocations: 0 / 0.9158 GB, free: 47.67 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001269/0.2708, allocations: 27.92 kB / 0.9158 GB, free: 47.64 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001146/0.2709, allocations: 24.84 kB / 0.9158 GB, free: 47.62 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.361e-05/0.271, allocations: 0 / 0.9158 GB, free: 47.62 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009122/0.2719, allocations: 1.312 MB / 0.9171 GB, free: 46.17 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.2719, allocations: 0 / 0.9171 GB, free: 46.17 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004275/0.2723, allocations: 317.2 kB / 0.9174 GB, free: 45.82 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.2725, allocations: 116.8 kB / 0.9175 GB, free: 45.69 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.327e-05/0.2725, allocations: 11.98 kB / 0.9176 GB, free: 45.68 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002765/0.2728, allocations: 12 kB / 0.9176 GB, free: 45.67 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.351e-05/0.2729, allocations: 11.94 kB / 0.9176 GB, free: 45.66 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.552e-05/0.2729, allocations: 4 kB / 0.9176 GB, free: 45.65 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0002368/0.2731, allocations: 190 kB / 0.9178 GB, free: 45.47 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.653e-06/0.2732, allocations: 0 / 0.9178 GB, free: 45.47 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0007235/0.2739, allocations: 87.69 kB / 0.9178 GB, free: 45.38 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (14): * Single equations (assignments): 13 * 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.0006652/0.2746, allocations: 0.8493 MB / 0.9187 GB, free: 44.48 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0005921/0.2752, allocations: 266.9 kB / 0.9189 GB, free: 44.21 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.2752, allocations: 4.25 kB / 0.9189 GB, free: 44.21 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002561/0.2755, allocations: 182.5 kB / 0.9191 GB, free: 44.02 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007432/0.2762, allocations: 56.72 kB / 0.9192 GB, free: 43.96 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00262/0.2789, allocations: 1.528 MB / 0.9207 GB, free: 42.34 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002739/0.2792, allocations: 0.795 MB / 0.9214 GB, free: 41.52 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0002366/0.2794, allocations: 50.25 kB / 0.9215 GB, free: 41.47 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001457/0.2796, allocations: 83.41 kB / 0.9216 GB, free: 41.39 MB / 0.6042 GB Notification: Performance of SimCode: time 8.12e-07/0.2796, allocations: 0 / 0.9216 GB, free: 41.39 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02189/0.3015, allocations: 4.92 MB / 0.9264 GB, free: 36.66 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002207/0.3018, allocations: 213.5 kB / 0.9266 GB, free: 36.42 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.79/2.092, allocations: 0 / 0.9266 GB, free: 36.42 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)