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.2012/0.2052, allocations: 80.84 MB / 0.6706 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.006572/0.2118, allocations: 3.787 MB / 0.6743 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.003182/0.215, allocations: 1.824 MB / 0.6761 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001857/0.2152, allocations: 8 kB / 0.6761 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001628/0.2169, allocations: 0.4942 MB / 0.6766 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0005987/0.2175, allocations: 230.8 kB / 0.6768 GB, free: 11.67 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006922/0.2182, allocations: 211.5 kB / 0.677 GB, free: 11.46 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0006749/0.2189, allocations: 478.3 kB / 0.6775 GB, free: 10.99 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007719/0.2197, allocations: 357.1 kB / 0.6778 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002541/0.2199, allocations: 199.2 kB / 0.678 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005315/0.2205, allocations: 223.2 kB / 0.6782 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 5.792e-05/0.2205, allocations: 28 kB / 0.6782 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000508/0.2211, allocations: 251.4 kB / 0.6785 GB, free: 9.953 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001722/0.2212, allocations: 127.7 kB / 0.6786 GB, free: 9.828 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002173/0.2215, allocations: 171.1 kB / 0.6788 GB, free: 9.66 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0007351/0.2222, allocations: 0.4945 MB / 0.6792 GB, free: 9.164 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.2222, allocations: 0 / 0.6792 GB, free: 9.164 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.975e-06/0.2222, allocations: 0 / 0.6792 GB, free: 9.164 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.217e-05/0.2223, allocations: 0 / 0.6792 GB, free: 9.164 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.001459/0.2237, allocations: 0.6316 MB / 0.6799 GB, free: 8.48 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 6.4e-05/0.2238, allocations: 12.03 kB / 0.6799 GB, free: 8.469 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001026/0.2248, allocations: 128.4 kB / 0.68 GB, free: 8.344 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004915/0.2253, allocations: 291.6 kB / 0.6803 GB, free: 8.02 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.403e-05/0.2254, allocations: 25.03 kB / 0.6803 GB, free: 7.996 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.496e-05/0.2254, allocations: 28.31 kB / 0.6803 GB, free: 7.969 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007537/0.2262, allocations: 471.9 kB / 0.6808 GB, free: 7.473 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.2262, allocations: 0 / 0.6808 GB, free: 7.473 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.067e-05/0.2263, allocations: 12 kB / 0.6808 GB, free: 7.461 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.989e-05/0.2263, allocations: 32.53 kB / 0.6808 GB, free: 7.43 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004961/0.2268, allocations: 314 kB / 0.6811 GB, free: 7.117 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002257/0.2291, allocations: 1.787 MB / 0.6829 GB, free: 5.219 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000485/0.2296, allocations: 255.8 kB / 0.6831 GB, free: 4.941 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002529/0.2299, allocations: 104.8 kB / 0.6832 GB, free: 4.836 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 1.84e-05/0.2299, allocations: 0 / 0.6832 GB, free: 4.836 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.252e-05/0.2299, allocations: 42.5 kB / 0.6832 GB, free: 4.785 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=14): time 1.503e-06/0.23, allocations: 0 / 0.6832 GB, free: 4.785 MB / 0.5137 GB Notification: Performance of matching and sorting (n=14): time 0.0007048/0.2307, allocations: 294.8 kB / 0.6835 GB, free: 4.473 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.005e-05/0.2307, allocations: 63.39 kB / 0.6836 GB, free: 4.398 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003123/0.2311, allocations: 266.5 kB / 0.6838 GB, free: 4.129 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.993e-05/0.2311, allocations: 29.7 kB / 0.6839 GB, free: 4.094 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001634/0.2313, allocations: 207.8 kB / 0.6841 GB, free: 3.883 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.49e-05/0.2313, allocations: 43.36 kB / 0.6841 GB, free: 3.84 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.594e-05/0.2314, allocations: 53.84 kB / 0.6842 GB, free: 3.777 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000177/0.2316, allocations: 334.8 kB / 0.6845 GB, free: 3.441 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.482e-05/0.2317, allocations: 56.44 kB / 0.6845 GB, free: 3.387 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000152/0.2318, allocations: 144 kB / 0.6847 GB, free: 3.207 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002631/0.2321, allocations: 226.2 kB / 0.6849 GB, free: 2.949 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.2321, allocations: 3.938 kB / 0.6849 GB, free: 2.945 MB / 0.5137 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000392/0.2325, allocations: 262.2 kB / 0.6851 GB, free: 2.68 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.2326, allocations: 8 kB / 0.6851 GB, free: 2.672 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.2326, allocations: 7.938 kB / 0.6852 GB, free: 2.664 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001848/0.2328, allocations: 24.84 kB / 0.6852 GB, free: 2.637 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001845/0.233, allocations: 51.91 kB / 0.6852 GB, free: 2.586 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001166/0.2341, allocations: 1.418 MB / 0.6866 GB, free: 1.031 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001641/0.2343, allocations: 27.69 kB / 0.6866 GB, free: 1.004 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.718e-05/0.2343, allocations: 16.16 kB / 0.6867 GB, free: 0.9883 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.0001774/0.2345, allocations: 169.6 kB / 0.6868 GB, free: 0.8125 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.743e-05/0.2346, allocations: 23.72 kB / 0.6868 GB, free: 0.7891 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.836e-05/0.2346, allocations: 29.83 kB / 0.6869 GB, free: 0.7578 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.2346, allocations: 0 / 0.6869 GB, free: 0.7578 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.2346, allocations: 0 / 0.6869 GB, free: 0.7578 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.2346, allocations: 0 / 0.6869 GB, free: 0.7578 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008312/0.2355, allocations: 0.6445 MB / 0.6875 GB, free: 36 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.2355, allocations: 4 kB / 0.6875 GB, free: 32 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.335e-05/0.2356, allocations: 23.94 kB / 0.6875 GB, free: 8 kB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001111/0.2357, allocations: 28.97 kB / 0.6875 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.2357, allocations: 16 kB / 0.6876 GB, free: 15.96 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001077/0.2368, allocations: 1.422 MB / 0.689 GB, free: 14.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.2368, allocations: 0 / 0.689 GB, free: 14.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003674/0.2372, allocations: 321.2 kB / 0.6893 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/0.2373, allocations: 112.8 kB / 0.6894 GB, free: 13.92 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.922e-05/0.2374, allocations: 11.98 kB / 0.6894 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001735/0.2375, allocations: 8 kB / 0.6894 GB, free: 13.9 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.131e-05/0.2376, allocations: 23.86 kB / 0.6894 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.2376, allocations: 8 kB / 0.6894 GB, free: 13.87 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.000186/0.2378, allocations: 190 kB / 0.6896 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2378, allocations: 0 / 0.6896 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0004152/0.2383, allocations: 75.84 kB / 0.6897 GB, free: 13.61 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.0001489/0.2384, allocations: 95.25 kB / 0.6898 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0005509/0.239, allocations: 282.3 kB / 0.69 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.239, allocations: 4.031 kB / 0.69 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0002142/0.2392, allocations: 183.6 kB / 0.6902 GB, free: 13.02 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000493/0.2397, allocations: 53.38 kB / 0.6903 GB, free: 12.97 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009907/0.2407, allocations: 0.5435 MB / 0.6908 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004245/0.2411, allocations: 0.7948 MB / 0.6916 GB, free: 11.56 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0001431/0.2413, allocations: 54.19 kB / 0.6916 GB, free: 11.51 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.408e-05/0.2414, allocations: 19.44 kB / 0.6916 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of SimCode: time 7.91e-07/0.2414, allocations: 0 / 0.6916 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of Templates: time 0.006442/0.2478, allocations: 2.712 MB / 0.6943 GB, free: 8.809 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)