Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor") translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 106.2 kB / 16.35 MB, free: 5.879 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001479/0.001479, allocations: 197.2 kB / 17.29 MB, free: 5.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.461/1.461, allocations: 205.1 MB / 223.2 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.759/1.759, allocations: 292.3 MB / 0.5496 GB, free: 12.73 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 71 kB / 0.6729 GB, free: 26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.242/0.2435, allocations: 114.5 MB / 0.7848 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.00631/0.2498, allocations: 3.818 MB / 0.7885 GB, free: 8.906 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002847/0.2527, allocations: 1.73 MB / 0.7902 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002061/0.2529, allocations: 11.94 kB / 0.7902 GB, free: 7.152 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.00142/0.2544, allocations: 499.3 kB / 0.7907 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0005322/0.255, allocations: 214.9 kB / 0.7909 GB, free: 6.453 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005716/0.2555, allocations: 214.3 kB / 0.7911 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005052/0.2561, allocations: 474.4 kB / 0.7915 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005631/0.2566, allocations: 369.1 kB / 0.7919 GB, free: 5.418 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002059/0.2568, allocations: 191.4 kB / 0.7921 GB, free: 5.23 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003889/0.2572, allocations: 219.1 kB / 0.7923 GB, free: 5.016 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.603e-05/0.2573, allocations: 28 kB / 0.7923 GB, free: 4.988 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005232/0.2578, allocations: 243.4 kB / 0.7925 GB, free: 4.75 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001323/0.258, allocations: 131.7 kB / 0.7927 GB, free: 4.621 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000184/0.2582, allocations: 171.1 kB / 0.7928 GB, free: 4.453 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005945/0.2588, allocations: 0.4984 MB / 0.7933 GB, free: 3.953 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2588, allocations: 0 / 0.7933 GB, free: 3.953 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.613e-06/0.2588, allocations: 0 / 0.7933 GB, free: 3.953 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.959e-06/0.2588, allocations: 4 kB / 0.7933 GB, free: 3.949 MB / 0.6075 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.0009627/0.2598, allocations: 0.6277 MB / 0.7939 GB, free: 3.273 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.2598, allocations: 12.03 kB / 0.7939 GB, free: 3.262 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009194/0.2608, allocations: 132.4 kB / 0.7941 GB, free: 3.133 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003948/0.2612, allocations: 283.7 kB / 0.7943 GB, free: 2.816 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.274e-05/0.2612, allocations: 25.02 kB / 0.7944 GB, free: 2.793 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.524e-05/0.2612, allocations: 28.38 kB / 0.7944 GB, free: 2.766 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006481/0.2619, allocations: 467.8 kB / 0.7948 GB, free: 2.27 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.2619, allocations: 0 / 0.7948 GB, free: 2.27 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.378e-05/0.262, allocations: 12 kB / 0.7948 GB, free: 2.258 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-05/0.262, allocations: 32.55 kB / 0.7949 GB, free: 2.227 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004818/0.2625, allocations: 317.9 kB / 0.7952 GB, free: 1.918 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002371/0.2649, allocations: 2.181 MB / 0.7973 GB, free: 15.52 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003922/0.2653, allocations: 259.8 kB / 0.7976 GB, free: 15.24 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002729/0.2656, allocations: 112.8 kB / 0.7977 GB, free: 15.13 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 9.818e-06/0.2656, allocations: 0 / 0.7977 GB, free: 15.13 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.702e-05/0.2656, allocations: 38.56 kB / 0.7977 GB, free: 15.08 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=14): time 2.815e-06/0.2656, allocations: 4 kB / 0.7977 GB, free: 15.08 MB / 0.6231 GB Notification: Performance of matching and sorting (n=14): time 0.000618/0.2663, allocations: 291.2 kB / 0.798 GB, free: 14.77 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.512e-05/0.2663, allocations: 55.41 kB / 0.798 GB, free: 14.7 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002912/0.2666, allocations: 270.5 kB / 0.7983 GB, free: 14.43 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/0.2667, allocations: 29.7 kB / 0.7983 GB, free: 14.39 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001296/0.2668, allocations: 199.8 kB / 0.7985 GB, free: 14.19 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 4.049e-05/0.2668, allocations: 59.28 kB / 0.7986 GB, free: 14.13 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.06e-05/0.2669, allocations: 37.95 kB / 0.7986 GB, free: 14.08 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001403/0.2671, allocations: 342.8 kB / 0.7989 GB, free: 13.74 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.762e-05/0.2672, allocations: 52.44 kB / 0.799 GB, free: 13.69 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001581/0.2673, allocations: 149.4 kB / 0.7991 GB, free: 13.5 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002632/0.2676, allocations: 217.9 kB / 0.7993 GB, free: 13.25 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2676, allocations: 4.094 kB / 0.7993 GB, free: 13.25 MB / 0.6231 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004177/0.268, allocations: 269.8 kB / 0.7996 GB, free: 12.98 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.2681, allocations: 8 kB / 0.7996 GB, free: 12.97 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.2681, allocations: 4 kB / 0.7996 GB, free: 12.96 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001657/0.2683, allocations: 29.22 kB / 0.7996 GB, free: 12.93 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001922/0.2685, allocations: 47.92 kB / 0.7997 GB, free: 12.89 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001157/0.2696, allocations: 1.43 MB / 0.8011 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001747/0.2698, allocations: 23.69 kB / 0.8011 GB, free: 11.3 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.652e-05/0.2698, allocations: 12 kB / 0.8011 GB, free: 11.29 MB / 0.6231 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 (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.0001732/0.27, allocations: 176.1 kB / 0.8013 GB, free: 11.11 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.396e-05/0.2701, allocations: 23.72 kB / 0.8013 GB, free: 11.08 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.503e-05/0.2701, allocations: 37.92 kB / 0.8013 GB, free: 11.05 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.2701, allocations: 0 / 0.8013 GB, free: 11.05 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.2701, allocations: 0 / 0.8013 GB, free: 11.05 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.2702, allocations: 0 / 0.8013 GB, free: 11.05 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009762/0.2711, allocations: 0.6986 MB / 0.802 GB, free: 10.26 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.2712, allocations: 4 kB / 0.802 GB, free: 10.25 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.24e-05/0.2712, allocations: 27.86 kB / 0.802 GB, free: 10.23 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.084e-05/0.2713, allocations: 28.78 kB / 0.8021 GB, free: 10.2 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.2714, allocations: 4 kB / 0.8021 GB, free: 10.19 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009465/0.2723, allocations: 1.41 MB / 0.8035 GB, free: 8.645 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.2723, allocations: 0 / 0.8035 GB, free: 8.645 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003365/0.2727, allocations: 321.2 kB / 0.8038 GB, free: 8.293 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001075/0.2728, allocations: 120.8 kB / 0.8039 GB, free: 8.156 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.684e-05/0.2728, allocations: 4 kB / 0.8039 GB, free: 8.152 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001726/0.273, allocations: 11.98 kB / 0.8039 GB, free: 8.141 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.041e-05/0.2731, allocations: 23.86 kB / 0.8039 GB, free: 8.117 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/0.2731, allocations: 4 kB / 0.8039 GB, free: 8.113 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001714/0.2733, allocations: 190 kB / 0.8041 GB, free: 7.93 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2733, allocations: 0 / 0.8041 GB, free: 7.93 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0004277/0.2737, allocations: 83.75 kB / 0.8042 GB, free: 7.848 MB / 0.6231 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 (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.0001187/0.2738, allocations: 99.25 kB / 0.8043 GB, free: 7.738 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0004664/0.2743, allocations: 270.1 kB / 0.8045 GB, free: 7.465 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.96e-06/0.2743, allocations: 4.188 kB / 0.8045 GB, free: 7.461 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0002088/0.2745, allocations: 190.6 kB / 0.8047 GB, free: 7.262 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004839/0.275, allocations: 67.64 kB / 0.8048 GB, free: 7.195 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008185/0.2758, allocations: 0.5363 MB / 0.8053 GB, free: 6.613 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003368/0.2762, allocations: 0.787 MB / 0.8061 GB, free: 5.801 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001276/0.2763, allocations: 42.27 kB / 0.8061 GB, free: 5.758 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.541e-05/0.2764, allocations: 19.44 kB / 0.8061 GB, free: 5.738 MB / 0.6231 GB Notification: Performance of SimCode: time 4.11e-07/0.2764, allocations: 0 / 0.8061 GB, free: 5.738 MB / 0.6231 GB Notification: Performance of Templates: time 0.00612/0.2825, allocations: 2.692 MB / 0.8088 GB, free: 3.078 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)