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.385/1.385, allocations: 251.9 MB / 266.9 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.001014/0.001014, allocations: 181.6 kB / 326.5 MB, free: 2.246 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.595/1.595, allocations: 205.4 MB / 0.5775 GB, free: 20.27 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.0009515/0.0009515, allocations: 97.59 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003566/0.0003567, allocations: 10.44 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.2532, allocations: 106.3 MB / 0.9002 GB, free: 63.85 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.004188/0.2574, allocations: 3.257 MB / 0.9033 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002056/0.2595, allocations: 1.599 MB / 0.9049 GB, free: 58.96 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001463/0.2597, allocations: 7.938 kB / 0.9049 GB, free: 58.96 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.000178/0.2599, allocations: 51.69 kB / 0.905 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0003962/0.2603, allocations: 159.5 kB / 0.9051 GB, free: 58.75 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003812/0.2607, allocations: 155.6 kB / 0.9053 GB, free: 58.6 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002861/0.261, allocations: 263.4 kB / 0.9055 GB, free: 58.34 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003417/0.2613, allocations: 289.2 kB / 0.9058 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001261/0.2615, allocations: 135.5 kB / 0.9059 GB, free: 57.9 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002382/0.2617, allocations: 143.4 kB / 0.906 GB, free: 57.76 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.166e-05/0.2617, allocations: 16 kB / 0.9061 GB, free: 57.75 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00019/0.2619, allocations: 111.8 kB / 0.9062 GB, free: 57.64 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 6.825e-05/0.262, allocations: 95.78 kB / 0.9063 GB, free: 57.54 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.324e-05/0.2621, allocations: 85.52 kB / 0.9063 GB, free: 57.45 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0003266/0.2624, allocations: 363.4 kB / 0.9067 GB, free: 57.1 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.2624, allocations: 0 / 0.9067 GB, free: 57.1 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.014e-06/0.2624, allocations: 0 / 0.9067 GB, free: 57.1 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.2624, allocations: 0 / 0.9067 GB, free: 57.1 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.0008257/0.2633, allocations: 0.5924 MB / 0.9073 GB, free: 56.46 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.2633, allocations: 8.031 kB / 0.9073 GB, free: 56.45 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.878e-05/0.2634, allocations: 66.53 kB / 0.9073 GB, free: 56.38 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000895/0.2643, allocations: 155.3 kB / 0.9075 GB, free: 56.22 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003297/0.2646, allocations: 278.5 kB / 0.9077 GB, free: 55.91 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.001e-05/0.2647, allocations: 20.66 kB / 0.9078 GB, free: 55.89 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.612e-05/0.2647, allocations: 24 kB / 0.9078 GB, free: 55.87 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005449/0.2653, allocations: 463.6 kB / 0.9082 GB, free: 55.38 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.2653, allocations: 0 / 0.9082 GB, free: 55.38 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.303e-05/0.2653, allocations: 12 kB / 0.9082 GB, free: 55.36 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.66e-05/0.2654, allocations: 36.48 kB / 0.9083 GB, free: 55.33 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003932/0.2658, allocations: 321.9 kB / 0.9086 GB, free: 55.01 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001668/0.2675, allocations: 2.193 MB / 0.9107 GB, free: 52.61 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003106/0.2678, allocations: 251.7 kB / 0.911 GB, free: 52.33 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.582e-05/0.2678, allocations: 4 kB / 0.911 GB, free: 52.33 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.718e-05/0.2678, allocations: 30.56 kB / 0.911 GB, free: 52.29 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=14): time 1.433e-06/0.2678, allocations: 4 kB / 0.911 GB, free: 52.29 MB / 0.6042 GB Notification: Performance of matching and sorting (n=14): time 0.0005465/0.2684, allocations: 319.4 kB / 0.9113 GB, free: 51.95 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.373e-05/0.2684, allocations: 51.41 kB / 0.9114 GB, free: 51.88 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002101/0.2686, allocations: 270.5 kB / 0.9116 GB, free: 51.61 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.32e-05/0.2687, allocations: 25.7 kB / 0.9116 GB, free: 51.58 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 8.01e-05/0.2688, allocations: 207.8 kB / 0.9118 GB, free: 51.38 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.704e-05/0.2688, allocations: 51.23 kB / 0.9119 GB, free: 51.32 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.025e-05/0.2688, allocations: 12 kB / 0.9119 GB, free: 51.31 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.901e-05/0.2689, allocations: 326.8 kB / 0.9122 GB, free: 50.98 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.127e-05/0.269, allocations: 60.44 kB / 0.9123 GB, free: 50.92 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001102/0.2691, allocations: 147.1 kB / 0.9124 GB, free: 50.74 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001051/0.2692, allocations: 75.92 kB / 0.9125 GB, free: 50.67 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.2692, allocations: 0 / 0.9125 GB, free: 50.67 MB / 0.6042 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003229/0.2695, allocations: 272.4 kB / 0.9127 GB, free: 50.39 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.2695, allocations: 4 kB / 0.9127 GB, free: 50.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.2696, allocations: 7.953 kB / 0.9128 GB, free: 50.38 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001622/0.2697, allocations: 33.19 kB / 0.9128 GB, free: 50.35 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.2699, allocations: 47.91 kB / 0.9128 GB, free: 50.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007695/0.2707, allocations: 1.331 MB / 0.9141 GB, free: 48.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001525/0.2709, allocations: 23.75 kB / 0.9142 GB, free: 48.82 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.247e-05/0.2709, allocations: 8 kB / 0.9142 GB, free: 48.81 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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.0001372/0.271, allocations: 169.7 kB / 0.9143 GB, free: 48.63 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.276e-05/0.2711, allocations: 23.72 kB / 0.9143 GB, free: 48.61 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.702e-05/0.2711, allocations: 33.78 kB / 0.9144 GB, free: 48.57 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.2711, allocations: 192 / 0.9144 GB, free: 48.57 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.2711, allocations: 4 kB / 0.9144 GB, free: 48.57 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.2712, allocations: 3.938 kB / 0.9144 GB, free: 48.57 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006794/0.2718, allocations: 0.6234 MB / 0.915 GB, free: 47.87 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.2718, allocations: 0 / 0.915 GB, free: 47.87 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001147/0.272, allocations: 28.05 kB / 0.915 GB, free: 47.84 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.372e-05/0.2721, allocations: 28.84 kB / 0.915 GB, free: 47.81 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/0.2721, allocations: 0 / 0.915 GB, free: 47.81 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006343/0.2727, allocations: 1.331 MB / 0.9163 GB, free: 46.35 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.2727, allocations: 4.031 kB / 0.9164 GB, free: 46.34 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002503/0.273, allocations: 356.2 kB / 0.9167 GB, free: 45.94 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 7.747e-05/0.2731, allocations: 112.8 kB / 0.9168 GB, free: 45.81 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.815e-05/0.2731, allocations: 4 kB / 0.9168 GB, free: 45.81 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001512/0.2733, allocations: 12 kB / 0.9168 GB, free: 45.8 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.149e-05/0.2733, allocations: 15.98 kB / 0.9168 GB, free: 45.78 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/0.2733, allocations: 4 kB / 0.9168 GB, free: 45.78 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001356/0.2735, allocations: 186 kB / 0.917 GB, free: 45.6 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2735, allocations: 7.938 kB / 0.917 GB, free: 45.59 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003561/0.2738, allocations: 71.84 kB / 0.9171 GB, free: 45.52 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (13): * Single equations (assignments): 12 * 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.0004904/0.2743, allocations: 1.175 MB / 0.9182 GB, free: 44.29 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003945/0.2747, allocations: 270.5 kB / 0.9185 GB, free: 44.01 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2747, allocations: 0 / 0.9185 GB, free: 44.01 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001673/0.2749, allocations: 195.4 kB / 0.9187 GB, free: 43.8 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003629/0.2753, allocations: 48.52 kB / 0.9187 GB, free: 43.76 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001885/0.2772, allocations: 3.158 MB / 0.9218 GB, free: 40.5 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002627/0.2775, allocations: 0.7987 MB / 0.9226 GB, free: 39.67 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001512/0.2776, allocations: 50.23 kB / 0.9226 GB, free: 39.62 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001083/0.2777, allocations: 83.41 kB / 0.9227 GB, free: 39.54 MB / 0.6042 GB Notification: Performance of SimCode: time 2.3e-07/0.2777, allocations: 4.188 kB / 0.9227 GB, free: 39.54 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01743/0.2952, allocations: 4.841 MB / 0.9274 GB, free: 34.89 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001659/0.2954, allocations: 202.6 kB / 0.9276 GB, free: 34.66 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.965/2.261, allocations: 0 / 0.9276 GB, free: 34.66 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)