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.001806/0.001806, allocations: 110.6 kB / 16.41 MB, free: 6.469 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.002116/0.002116, allocations: 189.2 kB / 17.34 MB, free: 5.711 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.437/1.437, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002555/0.002555, allocations: 286.8 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.029/1.029, allocations: 169.3 MB / 0.499 GB, free: 4.398 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002767/0.002767, allocations: 103.8 kB / 0.6821 GB, free: 6.934 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4552/0.458, allocations: 86.97 MB / 0.767 GB, free: 3.883 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.RCModel): time 0.006742/0.4647, allocations: 4.352 MB / 0.7713 GB, free: 15.51 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.003463/0.4682, allocations: 1.862 MB / 0.7731 GB, free: 13.64 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002532/0.4684, allocations: 11.94 kB / 0.7731 GB, free: 13.63 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001788/0.4702, allocations: 0.5972 MB / 0.7737 GB, free: 13.03 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.000702/0.4709, allocations: 262.6 kB / 0.774 GB, free: 12.77 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007033/0.4716, allocations: 254.6 kB / 0.7742 GB, free: 12.53 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0007274/0.4723, allocations: 0.611 MB / 0.7748 GB, free: 11.91 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006336/0.473, allocations: 378.7 kB / 0.7752 GB, free: 11.55 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002894/0.4733, allocations: 251.1 kB / 0.7754 GB, free: 11.3 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004475/0.4737, allocations: 263 kB / 0.7756 GB, free: 11.04 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 5.952e-05/0.4738, allocations: 36 kB / 0.7757 GB, free: 11.01 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004515/0.4742, allocations: 259.4 kB / 0.7759 GB, free: 10.75 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001625/0.4744, allocations: 151.5 kB / 0.7761 GB, free: 10.61 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002292/0.4746, allocations: 222.9 kB / 0.7763 GB, free: 10.39 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.000771/0.4754, allocations: 0.6089 MB / 0.7769 GB, free: 9.781 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.4754, allocations: 0 / 0.7769 GB, free: 9.781 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.643e-06/0.4754, allocations: 4 kB / 0.7769 GB, free: 9.777 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.534e-06/0.4754, allocations: 0 / 0.7769 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.001311/0.4767, allocations: 0.7421 MB / 0.7776 GB, free: 8.984 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.4767, allocations: 12.03 kB / 0.7776 GB, free: 8.973 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00102/0.4778, allocations: 148.5 kB / 0.7778 GB, free: 8.828 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005239/0.4783, allocations: 334.7 kB / 0.7781 GB, free: 8.465 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.598e-05/0.4783, allocations: 33.38 kB / 0.7781 GB, free: 8.434 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.23e-05/0.4784, allocations: 28.38 kB / 0.7781 GB, free: 8.406 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008344/0.4792, allocations: 0.5317 MB / 0.7787 GB, free: 7.844 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.4792, allocations: 11.88 kB / 0.7787 GB, free: 7.832 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.463e-05/0.4793, allocations: 16 kB / 0.7787 GB, free: 7.816 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-05/0.4794, allocations: 28.64 kB / 0.7787 GB, free: 7.789 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006313/0.48, allocations: 390.3 kB / 0.7791 GB, free: 7.406 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002807/0.4828, allocations: 2.404 MB / 0.7814 GB, free: 4.781 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005602/0.4834, allocations: 242.5 kB / 0.7817 GB, free: 4.535 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001704/0.4835, allocations: 100.8 kB / 0.7818 GB, free: 4.434 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.835e-05/0.4835, allocations: 0 / 0.7818 GB, free: 4.434 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.752e-05/0.4836, allocations: 38.56 kB / 0.7818 GB, free: 4.387 MB / 0.545 GB Notification: Performance of pre-optimization done (n=20): time 1.363e-06/0.4836, allocations: 0 / 0.7818 GB, free: 4.387 MB / 0.545 GB Notification: Performance of matching and sorting (n=23): time 0.002402/0.486, allocations: 1.131 MB / 0.7829 GB, free: 3.16 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.066e-05/0.486, allocations: 55.39 kB / 0.783 GB, free: 3.094 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000342/0.4864, allocations: 300.5 kB / 0.7832 GB, free: 2.793 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.262e-05/0.4864, allocations: 37.64 kB / 0.7833 GB, free: 2.75 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001765/0.4866, allocations: 232.1 kB / 0.7835 GB, free: 2.52 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 8.027e-05/0.4867, allocations: 91.25 kB / 0.7836 GB, free: 2.43 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001203/0.4868, allocations: 65.98 kB / 0.7836 GB, free: 2.355 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000157/0.4869, allocations: 334.8 kB / 0.784 GB, free: 2.02 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001951/0.4871, allocations: 104.6 kB / 0.7841 GB, free: 1.918 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002451/0.4874, allocations: 187.7 kB / 0.7842 GB, free: 1.695 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004437/0.4878, allocations: 319.5 kB / 0.7845 GB, free: 1.348 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.4878, allocations: 4 kB / 0.7846 GB, free: 1.344 MB / 0.545 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007985/0.4886, allocations: 443.9 kB / 0.785 GB, free: 0.8984 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.4886, allocations: 4 kB / 0.785 GB, free: 0.8945 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.4887, allocations: 4 kB / 0.785 GB, free: 0.8906 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003871/0.489, allocations: 94.69 kB / 0.7851 GB, free: 0.7891 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002908/0.4893, allocations: 67.89 kB / 0.7851 GB, free: 0.7227 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003808/0.4931, allocations: 4.391 MB / 0.7894 GB, free: 11.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002447/0.4934, allocations: 8 kB / 0.7894 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.248e-05/0.4934, allocations: 12 kB / 0.7894 GB, free: 11.88 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.0002376/0.4936, allocations: 184.2 kB / 0.7896 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.183e-05/0.4937, allocations: 39.73 kB / 0.7897 GB, free: 11.65 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.514e-05/0.4938, allocations: 38.31 kB / 0.7897 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.4938, allocations: 4 kB / 0.7897 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.4938, allocations: 4 kB / 0.7897 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.105e-06/0.4938, allocations: 0 / 0.7897 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004969/0.4943, allocations: 397.3 kB / 0.7901 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.4943, allocations: 0 / 0.7901 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001956/0.4945, allocations: 39.86 kB / 0.7901 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003369/0.4948, allocations: 98.48 kB / 0.7902 GB, free: 11.03 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/0.4949, allocations: 0 / 0.7902 GB, free: 11.03 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003587/0.4984, allocations: 4.395 MB / 0.7945 GB, free: 6.215 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4984, allocations: 4.156 kB / 0.7945 GB, free: 6.211 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008841/0.4993, allocations: 0.5512 MB / 0.795 GB, free: 5.637 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001657/0.4995, allocations: 128.9 kB / 0.7952 GB, free: 5.492 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.564e-05/0.4995, allocations: 4 kB / 0.7952 GB, free: 5.488 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002078/0.4997, allocations: 12.06 kB / 0.7952 GB, free: 5.477 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.382e-05/0.4998, allocations: 19.97 kB / 0.7952 GB, free: 5.457 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.446e-05/0.4998, allocations: 4 kB / 0.7952 GB, free: 5.453 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002315/0.5, allocations: 211.1 kB / 0.7954 GB, free: 5.25 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/0.5, allocations: 0 / 0.7954 GB, free: 5.25 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0005073/0.5005, allocations: 99.94 kB / 0.7955 GB, free: 5.152 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.0001553/0.5007, allocations: 111.2 kB / 0.7956 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.000929/0.5016, allocations: 0.5861 MB / 0.7962 GB, free: 4.41 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.5016, allocations: 4.125 kB / 0.7962 GB, free: 4.406 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0005395/0.5022, allocations: 467.8 kB / 0.7966 GB, free: 3.91 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005123/0.5027, allocations: 76.58 kB / 0.7967 GB, free: 3.844 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001265/0.504, allocations: 0.7196 MB / 0.7974 GB, free: 3.09 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004823/0.5044, allocations: 0.835 MB / 0.7982 GB, free: 2.223 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001867/0.5046, allocations: 66.91 kB / 0.7983 GB, free: 2.156 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.71e-05/0.5047, allocations: 23.44 kB / 0.7983 GB, free: 2.133 MB / 0.5606 GB Notification: Performance of SimCode: time 5.01e-07/0.5047, allocations: 0 / 0.7983 GB, free: 2.133 MB / 0.5606 GB Notification: Performance of Templates: time 0.009875/0.5146, allocations: 4.538 MB / 0.8027 GB, free: 13.64 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1)