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.2115/0.2139, allocations: 80.85 MB / 0.6706 GB, free: 2.008 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.006842/0.2208, allocations: 3.783 MB / 0.6743 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.003402/0.2242, allocations: 1.824 MB / 0.6761 GB, free: 12.37 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000407/0.2247, allocations: 11.94 kB / 0.6761 GB, free: 12.36 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001615/0.2264, allocations: 0.4903 MB / 0.6766 GB, free: 11.87 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0008051/0.2272, allocations: 230.8 kB / 0.6768 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007044/0.2279, allocations: 210.5 kB / 0.677 GB, free: 11.44 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0007846/0.2287, allocations: 482.3 kB / 0.6775 GB, free: 10.96 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007802/0.2295, allocations: 361 kB / 0.6778 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004168/0.2299, allocations: 191.4 kB / 0.678 GB, free: 10.42 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000628/0.2306, allocations: 227.2 kB / 0.6782 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 8.235e-05/0.2307, allocations: 28 kB / 0.6782 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006267/0.2313, allocations: 239.4 kB / 0.6785 GB, free: 9.938 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001991/0.2315, allocations: 131.7 kB / 0.6786 GB, free: 9.809 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002436/0.2318, allocations: 171.1 kB / 0.6788 GB, free: 9.641 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0009607/0.2327, allocations: 0.4981 MB / 0.6792 GB, free: 9.141 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.2327, allocations: 3.938 kB / 0.6792 GB, free: 9.137 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.794e-06/0.2327, allocations: 0 / 0.6792 GB, free: 9.137 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 2.262e-05/0.2328, allocations: 4 kB / 0.6793 GB, free: 9.133 MB / 0.5137 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.001389/0.2342, allocations: 0.6349 MB / 0.6799 GB, free: 8.445 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.266e-05/0.2342, allocations: 12.03 kB / 0.6799 GB, free: 8.434 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009545/0.2352, allocations: 132.6 kB / 0.68 GB, free: 8.305 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004734/0.2357, allocations: 299.8 kB / 0.6803 GB, free: 7.973 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.345e-05/0.2357, allocations: 21.03 kB / 0.6803 GB, free: 7.953 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.288e-05/0.2358, allocations: 32.34 kB / 0.6803 GB, free: 7.922 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007661/0.2366, allocations: 463.9 kB / 0.6808 GB, free: 7.434 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.2366, allocations: 3.984 kB / 0.6808 GB, free: 7.43 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.906e-05/0.2366, allocations: 15.98 kB / 0.6808 GB, free: 7.414 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.36e-05/0.2367, allocations: 28.55 kB / 0.6808 GB, free: 7.387 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005244/0.2372, allocations: 325.9 kB / 0.6811 GB, free: 7.062 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002326/0.2396, allocations: 1.776 MB / 0.6829 GB, free: 5.176 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004067/0.24, allocations: 251.8 kB / 0.6831 GB, free: 4.902 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002504/0.2402, allocations: 112.7 kB / 0.6832 GB, free: 4.789 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 1.613e-05/0.2403, allocations: 0 / 0.6832 GB, free: 4.789 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.459e-05/0.2403, allocations: 34.56 kB / 0.6833 GB, free: 4.746 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=14): time 1.813e-06/0.2403, allocations: 0 / 0.6833 GB, free: 4.746 MB / 0.5137 GB Notification: Performance of matching and sorting (n=14): time 0.0006997/0.241, allocations: 307.6 kB / 0.6836 GB, free: 4.418 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.955e-05/0.2411, allocations: 59.41 kB / 0.6836 GB, free: 4.348 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003153/0.2414, allocations: 262.6 kB / 0.6839 GB, free: 4.082 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.206e-05/0.2414, allocations: 25.7 kB / 0.6839 GB, free: 4.051 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001685/0.2416, allocations: 220.2 kB / 0.6841 GB, free: 3.828 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 4.465e-05/0.2417, allocations: 43.58 kB / 0.6841 GB, free: 3.785 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001173/0.2418, allocations: 57.89 kB / 0.6842 GB, free: 3.719 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001719/0.242, allocations: 334.8 kB / 0.6845 GB, free: 3.383 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001044/0.2421, allocations: 60.53 kB / 0.6846 GB, free: 3.324 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001722/0.2423, allocations: 144 kB / 0.6847 GB, free: 3.145 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002785/0.2426, allocations: 222 kB / 0.6849 GB, free: 2.891 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.2426, allocations: 0 / 0.6849 GB, free: 2.891 MB / 0.5137 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004471/0.243, allocations: 266 kB / 0.6852 GB, free: 2.621 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.243, allocations: 8 kB / 0.6852 GB, free: 2.613 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.2431, allocations: 4 kB / 0.6852 GB, free: 2.609 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002142/0.2433, allocations: 24.84 kB / 0.6852 GB, free: 2.582 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001865/0.2435, allocations: 52.28 kB / 0.6853 GB, free: 2.531 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001357/0.2449, allocations: 1.422 MB / 0.6866 GB, free: 0.9727 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001771/0.245, allocations: 31.73 kB / 0.6867 GB, free: 0.9414 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.951e-05/0.2451, allocations: 12 kB / 0.6867 GB, free: 0.9297 MB / 0.5137 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.0001955/0.2453, allocations: 165.7 kB / 0.6868 GB, free: 0.7578 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.219e-05/0.2453, allocations: 23.86 kB / 0.6869 GB, free: 0.7344 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.374e-05/0.2454, allocations: 29.83 kB / 0.6869 GB, free: 0.7031 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.123e-06/0.2454, allocations: 0 / 0.6869 GB, free: 0.7031 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.2454, allocations: 64 / 0.6869 GB, free: 0.7031 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.2454, allocations: 8 kB / 0.6869 GB, free: 0.6953 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000934/0.2464, allocations: 0.6484 MB / 0.6875 GB, free: 15.97 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.2464, allocations: 8.188 kB / 0.6875 GB, free: 15.96 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.584e-05/0.2465, allocations: 23.98 kB / 0.6876 GB, free: 15.94 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001013/0.2466, allocations: 24.78 kB / 0.6876 GB, free: 15.91 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.927e-05/0.2466, allocations: 12.06 kB / 0.6876 GB, free: 15.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001039/0.2477, allocations: 1.41 MB / 0.689 GB, free: 14.35 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.2477, allocations: 7.875 kB / 0.689 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003652/0.248, allocations: 321.3 kB / 0.6893 GB, free: 13.99 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001048/0.2482, allocations: 116.9 kB / 0.6894 GB, free: 13.86 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.451e-05/0.2482, allocations: 4 kB / 0.6894 GB, free: 13.86 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001557/0.2484, allocations: 16 kB / 0.6894 GB, free: 13.84 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.179e-05/0.2484, allocations: 19.92 kB / 0.6894 GB, free: 13.82 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.188e-05/0.2484, allocations: 4 kB / 0.6894 GB, free: 13.82 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0001998/0.2486, allocations: 190 kB / 0.6896 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2486, allocations: 0 / 0.6896 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0004147/0.2491, allocations: 75.83 kB / 0.6897 GB, free: 13.55 MB / 0.5294 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.0001465/0.2492, allocations: 107.2 kB / 0.6898 GB, free: 13.44 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0004974/0.2497, allocations: 274.5 kB / 0.6901 GB, free: 13.16 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.2497, allocations: 0 / 0.6901 GB, free: 13.16 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0002292/0.25, allocations: 187.7 kB / 0.6902 GB, free: 12.96 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004798/0.2505, allocations: 54.89 kB / 0.6903 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000976/0.2514, allocations: 0.543 MB / 0.6908 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004549/0.2519, allocations: 0.7987 MB / 0.6916 GB, free: 11.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0001678/0.2521, allocations: 46.27 kB / 0.6917 GB, free: 11.45 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.098e-05/0.2522, allocations: 19.44 kB / 0.6917 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of SimCode: time 4.71e-07/0.2522, allocations: 0 / 0.6917 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of Templates: time 0.006955/0.2591, allocations: 2.716 MB / 0.6943 GB, free: 8.746 MB / 0.5294 GB 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)