Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.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.Resistance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance") translateModel(BuildingSystems.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001037/0.001036, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.0009689/0.000969, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.289/1.289, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002182/0.002182, allocations: 297.9 kB / 291.4 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.9227/0.9227, allocations: 169.3 MB / 0.4989 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00189/0.00189, allocations: 91.3 kB / 0.5966 GB, free: 14.47 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1793/0.1812, allocations: 86.98 MB / 0.6816 GB, free: 7.48 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.Resistance): time 0.004576/0.1858, allocations: 3.074 MB / 0.6846 GB, free: 4.391 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002016/0.1879, allocations: 1.332 MB / 0.6859 GB, free: 3.051 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001183/0.188, allocations: 4 kB / 0.6859 GB, free: 3.047 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009879/0.189, allocations: 338.7 kB / 0.6862 GB, free: 2.715 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000312/0.1893, allocations: 139.3 kB / 0.6864 GB, free: 2.578 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003083/0.1896, allocations: 131.6 kB / 0.6865 GB, free: 2.449 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003324/0.19, allocations: 314.9 kB / 0.6868 GB, free: 2.141 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003899/0.1904, allocations: 232.3 kB / 0.687 GB, free: 1.918 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001264/0.1905, allocations: 127.6 kB / 0.6871 GB, free: 1.793 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002756/0.1908, allocations: 139.5 kB / 0.6873 GB, free: 1.656 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.116e-05/0.1909, allocations: 20 kB / 0.6873 GB, free: 1.637 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000256/0.1911, allocations: 163.7 kB / 0.6874 GB, free: 1.477 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.231e-05/0.1912, allocations: 79.78 kB / 0.6875 GB, free: 1.398 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001107/0.1913, allocations: 111.5 kB / 0.6876 GB, free: 1.289 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003965/0.1917, allocations: 338.9 kB / 0.6879 GB, free: 0.957 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1917, allocations: 0 / 0.6879 GB, free: 0.957 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.386e-06/0.1918, allocations: 0 / 0.6879 GB, free: 0.957 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.1918, allocations: 3.938 kB / 0.6879 GB, free: 0.9531 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007606/0.1925, allocations: 0.5108 MB / 0.6884 GB, free: 400 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.1926, allocations: 12.03 kB / 0.6884 GB, free: 388 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000547/0.1931, allocations: 76.58 kB / 0.6885 GB, free: 312 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003075/0.1935, allocations: 247.8 kB / 0.6888 GB, free: 24 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.498e-05/0.1935, allocations: 16.75 kB / 0.6888 GB, free: 8 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.2911/0.4846, allocations: 15.64 kB / 0.6888 GB, free: 18.54 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005212/0.4851, allocations: 295.4 kB / 0.6891 GB, free: 18.45 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.4851, allocations: 3.406 kB / 0.6891 GB, free: 18.45 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.663e-05/0.4852, allocations: 8.719 kB / 0.6891 GB, free: 18.45 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.257e-05/0.4852, allocations: 17.75 kB / 0.6891 GB, free: 18.45 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002973/0.4855, allocations: 199.4 kB / 0.6893 GB, free: 18.45 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001522/0.487, allocations: 1.456 MB / 0.6907 GB, free: 17.28 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002768/0.4873, allocations: 176.5 kB / 0.6909 GB, free: 17.16 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.022e-05/0.4874, allocations: 28.91 kB / 0.6909 GB, free: 17.15 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.087e-05/0.4874, allocations: 2.281 kB / 0.6909 GB, free: 17.15 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.385e-05/0.4875, allocations: 36.09 kB / 0.6909 GB, free: 17.11 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 2.495e-06/0.4875, allocations: 5.562 kB / 0.6909 GB, free: 17.11 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004988/0.488, allocations: 222 kB / 0.6912 GB, free: 16.97 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.061e-05/0.488, allocations: 61.7 kB / 0.6912 GB, free: 16.91 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002054/0.4882, allocations: 195 kB / 0.6914 GB, free: 16.8 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.204e-05/0.4882, allocations: 31.09 kB / 0.6914 GB, free: 16.77 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.4883, allocations: 164.3 kB / 0.6916 GB, free: 16.66 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.234e-05/0.4884, allocations: 30.52 kB / 0.6916 GB, free: 16.64 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.021e-05/0.4884, allocations: 34.53 kB / 0.6917 GB, free: 16.62 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.887e-05/0.4885, allocations: 327.1 kB / 0.692 GB, free: 16.31 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.254e-05/0.4886, allocations: 35.38 kB / 0.692 GB, free: 16.3 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001029/0.4887, allocations: 105.5 kB / 0.6921 GB, free: 16.2 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001703/0.4889, allocations: 150.6 kB / 0.6922 GB, free: 16.08 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.4889, allocations: 1.594 kB / 0.6922 GB, free: 16.08 MB / 494.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003222/0.4892, allocations: 185.5 kB / 0.6924 GB, free: 15.99 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.4893, allocations: 9.812 kB / 0.6924 GB, free: 15.98 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.4893, allocations: 9.219 kB / 0.6924 GB, free: 15.98 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001727/0.4894, allocations: 26.7 kB / 0.6925 GB, free: 15.97 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.4896, allocations: 29.62 kB / 0.6925 GB, free: 15.97 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008631/0.4904, allocations: 1.416 MB / 0.6939 GB, free: 14.56 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/0.4906, allocations: 21.95 kB / 0.6939 GB, free: 14.54 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.536e-05/0.4906, allocations: 7.875 kB / 0.6939 GB, free: 14.54 MB / 494.1 MB 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 (17): * Single equations (assignments): 16 * 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.0001055/0.4907, allocations: 157.3 kB / 0.6941 GB, free: 14.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.834e-05/0.4907, allocations: 11.34 kB / 0.6941 GB, free: 14.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.061e-05/0.4908, allocations: 20.02 kB / 0.6941 GB, free: 14.39 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.4908, allocations: 0.9062 kB / 0.6941 GB, free: 14.39 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.4908, allocations: 0.7188 kB / 0.6941 GB, free: 14.39 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.4908, allocations: 4.188 kB / 0.6941 GB, free: 14.39 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004471/0.4913, allocations: 448.6 kB / 0.6945 GB, free: 14.02 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.4913, allocations: 0 / 0.6945 GB, free: 14.02 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.877e-05/0.4913, allocations: 7.891 kB / 0.6945 GB, free: 14.02 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.948e-05/0.4914, allocations: 21.89 kB / 0.6945 GB, free: 14.01 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-06/0.4914, allocations: 5.906 kB / 0.6946 GB, free: 14.01 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006634/0.4921, allocations: 1.408 MB / 0.6959 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.4921, allocations: 3.328 kB / 0.6959 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001812/0.4923, allocations: 217.8 kB / 0.6961 GB, free: 12.43 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.664e-05/0.4923, allocations: 98.77 kB / 0.6962 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.863e-05/0.4924, allocations: 2.125 kB / 0.6962 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.4925, allocations: 8.906 kB / 0.6962 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.972e-05/0.4925, allocations: 15.27 kB / 0.6963 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.102e-06/0.4925, allocations: 2.094 kB / 0.6963 GB, free: 12.32 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001088/0.4926, allocations: 144.8 kB / 0.6964 GB, free: 12.22 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4926, allocations: 0 / 0.6964 GB, free: 12.22 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000325/0.493, allocations: 52.78 kB / 0.6964 GB, free: 12.21 MB / 494.1 MB 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 (6): * Single equations (assignments): 5 * 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 8.766e-05/0.4931, allocations: 96.06 kB / 0.6965 GB, free: 12.12 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003224/0.4934, allocations: 211.7 kB / 0.6967 GB, free: 11.98 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4934, allocations: 2.844 kB / 0.6967 GB, free: 11.98 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001203/0.4935, allocations: 143 kB / 0.6969 GB, free: 11.86 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003331/0.4939, allocations: 34.58 kB / 0.6969 GB, free: 11.85 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005615/0.4944, allocations: 360.5 kB / 0.6973 GB, free: 11.62 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001955/0.4946, allocations: 0.7479 MB / 0.698 GB, free: 10.92 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 9.276e-05/0.4947, allocations: 24.06 kB / 0.698 GB, free: 10.92 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.88e-05/0.4948, allocations: 14.16 kB / 0.698 GB, free: 10.91 MB / 494.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4948, allocations: 1.375 kB / 0.698 GB, free: 10.91 MB / 494.1 MB Notification: Performance of Templates: time 0.005297/0.5001, allocations: 1.751 MB / 0.6997 GB, free: 10.79 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)