Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.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.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel") translateModel(BuildingSystems.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 105.2 kB / 15.98 MB, free: 6.352 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.001285/0.001285, allocations: 199.1 kB / 16.91 MB, free: 6.188 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.383/1.383, allocations: 222.9 MB / 240.6 MB, free: 15.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002518/0.002518, allocations: 304 kB / 291 MB, free: 14.73 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.223/1.223, allocations: 178.5 MB / 0.5076 GB, free: 12.89 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002729/0.002729, allocations: 103.8 kB / 0.6066 GB, free: 9.688 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1756/0.1784, allocations: 89.13 MB / 0.6936 GB, free: 480 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.RCModel): time 0.006737/0.1851, allocations: 4.384 MB / 0.6979 GB, free: 12.05 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.003066/0.1882, allocations: 1.846 MB / 0.6997 GB, free: 10.2 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001761/0.1884, allocations: 8 kB / 0.6997 GB, free: 10.19 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001618/0.1901, allocations: 0.5606 MB / 0.7003 GB, free: 9.629 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0005668/0.1906, allocations: 230.9 kB / 0.7005 GB, free: 9.402 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006473/0.1913, allocations: 238.2 kB / 0.7007 GB, free: 9.172 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0006881/0.192, allocations: 0.6151 MB / 0.7013 GB, free: 8.555 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007864/0.1928, allocations: 0.5108 MB / 0.7018 GB, free: 8.043 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000279/0.1931, allocations: 243.2 kB / 0.702 GB, free: 7.805 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004404/0.1935, allocations: 279 kB / 0.7023 GB, free: 7.531 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 5.614e-05/0.1936, allocations: 36 kB / 0.7023 GB, free: 7.496 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004226/0.194, allocations: 255.4 kB / 0.7026 GB, free: 7.246 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001578/0.1942, allocations: 159.6 kB / 0.7027 GB, free: 7.09 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002191/0.1944, allocations: 215 kB / 0.7029 GB, free: 6.879 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0005738/0.195, allocations: 470.9 kB / 0.7034 GB, free: 6.418 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.195, allocations: 3.938 kB / 0.7034 GB, free: 6.414 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.663e-06/0.195, allocations: 0 / 0.7034 GB, free: 6.414 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.407e-06/0.195, allocations: 4 kB / 0.7034 GB, free: 6.41 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001433/0.1965, allocations: 0.7269 MB / 0.7041 GB, free: 5.637 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.1965, allocations: 16.02 kB / 0.7041 GB, free: 5.621 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001008/0.1976, allocations: 148.2 kB / 0.7043 GB, free: 5.477 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004639/0.198, allocations: 330.5 kB / 0.7046 GB, free: 5.117 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.274e-05/0.1981, allocations: 21.38 kB / 0.7046 GB, free: 5.094 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.846e-05/0.1981, allocations: 36.38 kB / 0.7046 GB, free: 5.059 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008591/0.199, allocations: 0.5317 MB / 0.7052 GB, free: 4.492 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.199, allocations: 3.938 kB / 0.7052 GB, free: 4.488 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.83e-05/0.1991, allocations: 19.98 kB / 0.7052 GB, free: 4.469 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.944e-05/0.1992, allocations: 32.64 kB / 0.7052 GB, free: 4.438 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000608/0.1998, allocations: 386.3 kB / 0.7056 GB, free: 4.062 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002741/0.2025, allocations: 2.415 MB / 0.7079 GB, free: 1.426 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005656/0.2031, allocations: 262.3 kB / 0.7082 GB, free: 1.16 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001798/0.2033, allocations: 108.8 kB / 0.7083 GB, free: 1.051 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.762e-05/0.2033, allocations: 0 / 0.7083 GB, free: 1.051 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.41e-05/0.2034, allocations: 38.56 kB / 0.7083 GB, free: 1.004 MB / 0.545 GB Notification: Performance of pre-optimization done (n=20): time 1.432e-06/0.2034, allocations: 4 kB / 0.7083 GB, free: 1 MB / 0.545 GB Notification: Performance of matching and sorting (n=23): time 0.3106/0.514, allocations: 1.122 MB / 0.7094 GB, free: 50.4 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.882e-05/0.5141, allocations: 61.69 kB / 0.7095 GB, free: 50.34 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002816/0.5144, allocations: 300.5 kB / 0.7098 GB, free: 50.23 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2e-05/0.5144, allocations: 28.89 kB / 0.7098 GB, free: 50.2 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.5145, allocations: 232.3 kB / 0.71 GB, free: 50.07 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.219e-05/0.5146, allocations: 82.42 kB / 0.7101 GB, free: 50.02 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.595e-05/0.5147, allocations: 63.39 kB / 0.7102 GB, free: 50 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.53e-05/0.5147, allocations: 338.2 kB / 0.7105 GB, free: 49.68 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.5149, allocations: 106.5 kB / 0.7106 GB, free: 49.68 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001797/0.5151, allocations: 187 kB / 0.7108 GB, free: 49.59 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003195/0.5154, allocations: 312.8 kB / 0.7111 GB, free: 49.49 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.5154, allocations: 1.969 kB / 0.7111 GB, free: 49.49 MB / 0.545 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007161/0.5161, allocations: 439.5 kB / 0.7115 GB, free: 49.42 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.5162, allocations: 8.141 kB / 0.7115 GB, free: 49.42 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.5162, allocations: 4.5 kB / 0.7115 GB, free: 49.42 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003594/0.5165, allocations: 100.7 kB / 0.7116 GB, free: 49.39 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002842/0.5168, allocations: 62.84 kB / 0.7116 GB, free: 49.39 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002251/0.5191, allocations: 4.397 MB / 0.7159 GB, free: 45.36 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002256/0.5193, allocations: 9.906 kB / 0.716 GB, free: 45.36 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.01e-05/0.5194, allocations: 11.62 kB / 0.716 GB, free: 45.36 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001719/0.5195, allocations: 185.8 kB / 0.7161 GB, free: 45.24 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.33e-05/0.5196, allocations: 31.91 kB / 0.7162 GB, free: 45.23 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.373e-05/0.5197, allocations: 42.08 kB / 0.7162 GB, free: 45.22 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.5197, allocations: 2.906 kB / 0.7162 GB, free: 45.22 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.5197, allocations: 2.875 kB / 0.7162 GB, free: 45.22 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.5197, allocations: 0 / 0.7162 GB, free: 45.22 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003649/0.5201, allocations: 401.7 kB / 0.7166 GB, free: 45.03 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.5201, allocations: 4.625 kB / 0.7166 GB, free: 45.03 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001828/0.5203, allocations: 32.7 kB / 0.7166 GB, free: 45.03 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002655/0.5206, allocations: 97.73 kB / 0.7167 GB, free: 45.01 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.602e-05/0.5206, allocations: 3.156 kB / 0.7167 GB, free: 45.01 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00199/0.5226, allocations: 4.394 MB / 0.721 GB, free: 40.73 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.5226, allocations: 0 / 0.721 GB, free: 40.73 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006762/0.5233, allocations: 0.5573 MB / 0.7216 GB, free: 40.43 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 9.698e-05/0.5234, allocations: 120.5 kB / 0.7217 GB, free: 40.32 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.903e-05/0.5234, allocations: 4.969 kB / 0.7217 GB, free: 40.31 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001986/0.5236, allocations: 17.72 kB / 0.7217 GB, free: 40.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.246e-05/0.5237, allocations: 20.09 kB / 0.7217 GB, free: 40.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.526e-05/0.5237, allocations: 7.25 kB / 0.7217 GB, free: 40.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001557/0.5239, allocations: 209.9 kB / 0.7219 GB, free: 40.18 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5239, allocations: 0 / 0.7219 GB, free: 40.18 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0004531/0.5243, allocations: 99.53 kB / 0.722 GB, free: 40.17 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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 (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001203/0.5245, allocations: 110.8 kB / 0.7221 GB, free: 40.08 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0007222/0.5252, allocations: 0.6305 MB / 0.7227 GB, free: 39.65 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.5252, allocations: 0 / 0.7227 GB, free: 39.65 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003687/0.5256, allocations: 479.8 kB / 0.7232 GB, free: 39.27 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004811/0.5261, allocations: 78.33 kB / 0.7233 GB, free: 39.24 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001068/0.5271, allocations: 0.8985 MB / 0.7242 GB, free: 38.67 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002484/0.5274, allocations: 0.8309 MB / 0.725 GB, free: 37.95 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.529e-05/0.5275, allocations: 28.17 kB / 0.725 GB, free: 37.95 MB / 0.545 GB Notification: Performance of SimCode: time 2.51e-07/0.5275, allocations: 3.938 kB / 0.725 GB, free: 37.94 MB / 0.545 GB Notification: Performance of Templates: time 0.008602/0.5361, allocations: 8.667 MB / 0.7335 GB, free: 37.38 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1)