Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo", uses=false) 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 3.0.0/package.mo", uses=false) Using package Buildings with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/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) Using package Modelica_StateGraph2 with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo) Running command: translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor") translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:257:38-257:110:writable] Warning: The file was not encoded in UTF-8: "

An important practical aspect of state machines is the abilit...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:761:36-761:108:writable] Warning: The file was not encoded in UTF-8: "

The Modelica_StateGraph2 library is described in detail in (O...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:1435:36-1435:108:writable] Warning: The file was not encoded in UTF-8: "

Main Authors:
SCode: time 0.382/0.384, allocations: 80.82 MB / 0.5904 GB, free: 22.23 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005313/0.3894, allocations: 3.799 MB / 0.5941 GB, free: 18.99 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002502/0.3919, allocations: 1.83 MB / 0.5959 GB, free: 17.15 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001638/0.3921, allocations: 11.94 kB / 0.5959 GB, free: 17.14 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00123/0.3933, allocations: 487.2 kB / 0.5964 GB, free: 16.67 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004158/0.3938, allocations: 240.5 kB / 0.5966 GB, free: 16.43 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004375/0.3942, allocations: 218.3 kB / 0.5968 GB, free: 16.22 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003446/0.3946, allocations: 466.5 kB / 0.5973 GB, free: 15.77 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004601/0.395, allocations: 358.3 kB / 0.5976 GB, free: 15.43 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001417/0.3952, allocations: 199.3 kB / 0.5978 GB, free: 15.24 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003062/0.3955, allocations: 219.2 kB / 0.598 GB, free: 15.02 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.324e-05/0.3956, allocations: 28 kB / 0.598 GB, free: 15 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003169/0.3959, allocations: 251.4 kB / 0.5983 GB, free: 14.75 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.396, allocations: 123.7 kB / 0.5984 GB, free: 14.63 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000135/0.3961, allocations: 163.2 kB / 0.5985 GB, free: 14.47 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004333/0.3966, allocations: 0.4984 MB / 0.599 GB, free: 13.97 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.3966, allocations: 0 / 0.599 GB, free: 13.97 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3966, allocations: 0 / 0.599 GB, free: 13.97 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.293e-06/0.3966, allocations: 0 / 0.599 GB, free: 13.97 MB / 446.1 MB 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.0008543/0.3975, allocations: 0.6278 MB / 0.5996 GB, free: 13.29 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.3975, allocations: 8.031 kB / 0.5997 GB, free: 13.29 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008537/0.3984, allocations: 128.4 kB / 0.5998 GB, free: 13.16 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00028/0.3987, allocations: 291.6 kB / 0.6001 GB, free: 12.84 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.6e-05/0.3987, allocations: 21.03 kB / 0.6001 GB, free: 12.82 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.255e-05/0.3987, allocations: 36.3 kB / 0.6001 GB, free: 12.78 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004957/0.3992, allocations: 463.9 kB / 0.6006 GB, free: 12.29 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.3993, allocations: 4 kB / 0.6006 GB, free: 12.29 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.373e-05/0.3993, allocations: 15.98 kB / 0.6006 GB, free: 12.27 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.954e-05/0.3993, allocations: 28.55 kB / 0.6006 GB, free: 12.24 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000387/0.3997, allocations: 321.9 kB / 0.6009 GB, free: 11.92 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001493/0.4012, allocations: 1.787 MB / 0.6027 GB, free: 10.02 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000304/0.4015, allocations: 243.8 kB / 0.6029 GB, free: 9.758 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000211/0.4018, allocations: 112.8 kB / 0.603 GB, free: 9.645 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.096e-05/0.4018, allocations: 4 kB / 0.603 GB, free: 9.641 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.854e-05/0.4018, allocations: 34.56 kB / 0.603 GB, free: 9.598 MB / 446.1 MB Notification: Performance of pre-optimization done (n=14): time 1.163e-06/0.4018, allocations: 0 / 0.603 GB, free: 9.598 MB / 446.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005402/0.4024, allocations: 303.5 kB / 0.6033 GB, free: 9.273 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.646e-05/0.4024, allocations: 55.41 kB / 0.6034 GB, free: 9.207 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002042/0.4026, allocations: 270.5 kB / 0.6036 GB, free: 8.93 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.193e-05/0.4026, allocations: 25.7 kB / 0.6037 GB, free: 8.898 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.926e-05/0.4027, allocations: 211.8 kB / 0.6039 GB, free: 8.688 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.816e-05/0.4028, allocations: 55.33 kB / 0.6039 GB, free: 8.633 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.93e-05/0.4028, allocations: 49.88 kB / 0.604 GB, free: 8.574 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.003e-05/0.4029, allocations: 334.8 kB / 0.6043 GB, free: 8.238 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.2e-05/0.403, allocations: 60.44 kB / 0.6043 GB, free: 8.18 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001085/0.4031, allocations: 145 kB / 0.6045 GB, free: 8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001951/0.4033, allocations: 218.9 kB / 0.6047 GB, free: 7.746 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.4033, allocations: 0 / 0.6047 GB, free: 7.746 MB / 446.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003321/0.4036, allocations: 268.1 kB / 0.6049 GB, free: 7.477 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.4037, allocations: 4 kB / 0.6049 GB, free: 7.473 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.4037, allocations: 4 kB / 0.6049 GB, free: 7.469 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001878/0.4039, allocations: 28.78 kB / 0.605 GB, free: 7.438 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001647/0.404, allocations: 55.84 kB / 0.605 GB, free: 7.383 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007949/0.4049, allocations: 1.418 MB / 0.6064 GB, free: 5.824 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001487/0.405, allocations: 31.84 kB / 0.6064 GB, free: 5.793 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.485e-05/0.405, allocations: 12 kB / 0.6065 GB, free: 5.781 MB / 446.1 MB 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.0001298/0.4052, allocations: 169.7 kB / 0.6066 GB, free: 5.605 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.174e-05/0.4052, allocations: 23.72 kB / 0.6066 GB, free: 5.582 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.902e-05/0.4053, allocations: 25.83 kB / 0.6067 GB, free: 5.562 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.4053, allocations: 4 kB / 0.6067 GB, free: 5.559 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.4053, allocations: 0 / 0.6067 GB, free: 5.559 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.4053, allocations: 0 / 0.6067 GB, free: 5.559 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006749/0.406, allocations: 0.6561 MB / 0.6073 GB, free: 4.824 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.406, allocations: 192 / 0.6073 GB, free: 4.824 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.713e-05/0.4061, allocations: 31.92 kB / 0.6073 GB, free: 4.793 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.93e-05/0.4061, allocations: 28.78 kB / 0.6074 GB, free: 4.762 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.4062, allocations: 4 kB / 0.6074 GB, free: 4.758 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006555/0.4068, allocations: 1.406 MB / 0.6087 GB, free: 3.211 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.4068, allocations: 4.031 kB / 0.6087 GB, free: 3.207 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000241/0.4071, allocations: 317.1 kB / 0.609 GB, free: 2.859 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.811e-05/0.4072, allocations: 116.8 kB / 0.6092 GB, free: 2.727 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.771e-05/0.4072, allocations: 8 kB / 0.6092 GB, free: 2.719 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001485/0.4074, allocations: 8 kB / 0.6092 GB, free: 2.711 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.366e-05/0.4074, allocations: 19.86 kB / 0.6092 GB, free: 2.691 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-06/0.4074, allocations: 8 kB / 0.6092 GB, free: 2.684 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001337/0.4076, allocations: 190 kB / 0.6094 GB, free: 2.496 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4076, allocations: 4.094 kB / 0.6094 GB, free: 2.492 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003457/0.4079, allocations: 75.69 kB / 0.6095 GB, free: 2.418 MB / 446.1 MB 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 9.727e-05/0.408, allocations: 107.2 kB / 0.6096 GB, free: 2.305 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00039/0.4084, allocations: 283.2 kB / 0.6098 GB, free: 2.016 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4084, allocations: 0.75 kB / 0.6098 GB, free: 2.016 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001522/0.4086, allocations: 178.6 kB / 0.61 GB, free: 1.828 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004397/0.409, allocations: 66.25 kB / 0.6101 GB, free: 1.77 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006623/0.4097, allocations: 0.5496 MB / 0.6106 GB, free: 1.172 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002015/0.4099, allocations: 0.787 MB / 0.6114 GB, free: 368 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001234/0.41, allocations: 46.25 kB / 0.6114 GB, free: 324 kB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.97e-05/0.4101, allocations: 23.38 kB / 0.6114 GB, free: 304 kB / 446.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4101, allocations: 0 / 0.6114 GB, free: 304 kB / 446.1 MB Notification: Performance of Templates: time 0.006375/0.4165, allocations: 2.676 MB / 0.614 GB, free: 13.66 MB / 462.1 MB make -j1 -f Buildings_3.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_3.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_3.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_3.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_3.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)