Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor") translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.694/1.694, allocations: 288.3 MB / 303.2 MB, free: 8.16 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001185/0.001185, allocations: 181 kB / 371.9 MB, free: 10.27 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.725/1.725, allocations: 205.4 MB / 0.6306 GB, free: 9.992 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008861/0.0008863, allocations: 102.8 kB / 0.7439 GB, free: 5.922 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003926/0.0003928, allocations: 10.94 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2497/0.2502, allocations: 115.3 MB / 0.9794 GB, free: 27.71 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.003646/0.2539, allocations: 3.249 MB / 0.9826 GB, free: 24.44 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002069/0.256, allocations: 1.599 MB / 0.9841 GB, free: 22.83 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001521/0.2561, allocations: 11.94 kB / 0.9842 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001889/0.2563, allocations: 55.67 kB / 0.9842 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0003767/0.2567, allocations: 159.4 kB / 0.9844 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003713/0.2571, allocations: 151.7 kB / 0.9845 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002857/0.2574, allocations: 267.4 kB / 0.9848 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000347/0.2577, allocations: 286.2 kB / 0.985 GB, free: 21.9 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001229/0.2579, allocations: 135.5 kB / 0.9852 GB, free: 21.77 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002551/0.2581, allocations: 135.5 kB / 0.9853 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.218e-05/0.2582, allocations: 16 kB / 0.9853 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002035/0.2584, allocations: 119.7 kB / 0.9854 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.487e-05/0.2585, allocations: 95.77 kB / 0.9855 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.078e-05/0.2586, allocations: 85.52 kB / 0.9856 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003295/0.2589, allocations: 367.3 kB / 0.9859 GB, free: 20.96 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2589, allocations: 3.938 kB / 0.986 GB, free: 20.96 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.324e-06/0.2589, allocations: 3.984 kB / 0.986 GB, free: 20.95 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.472e-06/0.2589, allocations: 4 kB / 0.986 GB, free: 20.95 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.000857/0.2598, allocations: 0.573 MB / 0.9865 GB, free: 20.33 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.2598, allocations: 12.02 kB / 0.9865 GB, free: 20.32 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008509/0.2607, allocations: 147.4 kB / 0.9867 GB, free: 20.17 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003512/0.2611, allocations: 286.4 kB / 0.9869 GB, free: 19.85 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.373e-05/0.2611, allocations: 20.66 kB / 0.987 GB, free: 19.83 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.169e-05/0.2611, allocations: 35.92 kB / 0.987 GB, free: 19.8 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005561/0.2617, allocations: 459.6 kB / 0.9874 GB, free: 19.31 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.2617, allocations: 0 / 0.9874 GB, free: 19.31 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.45e-05/0.2618, allocations: 12 kB / 0.9874 GB, free: 19.3 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.848e-05/0.2618, allocations: 32.55 kB / 0.9875 GB, free: 19.27 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003997/0.2622, allocations: 313.9 kB / 0.9878 GB, free: 18.96 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001709/0.2639, allocations: 2.193 MB / 0.9899 GB, free: 16.56 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002964/0.2642, allocations: 247.8 kB / 0.9902 GB, free: 16.29 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.079e-05/0.2643, allocations: 3.938 kB / 0.9902 GB, free: 16.29 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.251e-05/0.2643, allocations: 42.5 kB / 0.9902 GB, free: 16.23 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=14): time 1.273e-06/0.2643, allocations: 0 / 0.9902 GB, free: 16.23 MB / 0.6198 GB Notification: Performance of matching and sorting (n=14): time 0.0005211/0.2648, allocations: 310.2 kB / 0.9905 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.834e-05/0.2649, allocations: 59.41 kB / 0.9906 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002211/0.2651, allocations: 266.5 kB / 0.9908 GB, free: 15.56 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.761e-05/0.2651, allocations: 29.7 kB / 0.9908 GB, free: 15.53 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 9.489e-05/0.2652, allocations: 207.8 kB / 0.991 GB, free: 15.32 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.9e-05/0.2653, allocations: 51.3 kB / 0.9911 GB, free: 15.27 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.508e-06/0.2653, allocations: 4 kB / 0.9911 GB, free: 15.27 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.521e-05/0.2654, allocations: 334.8 kB / 0.9914 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.379e-05/0.2655, allocations: 60.44 kB / 0.9915 GB, free: 14.87 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.2656, allocations: 141.1 kB / 0.9916 GB, free: 14.7 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001153/0.2657, allocations: 83.91 kB / 0.9917 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.2657, allocations: 4.094 kB / 0.9917 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003354/0.2661, allocations: 271.5 kB / 0.9919 GB, free: 14.34 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.2661, allocations: 8 kB / 0.9919 GB, free: 14.33 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.2661, allocations: 4 kB / 0.992 GB, free: 14.32 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001695/0.2663, allocations: 24.84 kB / 0.992 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001737/0.2665, allocations: 55.88 kB / 0.992 GB, free: 14.24 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008105/0.2673, allocations: 1.323 MB / 0.9933 GB, free: 12.79 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001486/0.2674, allocations: 23.72 kB / 0.9933 GB, free: 12.76 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.632e-05/0.2675, allocations: 16 kB / 0.9934 GB, free: 12.75 MB / 0.6198 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.0001674/0.2676, allocations: 166 kB / 0.9935 GB, free: 12.57 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.285e-05/0.2677, allocations: 23.72 kB / 0.9935 GB, free: 12.55 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.311e-05/0.2677, allocations: 29.83 kB / 0.9936 GB, free: 12.52 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.2678, allocations: 7.953 kB / 0.9936 GB, free: 12.52 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.2678, allocations: 0 / 0.9936 GB, free: 12.52 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.2678, allocations: 3.984 kB / 0.9936 GB, free: 12.51 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006375/0.2684, allocations: 0.6351 MB / 0.9942 GB, free: 11.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.2684, allocations: 4 kB / 0.9942 GB, free: 11.8 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.074e-05/0.2685, allocations: 16 kB / 0.9942 GB, free: 11.79 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.731e-05/0.2686, allocations: 24.84 kB / 0.9942 GB, free: 11.76 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.2686, allocations: 15.88 kB / 0.9943 GB, free: 11.74 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006096/0.2692, allocations: 1.308 MB / 0.9955 GB, free: 10.3 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.2692, allocations: 4.188 kB / 0.9955 GB, free: 10.3 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002534/0.2695, allocations: 362.2 kB / 0.9959 GB, free: 9.887 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 7.83e-05/0.2696, allocations: 112.8 kB / 0.996 GB, free: 9.758 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.866e-05/0.2696, allocations: 7.984 kB / 0.996 GB, free: 9.75 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001472/0.2698, allocations: 12 kB / 0.996 GB, free: 9.738 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.254e-05/0.2698, allocations: 7.984 kB / 0.996 GB, free: 9.73 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.827e-06/0.2698, allocations: 4 kB / 0.996 GB, free: 9.727 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001334/0.27, allocations: 198 kB / 0.9962 GB, free: 9.531 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.11e-07/0.27, allocations: 0 / 0.9962 GB, free: 9.531 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003514/0.2703, allocations: 79.69 kB / 0.9963 GB, free: 9.453 MB / 0.6198 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.0001145/0.2704, allocations: 103.2 kB / 0.9964 GB, free: 9.344 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003897/0.2708, allocations: 278.9 kB / 0.9967 GB, free: 9.059 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.2709, allocations: 0 / 0.9967 GB, free: 9.059 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001611/0.271, allocations: 190.6 kB / 0.9968 GB, free: 8.859 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003356/0.2714, allocations: 54.72 kB / 0.9969 GB, free: 8.809 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000713/0.2721, allocations: 0.625 MB / 0.9975 GB, free: 8.145 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002004/0.2723, allocations: 0.8028 MB / 0.9983 GB, free: 7.312 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001355/0.2725, allocations: 46.25 kB / 0.9983 GB, free: 7.266 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.164e-05/0.2725, allocations: 19.44 kB / 0.9983 GB, free: 7.246 MB / 0.6198 GB Notification: Performance of SimCode: time 2.41e-07/0.2725, allocations: 0 / 0.9983 GB, free: 7.246 MB / 0.6198 GB Notification: Performance of Templates: time 0.004952/0.2775, allocations: 2.437 MB / 1.001 GB, free: 4.84 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_maint.8.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_maint.8.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)