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.008998/0.008998, allocations: 100.2 kB / 15.73 MB, free: 6.008 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.001804/0.001803, allocations: 193 kB / 16.67 MB, free: 5.93 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.292/1.292, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002032/0.002032, allocations: 292.2 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9025/0.9025, allocations: 169.3 MB / 0.4983 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001791/0.001791, allocations: 87.86 kB / 0.6814 GB, free: 7.016 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4186/0.4204, allocations: 86.99 MB / 0.7664 GB, free: 3.961 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.RCModel): time 0.006428/0.4269, allocations: 4.348 MB / 0.7706 GB, free: 15.6 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.003409/0.4303, allocations: 1.854 MB / 0.7724 GB, free: 13.73 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002875/0.4306, allocations: 8 kB / 0.7724 GB, free: 13.73 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001694/0.4323, allocations: 0.5992 MB / 0.773 GB, free: 13.12 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0006665/0.433, allocations: 262.6 kB / 0.7733 GB, free: 12.87 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006416/0.4337, allocations: 254.1 kB / 0.7735 GB, free: 12.62 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0007114/0.4344, allocations: 0.6149 MB / 0.7741 GB, free: 12 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006925/0.4351, allocations: 470.8 kB / 0.7746 GB, free: 11.54 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000354/0.4355, allocations: 247.1 kB / 0.7748 GB, free: 11.3 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005183/0.436, allocations: 263 kB / 0.7751 GB, free: 11.04 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 6.446e-05/0.4361, allocations: 36 kB / 0.7751 GB, free: 11.01 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004232/0.4365, allocations: 259.4 kB / 0.7753 GB, free: 10.75 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001372/0.4367, allocations: 147.6 kB / 0.7755 GB, free: 10.61 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002116/0.4369, allocations: 226.9 kB / 0.7757 GB, free: 10.39 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0006762/0.4376, allocations: 0.6099 MB / 0.7763 GB, free: 9.777 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.4376, allocations: 0 / 0.7763 GB, free: 9.777 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.343e-06/0.4376, allocations: 0 / 0.7763 GB, free: 9.777 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.999e-05/0.4376, allocations: 0 / 0.7763 GB, free: 9.777 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.001152/0.4388, allocations: 0.7252 MB / 0.777 GB, free: 9 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.4388, allocations: 8.031 kB / 0.777 GB, free: 8.992 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009288/0.4397, allocations: 148.2 kB / 0.7771 GB, free: 8.848 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004463/0.4402, allocations: 338.5 kB / 0.7775 GB, free: 8.48 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.145e-05/0.4402, allocations: 25.38 kB / 0.7775 GB, free: 8.457 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.682e-05/0.4403, allocations: 32.38 kB / 0.7775 GB, free: 8.426 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007374/0.441, allocations: 0.5434 MB / 0.7781 GB, free: 7.852 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.4411, allocations: 0 / 0.7781 GB, free: 7.852 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.668e-05/0.4411, allocations: 19.98 kB / 0.7781 GB, free: 7.832 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.897e-05/0.4412, allocations: 28.64 kB / 0.7781 GB, free: 7.805 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006867/0.4419, allocations: 386.3 kB / 0.7785 GB, free: 7.426 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0025/0.4444, allocations: 2.399 MB / 0.7808 GB, free: 4.805 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004935/0.4449, allocations: 266.5 kB / 0.7811 GB, free: 4.535 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00016/0.4451, allocations: 109.2 kB / 0.7812 GB, free: 4.426 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.538e-05/0.4451, allocations: 4 kB / 0.7812 GB, free: 4.422 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.362e-05/0.4451, allocations: 38.5 kB / 0.7812 GB, free: 4.375 MB / 0.545 GB Notification: Performance of pre-optimization done (n=20): time 1.493e-06/0.4451, allocations: 3.938 kB / 0.7812 GB, free: 4.371 MB / 0.545 GB Notification: Performance of matching and sorting (n=23): time 0.002019/0.4472, allocations: 1.128 MB / 0.7823 GB, free: 3.145 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.4472, allocations: 55.41 kB / 0.7824 GB, free: 3.078 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002811/0.4475, allocations: 300.5 kB / 0.7827 GB, free: 2.777 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.261e-05/0.4475, allocations: 29.7 kB / 0.7827 GB, free: 2.742 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001322/0.4477, allocations: 231.6 kB / 0.7829 GB, free: 2.512 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.412e-05/0.4477, allocations: 86.73 kB / 0.783 GB, free: 2.426 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.077e-05/0.4478, allocations: 58.03 kB / 0.783 GB, free: 2.359 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001142/0.4479, allocations: 342.8 kB / 0.7834 GB, free: 2.016 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001635/0.4481, allocations: 100.6 kB / 0.7835 GB, free: 1.918 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002042/0.4483, allocations: 191.7 kB / 0.7836 GB, free: 1.691 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003696/0.4487, allocations: 311.5 kB / 0.7839 GB, free: 1.352 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.4487, allocations: 0 / 0.7839 GB, free: 1.352 MB / 0.545 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007041/0.4494, allocations: 447.5 kB / 0.7844 GB, free: 0.9023 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.4494, allocations: 4 kB / 0.7844 GB, free: 0.8984 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.4495, allocations: 8.281 kB / 0.7844 GB, free: 0.8906 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003603/0.4498, allocations: 98.44 kB / 0.7845 GB, free: 0.7852 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002548/0.4501, allocations: 63.91 kB / 0.7845 GB, free: 0.7227 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002999/0.4531, allocations: 4.391 MB / 0.7888 GB, free: 11.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001927/0.4533, allocations: 8.156 kB / 0.7888 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.256e-05/0.4533, allocations: 20 kB / 0.7889 GB, free: 11.87 MB / 0.5606 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.0001785/0.4535, allocations: 181.6 kB / 0.789 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.836e-05/0.4536, allocations: 35.56 kB / 0.7891 GB, free: 11.65 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.827e-05/0.4537, allocations: 38.31 kB / 0.7891 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.4537, allocations: 0 / 0.7891 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.295e-06/0.4537, allocations: 4 kB / 0.7891 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.207e-06/0.4537, allocations: 7.984 kB / 0.7891 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004129/0.4541, allocations: 397.3 kB / 0.7895 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.4541, allocations: 0 / 0.7895 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001797/0.4543, allocations: 35.92 kB / 0.7895 GB, free: 11.13 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002941/0.4546, allocations: 94.5 kB / 0.7896 GB, free: 11.03 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.685e-05/0.4546, allocations: 7.938 kB / 0.7896 GB, free: 11.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002927/0.4576, allocations: 4.391 MB / 0.7939 GB, free: 6.211 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.4576, allocations: 0 / 0.7939 GB, free: 6.211 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007726/0.4584, allocations: 0.5504 MB / 0.7944 GB, free: 5.637 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001179/0.4585, allocations: 124.7 kB / 0.7946 GB, free: 5.496 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.336e-05/0.4585, allocations: 4 kB / 0.7946 GB, free: 5.492 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001933/0.4587, allocations: 15.98 kB / 0.7946 GB, free: 5.477 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.482e-05/0.4588, allocations: 15.92 kB / 0.7946 GB, free: 5.461 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.631e-05/0.4588, allocations: 11.98 kB / 0.7946 GB, free: 5.449 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001989/0.459, allocations: 207.1 kB / 0.7948 GB, free: 5.25 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.459, allocations: 0 / 0.7948 GB, free: 5.25 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004405/0.4595, allocations: 111.9 kB / 0.7949 GB, free: 5.141 MB / 0.5606 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.0001124/0.4596, allocations: 103.2 kB / 0.795 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0007865/0.4604, allocations: 0.6054 MB / 0.7956 GB, free: 4.387 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.4604, allocations: 0 / 0.7956 GB, free: 4.387 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0004432/0.4608, allocations: 468 kB / 0.7961 GB, free: 3.891 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004423/0.4613, allocations: 82.92 kB / 0.7961 GB, free: 3.816 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001094/0.4624, allocations: 0.7028 MB / 0.7968 GB, free: 3.082 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004587/0.4629, allocations: 0.835 MB / 0.7976 GB, free: 2.215 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001735/0.463, allocations: 58.94 kB / 0.7977 GB, free: 2.156 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.455e-05/0.4631, allocations: 23.38 kB / 0.7977 GB, free: 2.133 MB / 0.5606 GB Notification: Performance of SimCode: time 2.41e-07/0.4631, allocations: 4 kB / 0.7977 GB, free: 2.129 MB / 0.5606 GB Notification: Performance of Templates: time 0.008164/0.4713, allocations: 4.5 MB / 0.8021 GB, free: 13.68 MB / 0.5762 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)