Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Electrical.DC.Lines.Examples.DCLine.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.Lines.Examples.DCLine,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.DC.Lines.Examples.DCLine") translateModel(Buildings.Electrical.DC.Lines.Examples.DCLine,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.DC.Lines.Examples.DCLine") [/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.2201/0.2226, allocations: 80.84 MB / 0.6706 GB, free: 4.59 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.01122/0.2338, allocations: 6.196 MB / 0.6767 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.008587/0.2425, allocations: 4.678 MB / 0.6812 GB, free: 9.66 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007621/0.2433, allocations: 23.88 kB / 0.6813 GB, free: 9.637 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002756/0.2461, allocations: 0.9142 MB / 0.6822 GB, free: 8.719 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.002482/0.2486, allocations: 0.8068 MB / 0.6829 GB, free: 7.91 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009379/0.2496, allocations: 323.1 kB / 0.6833 GB, free: 7.598 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0014/0.251, allocations: 1.117 MB / 0.6843 GB, free: 6.477 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000931/0.2519, allocations: 0.6927 MB / 0.685 GB, free: 5.773 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005485/0.2525, allocations: 474.3 kB / 0.6855 GB, free: 5.309 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008047/0.2533, allocations: 0.502 MB / 0.686 GB, free: 4.805 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0001007/0.2534, allocations: 68 kB / 0.686 GB, free: 4.738 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006184/0.254, allocations: 279.5 kB / 0.6863 GB, free: 4.465 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0003036/0.2543, allocations: 251.3 kB / 0.6865 GB, free: 4.219 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005116/0.2549, allocations: 402 kB / 0.6869 GB, free: 3.824 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.001262/0.2561, allocations: 1.07 MB / 0.688 GB, free: 2.75 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.2561, allocations: 0 / 0.688 GB, free: 2.75 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.315e-06/0.2561, allocations: 0 / 0.688 GB, free: 2.75 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.884e-05/0.2562, allocations: 0 / 0.688 GB, free: 2.75 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.001955/0.2581, allocations: 1.125 MB / 0.6891 GB, free: 1.574 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.2582, allocations: 8.031 kB / 0.6891 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003152/0.2613, allocations: 0.6323 MB / 0.6897 GB, free: 0.9336 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001001/0.2624, allocations: 0.5741 MB / 0.6903 GB, free: 328 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.438e-05/0.2624, allocations: 41.25 kB / 0.6903 GB, free: 284 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.894e-05/0.2625, allocations: 52 kB / 0.6903 GB, free: 232 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5389/0.8014, allocations: 1.016 MB / 0.6913 GB, free: 22.91 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.104e-05/0.8015, allocations: 1.828 kB / 0.6913 GB, free: 22.91 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.255e-05/0.8016, allocations: 23.94 kB / 0.6914 GB, free: 22.91 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.708e-05/0.8017, allocations: 46.77 kB / 0.6914 GB, free: 22.91 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002528/0.8042, allocations: 1.01 MB / 0.6924 GB, free: 22.91 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003558/0.8078, allocations: 2.733 MB / 0.6951 GB, free: 21.7 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001455/0.8093, allocations: 495.9 kB / 0.6955 GB, free: 21.68 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006318/0.8099, allocations: 227.5 kB / 0.6957 GB, free: 21.67 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 4.415e-05/0.81, allocations: 3.453 kB / 0.6957 GB, free: 21.67 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.14e-05/0.81, allocations: 39.16 kB / 0.6958 GB, free: 21.63 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=31): time 2.635e-06/0.81, allocations: 0 / 0.6958 GB, free: 21.63 MB / 0.5294 GB Notification: Performance of matching and sorting (n=43): time 0.007455/0.8175, allocations: 2.027 MB / 0.6978 GB, free: 21.3 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.776e-05/0.8176, allocations: 58.52 kB / 0.6978 GB, free: 21.24 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00105/0.8187, allocations: 0.5662 MB / 0.6984 GB, free: 21.11 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 4.843e-05/0.8187, allocations: 36.84 kB / 0.6984 GB, free: 21.08 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003513/0.8191, allocations: 365.3 kB / 0.6988 GB, free: 20.93 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001753/0.8193, allocations: 156.6 kB / 0.6989 GB, free: 20.85 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001965/0.8195, allocations: 86.94 kB / 0.699 GB, free: 20.83 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001943/0.8197, allocations: 378.8 kB / 0.6994 GB, free: 20.52 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007213/0.8204, allocations: 260.9 kB / 0.6996 GB, free: 20.51 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007387/0.8212, allocations: 363.9 kB / 0.6999 GB, free: 20.39 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001393/0.8226, allocations: 0.6184 MB / 0.7006 GB, free: 20.27 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.8226, allocations: 2.344 kB / 0.7006 GB, free: 20.27 MB / 0.5294 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002446/0.825, allocations: 0.9341 MB / 0.7015 GB, free: 20.12 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.8251, allocations: 5.406 kB / 0.7015 GB, free: 20.12 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.8251, allocations: 3.656 kB / 0.7015 GB, free: 20.12 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001118/0.8262, allocations: 277.8 kB / 0.7017 GB, free: 20.07 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006222/0.8268, allocations: 116.8 kB / 0.7019 GB, free: 20.07 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006875/0.8337, allocations: 9.112 MB / 0.7107 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000924/0.8347, allocations: 46.12 kB / 0.7108 GB, free: 11.69 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.845e-05/0.8348, allocations: 23.62 kB / 0.7108 GB, free: 11.68 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001282/0.8361, allocations: 434.6 kB / 0.7112 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008715/0.837, allocations: 357.1 kB / 0.7116 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001487/0.8385, allocations: 0.6115 MB / 0.7122 GB, free: 10.99 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.25e-06/0.8385, allocations: 0.9688 kB / 0.7122 GB, free: 10.99 MB / 0.5294 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002779/0.8413, allocations: 1.123 MB / 0.7133 GB, free: 10.35 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.8413, allocations: 15.61 kB / 0.7133 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.8413, allocations: 2.906 kB / 0.7133 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008786/0.8422, allocations: 221.8 kB / 0.7135 GB, free: 10.26 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006768/0.8429, allocations: 122.8 kB / 0.7136 GB, free: 10.25 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006021/0.8489, allocations: 8.801 MB / 0.7222 GB, free: 1.594 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00079/0.8497, allocations: 45.05 kB / 0.7222 GB, free: 1.586 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.767e-05/0.8498, allocations: 19.09 kB / 0.7223 GB, free: 1.582 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (47): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,2), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002371/0.85, allocations: 212 kB / 0.7225 GB, free: 1.379 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001171/0.8502, allocations: 72.5 kB / 0.7225 GB, free: 1.34 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002026/0.8504, allocations: 79.52 kB / 0.7226 GB, free: 1.289 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.834e-06/0.8504, allocations: 6.125 kB / 0.7226 GB, free: 1.289 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-05/0.8504, allocations: 1.125 kB / 0.7226 GB, free: 1.289 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.8504, allocations: 2.625 kB / 0.7226 GB, free: 1.289 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001089/0.8515, allocations: 0.6543 MB / 0.7233 GB, free: 0.9336 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.8515, allocations: 0 / 0.7233 GB, free: 0.9336 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005057/0.852, allocations: 93.3 kB / 0.7234 GB, free: 0.9258 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009963/0.853, allocations: 265.5 kB / 0.7236 GB, free: 0.832 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.819e-05/0.8531, allocations: 11.88 kB / 0.7236 GB, free: 0.8242 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008237/0.8613, allocations: 9.05 MB / 0.7325 GB, free: 8.082 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.8614, allocations: 0.6094 kB / 0.7325 GB, free: 8.082 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002593/0.864, allocations: 0.9192 MB / 0.7334 GB, free: 7.656 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003427/0.8643, allocations: 189.2 kB / 0.7335 GB, free: 7.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001332/0.8645, allocations: 9.375 kB / 0.7335 GB, free: 7.492 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005961/0.8651, allocations: 42.95 kB / 0.7336 GB, free: 7.484 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001894/0.8653, allocations: 38.36 kB / 0.7336 GB, free: 7.477 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.085e-05/0.8653, allocations: 13.75 kB / 0.7336 GB, free: 7.473 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0008019/0.8661, allocations: 407 kB / 0.734 GB, free: 7.285 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.1e-07/0.8661, allocations: 0.9844 kB / 0.734 GB, free: 7.285 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00166/0.8678, allocations: 298.2 kB / 0.7343 GB, free: 7.258 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001969/0.868, allocations: 105.6 kB / 0.7344 GB, free: 7.164 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.004707/0.8727, allocations: 2.35 MB / 0.7367 GB, free: 5.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.643e-06/0.8728, allocations: 1.125 kB / 0.7367 GB, free: 5.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001674/0.8744, allocations: 1.02 MB / 0.7377 GB, free: 4.703 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001463/0.8759, allocations: 229.9 kB / 0.7379 GB, free: 4.637 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003655/0.8796, allocations: 1.336 MB / 0.7392 GB, free: 3.957 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001085/0.8807, allocations: 0.9789 MB / 0.7402 GB, free: 3.23 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0007807/0.8815, allocations: 148.8 kB / 0.7403 GB, free: 3.199 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001906/0.8817, allocations: 47.7 kB / 0.7404 GB, free: 3.191 MB / 0.545 GB Notification: Performance of SimCode: time 7.81e-07/0.8817, allocations: 0 / 0.7404 GB, free: 3.191 MB / 0.545 GB Notification: Performance of Templates: time 0.04035/0.9221, allocations: 13.6 MB / 0.7536 GB, free: 13.2 MB / 0.5606 GB make -j1 -f Buildings_3.0.0_Buildings.Electrical.DC.Lines.Examples.DCLine.makefile (rm -f Buildings_3.0.0_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_3.0.0_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_3.0.0_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & ./Buildings_3.0.0_Buildings.Electrical.DC.Lines.Examples.DCLine -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1)