Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource") translateModel(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001858/0.001858, allocations: 107.4 kB / 15.34 MB, free: 0.5195 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.00228/0.00228, allocations: 195.6 kB / 16.26 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002669/0.002669, allocations: 278.9 kB / 290.3 MB, free: 2.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.058/1.058, allocations: 178.6 MB / 0.5069 GB, free: 4.738 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002709/0.00271, allocations: 98.25 kB / 0.6059 GB, free: 25.08 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1776/0.1803, allocations: 89.15 MB / 0.693 GB, free: 4.707 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource): time 0.004957/0.1853, allocations: 3.256 MB / 0.6962 GB, free: 1.441 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002096/0.1874, allocations: 1.344 MB / 0.6975 GB, free: 92 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.95e-05/0.1875, allocations: 7.938 kB / 0.6975 GB, free: 84 kB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009725/0.1885, allocations: 330.9 kB / 0.6978 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000318/0.1888, allocations: 135.4 kB / 0.6979 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003349/0.1891, allocations: 131.7 kB / 0.698 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0004015/0.1896, allocations: 330.9 kB / 0.6984 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005265/0.1901, allocations: 275.9 kB / 0.6986 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002101/0.1903, allocations: 139.5 kB / 0.6988 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002751/0.1906, allocations: 159.4 kB / 0.6989 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.567e-05/0.1907, allocations: 24 kB / 0.6989 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002659/0.1909, allocations: 163.7 kB / 0.6991 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.534e-05/0.191, allocations: 83.78 kB / 0.6992 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001259/0.1912, allocations: 123.4 kB / 0.6993 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004412/0.1916, allocations: 362.8 kB / 0.6996 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1916, allocations: 0 / 0.6996 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.212e-06/0.1916, allocations: 0 / 0.6996 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.901e-06/0.1916, allocations: 0 / 0.6996 GB, free: 13.87 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008769/0.1925, allocations: 0.5419 MB / 0.7002 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.1926, allocations: 12.03 kB / 0.7002 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005928/0.1932, allocations: 84.42 kB / 0.7003 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004149/0.1936, allocations: 248.5 kB / 0.7005 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.402e-05/0.1936, allocations: 16.81 kB / 0.7005 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.342e-05/0.1937, allocations: 16.38 kB / 0.7005 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000592/0.1943, allocations: 320.6 kB / 0.7008 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.1943, allocations: 0 / 0.7008 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.035e-05/0.1943, allocations: 12 kB / 0.7008 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.426e-05/0.1944, allocations: 16.42 kB / 0.7009 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003933/0.1948, allocations: 209.6 kB / 0.7011 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001695/0.1965, allocations: 1.498 MB / 0.7025 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005225/0.197, allocations: 211.6 kB / 0.7027 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.1971, allocations: 48.83 kB / 0.7028 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.239e-05/0.1971, allocations: 0 / 0.7028 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.503e-05/0.1972, allocations: 34.56 kB / 0.7028 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 8.71e-07/0.1972, allocations: 0 / 0.7028 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.0005754/0.1978, allocations: 259.4 kB / 0.703 GB, free: 10.03 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.831e-05/0.1979, allocations: 55.41 kB / 0.7031 GB, free: 9.961 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002074/0.1981, allocations: 199.8 kB / 0.7033 GB, free: 9.758 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.414e-05/0.1981, allocations: 29.7 kB / 0.7033 GB, free: 9.723 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001222/0.1982, allocations: 175.7 kB / 0.7035 GB, free: 9.547 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.689e-05/0.1983, allocations: 27.62 kB / 0.7035 GB, free: 9.52 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.587e-05/0.1983, allocations: 41.61 kB / 0.7035 GB, free: 9.473 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001507/0.1985, allocations: 326.8 kB / 0.7039 GB, free: 9.145 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/0.1986, allocations: 47.97 kB / 0.7039 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001545/0.1988, allocations: 118.6 kB / 0.704 GB, free: 8.953 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002573/0.199, allocations: 172.5 kB / 0.7042 GB, free: 8.754 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1991, allocations: 0 / 0.7042 GB, free: 8.754 MB / 0.4981 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003903/0.1994, allocations: 210.2 kB / 0.7044 GB, free: 8.539 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.1995, allocations: 11.92 kB / 0.7044 GB, free: 8.527 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.1995, allocations: 4 kB / 0.7044 GB, free: 8.523 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001523/0.1996, allocations: 28.84 kB / 0.7044 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001402/0.1998, allocations: 35.86 kB / 0.7045 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001281/0.2011, allocations: 1.429 MB / 0.7059 GB, free: 6.887 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001426/0.2012, allocations: 19.84 kB / 0.7059 GB, free: 6.867 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.393e-05/0.2013, allocations: 4 kB / 0.7059 GB, free: 6.863 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (18): * Single equations (assignments): 17 * 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.0001523/0.2014, allocations: 148.4 kB / 0.706 GB, free: 6.711 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.212e-05/0.2015, allocations: 19.75 kB / 0.706 GB, free: 6.691 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.667e-05/0.2015, allocations: 21.39 kB / 0.7061 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.2015, allocations: 4 kB / 0.7061 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-06/0.2015, allocations: 64 / 0.7061 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.2015, allocations: 4 kB / 0.7061 GB, free: 6.664 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006558/0.2022, allocations: 487.1 kB / 0.7065 GB, free: 6.129 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.2022, allocations: 4 kB / 0.7065 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.893e-05/0.2023, allocations: 11.94 kB / 0.7065 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.179e-05/0.2024, allocations: 24.84 kB / 0.7066 GB, free: 6.086 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.217e-06/0.2024, allocations: 4 kB / 0.7066 GB, free: 6.082 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001154/0.2035, allocations: 1.429 MB / 0.708 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2036, allocations: 0 / 0.708 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003191/0.2039, allocations: 236.1 kB / 0.7082 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.624e-05/0.204, allocations: 97 kB / 0.7083 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.121e-05/0.204, allocations: 7.938 kB / 0.7083 GB, free: 4.145 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000128/0.2041, allocations: 12.05 kB / 0.7083 GB, free: 4.133 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.212e-05/0.2042, allocations: 8 kB / 0.7083 GB, free: 4.125 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.673e-06/0.2042, allocations: 3.938 kB / 0.7083 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001562/0.2044, allocations: 148.2 kB / 0.7085 GB, free: 3.977 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2044, allocations: 0 / 0.7085 GB, free: 3.977 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003478/0.2047, allocations: 59.78 kB / 0.7085 GB, free: 3.918 MB / 0.4981 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 (7): * Single equations (assignments): 6 * 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.0001634/0.2049, allocations: 104.2 kB / 0.7086 GB, free: 3.805 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004521/0.2054, allocations: 238.4 kB / 0.7088 GB, free: 3.559 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2054, allocations: 0 / 0.7088 GB, free: 3.559 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002254/0.2056, allocations: 158.7 kB / 0.709 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003619/0.206, allocations: 43.38 kB / 0.709 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007149/0.2067, allocations: 491.6 kB / 0.7095 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004514/0.2072, allocations: 0.7593 MB / 0.7102 GB, free: 2.066 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001096/0.2073, allocations: 25.53 kB / 0.7103 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.818e-05/0.2073, allocations: 15.44 kB / 0.7103 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of SimCode: time 4.71e-07/0.2073, allocations: 0 / 0.7103 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of Templates: time 0.005419/0.2128, allocations: 1.928 MB / 0.7122 GB, free: 124 kB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1)